@atlaspack/reporter-cli 2.15.1-canary.12 → 2.15.1-canary.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,117 @@
1
1
  # @atlaspack/reporter-cli
2
2
 
3
+ ## 2.16.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/utils@2.16.1
9
+ - @atlaspack/types@2.15.7
10
+ - @atlaspack/plugin@2.14.17
11
+
12
+ ## 2.16.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#659](https://github.com/atlassian-labs/atlaspack/pull/659) [`30ee2cf`](https://github.com/atlassian-labs/atlaspack/commit/30ee2cfcd34cf2646ded0eda13fdb80a2a5de529) Thanks [@benjervis](https://github.com/benjervis)! - Add the `simple-cli-reporter` debug tool, which turns off the "print every bundle" output of the CLI reporter.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [[`30ee2cf`](https://github.com/atlassian-labs/atlaspack/commit/30ee2cfcd34cf2646ded0eda13fdb80a2a5de529)]:
21
+ - @atlaspack/utils@2.16.0
22
+ - @atlaspack/types@2.15.6
23
+ - @atlaspack/plugin@2.14.16
24
+
25
+ ## 2.15.11
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies []:
30
+ - @atlaspack/utils@2.15.3
31
+ - @atlaspack/types@2.15.5
32
+ - @atlaspack/plugin@2.14.15
33
+
34
+ ## 2.15.10
35
+
36
+ ### Patch Changes
37
+
38
+ - Updated dependencies []:
39
+ - @atlaspack/utils@2.15.2
40
+ - @atlaspack/types@2.15.4
41
+ - @atlaspack/plugin@2.14.14
42
+
43
+ ## 2.15.9
44
+
45
+ ### Patch Changes
46
+
47
+ - Updated dependencies []:
48
+ - @atlaspack/types@2.15.3
49
+ - @atlaspack/utils@2.15.1
50
+ - @atlaspack/plugin@2.14.13
51
+
52
+ ## 2.15.8
53
+
54
+ ### Patch Changes
55
+
56
+ - Updated dependencies [[`e39c6cf`](https://github.com/atlassian-labs/atlaspack/commit/e39c6cf05f7e95ce5420dbcea66f401b1cbd397c)]:
57
+ - @atlaspack/utils@2.15.0
58
+ - @atlaspack/types@2.15.2
59
+ - @atlaspack/plugin@2.14.12
60
+
61
+ ## 2.15.7
62
+
63
+ ### Patch Changes
64
+
65
+ - Updated dependencies []:
66
+ - @atlaspack/utils@2.14.11
67
+ - @atlaspack/types@2.15.1
68
+ - @atlaspack/plugin@2.14.11
69
+
70
+ ## 2.15.6
71
+
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies [[`51aba5f`](https://github.com/atlassian-labs/atlaspack/commit/51aba5fc0e49235ee06bbc3c376f48c3e7da5c4b), [`1e32d4e`](https://github.com/atlassian-labs/atlaspack/commit/1e32d4eae6b3af3968e8a0ef97d35b4347fd4196)]:
75
+ - @atlaspack/types@2.15.0
76
+ - @atlaspack/plugin@2.14.10
77
+ - @atlaspack/utils@2.14.10
78
+
79
+ ## 2.15.5
80
+
81
+ ### Patch Changes
82
+
83
+ - Updated dependencies []:
84
+ - @atlaspack/utils@2.14.9
85
+ - @atlaspack/types@2.14.9
86
+ - @atlaspack/plugin@2.14.9
87
+
88
+ ## 2.15.4
89
+
90
+ ### Patch Changes
91
+
92
+ - Updated dependencies []:
93
+ - @atlaspack/utils@2.14.8
94
+ - @atlaspack/types@2.14.8
95
+ - @atlaspack/plugin@2.14.8
96
+
97
+ ## 2.15.3
98
+
99
+ ### Patch Changes
100
+
101
+ - Updated dependencies []:
102
+ - @atlaspack/utils@2.14.7
103
+ - @atlaspack/types@2.14.7
104
+ - @atlaspack/plugin@2.14.7
105
+
106
+ ## 2.15.2
107
+
108
+ ### Patch Changes
109
+
110
+ - Updated dependencies []:
111
+ - @atlaspack/utils@2.14.6
112
+ - @atlaspack/types@2.14.6
113
+ - @atlaspack/plugin@2.14.6
114
+
3
115
  ## 2.15.1
4
116
 
5
117
  ### Patch Changes
@@ -5297,6 +5297,83 @@ $parcel$defineInteropFlag(module.exports);
5297
5297
 
5298
5298
  $parcel$export(module.exports, "_report", () => $8d599e7fbf3e1a1b$export$12358408d9820617);
5299
5299
  $parcel$export(module.exports, "default", () => $8d599e7fbf3e1a1b$export$2e2bcd8739ae039);
5300
+ // We need to do these gymnastics as we don't want flow-to-ts to touch DEFAULT_FEATURE_FLAGS,
5301
+ // but we want to export FeatureFlags for Flow
5302
+ const $2bb35e0919a05b41$export$ca0a7fce1b7b1a87 = Object.freeze([
5303
+ 'NEW',
5304
+ 'OLD',
5305
+ 'NEW_AND_CHECK',
5306
+ 'OLD_AND_CHECK'
5307
+ ]);
5308
+ const $2bb35e0919a05b41$export$f38af5fc86a6e665 = {
5309
+ exampleConsistencyCheckFeature: 'OLD',
5310
+ exampleFeature: false,
5311
+ atlaspackV3: false,
5312
+ useWatchmanWatcher: false,
5313
+ importRetry: false,
5314
+ fixQuadraticCacheInvalidation: 'OLD',
5315
+ conditionalBundlingApi: false,
5316
+ inlineRequiresMultiThreading: false,
5317
+ vcsMode: 'OLD',
5318
+ loadableSideEffects: false,
5319
+ reduceResolverStringCreation: false,
5320
+ inlineBundlesSourceMapFixes: false,
5321
+ conditionalBundlingNestedRuntime: false,
5322
+ patchProjectPaths: false,
5323
+ cachePerformanceImprovements: process.env.NODE_ENV === 'test',
5324
+ environmentDeduplication: false,
5325
+ inlineStringReplacementPerf: false,
5326
+ conditionalBundlingAsyncRuntime: false,
5327
+ fixBuildAbortCorruption: false,
5328
+ // Default to true as it's a monitoring change. Can be turned off if necessary.
5329
+ verboseRequestInvalidationStats: true,
5330
+ conditionalBundlingReporterDuplicateFix: false,
5331
+ resolveBundlerConfigFromCwd: false,
5332
+ conditionalBundlingReporterSameConditionFix: false,
5333
+ condbHtmlPackagerChange: false,
5334
+ applyScopeHoistingImprovement: false,
5335
+ inlineConstOptimisationFix: false,
5336
+ hmrImprovements: false,
5337
+ atlaspackV3CleanShutdown: false,
5338
+ unusedComputedPropertyFix: process.env.NODE_ENV === 'test',
5339
+ emptyFileStarRexportFix: process.env.NODE_ENV === 'test',
5340
+ cliProgressReportingImprovements: false
5341
+ };
5342
+ let $2bb35e0919a05b41$var$featureFlagValues = {
5343
+ ...$2bb35e0919a05b41$export$f38af5fc86a6e665
5344
+ };
5345
+ function $2bb35e0919a05b41$export$9378dc6d04015c6c(flags) {
5346
+ $2bb35e0919a05b41$var$featureFlagValues = flags;
5347
+ }
5348
+ function $2bb35e0919a05b41$export$fd1910e9e858e73f(flagName) {
5349
+ const value = $2bb35e0919a05b41$var$featureFlagValues[flagName];
5350
+ return value === true || value === 'NEW';
5351
+ }
5352
+ function $2bb35e0919a05b41$export$7064bb599f663d7e(flagName) {
5353
+ return $2bb35e0919a05b41$var$featureFlagValues[flagName];
5354
+ }
5355
+ function $2bb35e0919a05b41$export$4e72f634438c2ba2(flag, oldFn, newFn, diffFn, report) {
5356
+ const value = $2bb35e0919a05b41$var$featureFlagValues[flag];
5357
+ if (!value || value === false || value === 'OLD') return oldFn();
5358
+ if (value === true || value === 'NEW') return newFn();
5359
+ const oldStartTime = performance.now();
5360
+ const oldResult = oldFn();
5361
+ const oldExecutionTimeMs = performance.now() - oldStartTime;
5362
+ const newStartTime = performance.now();
5363
+ const newResult = newFn();
5364
+ const newExecutionTimeMs = performance.now() - newStartTime;
5365
+ const diff = diffFn(oldResult, newResult);
5366
+ report({
5367
+ isDifferent: diff.isDifferent,
5368
+ oldExecutionTimeMs: oldExecutionTimeMs,
5369
+ newExecutionTimeMs: newExecutionTimeMs,
5370
+ custom: diff.custom
5371
+ }, oldResult, newResult);
5372
+ if (value === 'NEW_AND_CHECK') return newResult;
5373
+ return oldResult;
5374
+ }
5375
+
5376
+
5300
5377
 
5301
5378
 
5302
5379
 
@@ -7623,6 +7700,21 @@ const $8d599e7fbf3e1a1b$var$seenPhases = new Set();
7623
7700
  const $8d599e7fbf3e1a1b$var$seenPhasesGen = new Set();
7624
7701
  let $8d599e7fbf3e1a1b$var$phaseStartTimes = {};
7625
7702
  let $8d599e7fbf3e1a1b$var$pendingIncrementalBuild = false;
7703
+ let $8d599e7fbf3e1a1b$var$packagingProgress = 0;
7704
+ let $8d599e7fbf3e1a1b$var$updatePackageProgress = (completeBundles, totalBundles)=>{
7705
+ let updateThreshold = 0;
7706
+ if (totalBundles > 5000) // If more than 5000 bundles, update every 5%
7707
+ updateThreshold = 5;
7708
+ else if (totalBundles > 1000) // If more than 1000 bundles, update every 10%
7709
+ updateThreshold = 10;
7710
+ else // othewise update every 25%
7711
+ updateThreshold = 25;
7712
+ let percent = Math.floor(completeBundles / totalBundles * 100);
7713
+ if (percent - $8d599e7fbf3e1a1b$var$packagingProgress >= updateThreshold) {
7714
+ $8d599e7fbf3e1a1b$var$packagingProgress = percent;
7715
+ (0, $4d92a08f685d99f5$export$4d1e990956674874)((0, $7rpTs$atlaspackutils.getPackageProgressMessage)(completeBundles, totalBundles));
7716
+ }
7717
+ };
7626
7718
  let $8d599e7fbf3e1a1b$var$statusThrottle = (0, $7rpTs$atlaspackutils.throttle)((message)=>{
7627
7719
  (0, $4d92a08f685d99f5$export$4d1e990956674874)(message);
7628
7720
  }, $8d599e7fbf3e1a1b$var$THROTTLE_DELAY);
@@ -7656,7 +7748,8 @@ async function $8d599e7fbf3e1a1b$export$12358408d9820617(event, options) {
7656
7748
  if (!(0, $4d92a08f685d99f5$export$e0d6e0edafcff892) && logLevelFilter != (0, $1872afea1de141e6$export$2e2bcd8739ae039).verbose) {
7657
7749
  if (event.phase == 'transforming' && !$8d599e7fbf3e1a1b$var$seenPhases.has('transforming')) (0, $4d92a08f685d99f5$export$4d1e990956674874)('Building...');
7658
7750
  else if (event.phase == 'bundling' && !$8d599e7fbf3e1a1b$var$seenPhases.has('bundling')) (0, $4d92a08f685d99f5$export$4d1e990956674874)('Bundling...');
7659
- else if ((event.phase == 'packaging' || event.phase == 'optimizing') && !$8d599e7fbf3e1a1b$var$seenPhases.has('packaging') && !$8d599e7fbf3e1a1b$var$seenPhases.has('optimizing')) (0, $4d92a08f685d99f5$export$4d1e990956674874)('Packaging & Optimizing...');
7751
+ else if (event.phase === 'packagingAndOptimizing') $8d599e7fbf3e1a1b$var$updatePackageProgress(event.completeBundles, event.totalBundles);
7752
+ else if (!(0, $2bb35e0919a05b41$export$fd1910e9e858e73f)('cliProgressReportingImprovements') && (event.phase == 'packaging' || event.phase == 'optimizing') && !$8d599e7fbf3e1a1b$var$seenPhases.has('packaging') && !$8d599e7fbf3e1a1b$var$seenPhases.has('optimizing')) (0, $4d92a08f685d99f5$export$4d1e990956674874)('Packaging & Optimizing...');
7660
7753
  $8d599e7fbf3e1a1b$var$seenPhases.add(event.phase);
7661
7754
  break;
7662
7755
  }
@@ -7671,8 +7764,10 @@ async function $8d599e7fbf3e1a1b$export$12358408d9820617(event, options) {
7671
7764
  if (logLevelFilter < (0, $1872afea1de141e6$export$2e2bcd8739ae039).info) break;
7672
7765
  $8d599e7fbf3e1a1b$var$phaseStartTimes['buildSuccess'] = Date.now();
7673
7766
  (0, $4d92a08f685d99f5$export$82e857520ce3d14e)('buildProgress', 'success', (0, ($parcel$interopDefault($7rpTs$chalk))).green.bold(`Built in ${(0, $7rpTs$atlaspackutils.prettifyTime)(event.buildTime)}`));
7674
- if (options.mode === 'production') await (0, $565fa1f0fc4cbdbd$export$2e2bcd8739ae039)(event.bundleGraph, options.outputFS, options.projectRoot, options.detailedReport?.assetsPerBundle);
7675
- else $8d599e7fbf3e1a1b$var$pendingIncrementalBuild = true;
7767
+ if (options.mode === 'production') {
7768
+ if ((0, $7rpTs$atlaspackutils.debugTools)['simple-cli-reporter']) (0, $4d92a08f685d99f5$export$884654df4f63b5f8)(`\u{1F6E0}\u{FE0F} Built ${event.bundleGraph.getBundles().length} bundles.`);
7769
+ else await (0, $565fa1f0fc4cbdbd$export$2e2bcd8739ae039)(event.bundleGraph, options.outputFS, options.projectRoot, options.detailedReport?.assetsPerBundle);
7770
+ } else $8d599e7fbf3e1a1b$var$pendingIncrementalBuild = true;
7676
7771
  if (process.env.ATLASPACK_SHOW_PHASE_TIMES) (0, $8f1b496691f71eed$export$2e2bcd8739ae039)($8d599e7fbf3e1a1b$var$phaseStartTimes);
7677
7772
  break;
7678
7773
  case 'buildFailure':