@angular/build 22.2.0-next.4 → 22.2.0-next.6

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.
Files changed (169) hide show
  1. package/package.json +13 -12
  2. package/src/builders/application/build-action.js +47 -39
  3. package/src/builders/application/build-action.js.map +1 -1
  4. package/src/builders/application/execute-build.js +1 -1
  5. package/src/builders/application/execute-build.js.map +1 -1
  6. package/src/builders/application/execute-post-bundle.js +2 -5
  7. package/src/builders/application/execute-post-bundle.js.map +1 -1
  8. package/src/builders/application/i18n.js +20 -10
  9. package/src/builders/application/i18n.js.map +1 -1
  10. package/src/builders/application/index.js +2 -2
  11. package/src/builders/application/index.js.map +1 -1
  12. package/src/builders/application/results.d.ts +3 -2
  13. package/src/builders/application/setup-bundling.js +3 -1
  14. package/src/builders/application/setup-bundling.js.map +1 -1
  15. package/src/builders/dev-server/vite/index.js +4 -7
  16. package/src/builders/dev-server/vite/index.js.map +1 -1
  17. package/src/builders/dev-server/vite/server.js +1 -1
  18. package/src/builders/dev-server/vite/server.js.map +1 -1
  19. package/src/builders/dev-server/vite/utils.d.ts +1 -1
  20. package/src/builders/dev-server/vite/utils.js +9 -4
  21. package/src/builders/dev-server/vite/utils.js.map +1 -1
  22. package/src/builders/extract-i18n/application-extraction.js +6 -5
  23. package/src/builders/extract-i18n/application-extraction.js.map +1 -1
  24. package/src/builders/karma/application_builder.js +1 -1
  25. package/src/builders/karma/application_builder.js.map +1 -1
  26. package/src/builders/karma/assets-middleware.d.ts +2 -2
  27. package/src/builders/karma/assets-middleware.js +5 -2
  28. package/src/builders/karma/assets-middleware.js.map +1 -1
  29. package/src/builders/karma/progress-reporter.js +7 -5
  30. package/src/builders/karma/progress-reporter.js.map +1 -1
  31. package/src/builders/karma/utils.d.ts +2 -1
  32. package/src/builders/karma/utils.js +2 -2
  33. package/src/builders/karma/utils.js.map +1 -1
  34. package/src/builders/unit-test/builder.js +1 -1
  35. package/src/builders/unit-test/options.d.ts +1 -0
  36. package/src/builders/unit-test/options.js +2 -1
  37. package/src/builders/unit-test/options.js.map +1 -1
  38. package/src/builders/unit-test/runners/vitest/build-options.js +5 -6
  39. package/src/builders/unit-test/runners/vitest/build-options.js.map +1 -1
  40. package/src/builders/unit-test/runners/vitest/executor.js +4 -4
  41. package/src/builders/unit-test/runners/vitest/executor.js.map +1 -1
  42. package/src/builders/unit-test/schema.d.ts +7 -0
  43. package/src/builders/unit-test/schema.js.map +1 -1
  44. package/src/builders/unit-test/schema.json +5 -0
  45. package/src/private.d.ts +1 -1
  46. package/src/private.js +4 -3
  47. package/src/private.js.map +1 -1
  48. package/src/tools/angular/compilation/angular-compilation.d.ts +3 -8
  49. package/src/tools/angular/compilation/angular-compilation.js +2 -88
  50. package/src/tools/angular/compilation/angular-compilation.js.map +1 -1
  51. package/src/tools/angular/compilation/aot-compilation.d.ts +5 -5
  52. package/src/tools/angular/compilation/aot-compilation.js +9 -13
  53. package/src/tools/angular/compilation/aot-compilation.js.map +1 -1
  54. package/src/tools/angular/compilation/compiler-options.d.ts +24 -0
  55. package/src/tools/angular/compilation/compiler-options.js +135 -0
  56. package/src/tools/angular/compilation/compiler-options.js.map +1 -0
  57. package/src/tools/angular/compilation/index.d.ts +1 -1
  58. package/src/tools/angular/compilation/index.js +1 -3
  59. package/src/tools/angular/compilation/index.js.map +1 -1
  60. package/src/tools/angular/compilation/jit-compilation.d.ts +5 -5
  61. package/src/tools/angular/compilation/jit-compilation.js +8 -15
  62. package/src/tools/angular/compilation/jit-compilation.js.map +1 -1
  63. package/src/tools/angular/compilation/parallel-compilation.d.ts +2 -7
  64. package/src/tools/angular/compilation/parallel-compilation.js +39 -41
  65. package/src/tools/angular/compilation/parallel-compilation.js.map +1 -1
  66. package/src/tools/angular/compilation/parallel-worker.d.ts +2 -2
  67. package/src/tools/angular/compilation/parallel-worker.js +79 -63
  68. package/src/tools/angular/compilation/parallel-worker.js.map +1 -1
  69. package/src/tools/angular/compilation/typescript-compilation.d.ts +24 -0
  70. package/src/tools/angular/compilation/typescript-compilation.js +107 -0
  71. package/src/tools/angular/compilation/typescript-compilation.js.map +1 -0
  72. package/src/tools/angular/linker/oxc-linker.d.ts +13 -17
  73. package/src/tools/angular/linker/oxc-linker.js +27 -89
  74. package/src/tools/angular/linker/oxc-linker.js.map +1 -1
  75. package/src/tools/esbuild/angular/compilation-state.d.ts +23 -3
  76. package/src/tools/esbuild/angular/compilation-state.js +51 -13
  77. package/src/tools/esbuild/angular/compilation-state.js.map +1 -1
  78. package/src/tools/esbuild/angular/compiler-plugin.js +36 -101
  79. package/src/tools/esbuild/angular/compiler-plugin.js.map +1 -1
  80. package/src/tools/esbuild/angular/component-stylesheets.d.ts +3 -3
  81. package/src/tools/esbuild/angular/component-stylesheets.js +42 -15
  82. package/src/tools/esbuild/angular/component-stylesheets.js.map +1 -1
  83. package/src/tools/esbuild/application-code-bundle.js +5 -9
  84. package/src/tools/esbuild/application-code-bundle.js.map +1 -1
  85. package/src/tools/esbuild/bundler-context.d.ts +4 -4
  86. package/src/tools/esbuild/bundler-context.js +93 -27
  87. package/src/tools/esbuild/bundler-context.js.map +1 -1
  88. package/src/tools/esbuild/bundler-execution-result.d.ts +1 -0
  89. package/src/tools/esbuild/bundler-execution-result.js +2 -2
  90. package/src/tools/esbuild/bundler-execution-result.js.map +1 -1
  91. package/src/tools/esbuild/cache.d.ts +10 -0
  92. package/src/tools/esbuild/cache.js +18 -0
  93. package/src/tools/esbuild/cache.js.map +1 -1
  94. package/src/tools/esbuild/i18n-inliner-worker.d.ts +82 -37
  95. package/src/tools/esbuild/i18n-inliner-worker.js +134 -97
  96. package/src/tools/esbuild/i18n-inliner-worker.js.map +1 -1
  97. package/src/tools/esbuild/i18n-inliner.d.ts +42 -11
  98. package/src/tools/esbuild/i18n-inliner.js +335 -121
  99. package/src/tools/esbuild/i18n-inliner.js.map +1 -1
  100. package/src/tools/esbuild/i18n-locale-plugin.d.ts +32 -0
  101. package/src/tools/esbuild/i18n-locale-plugin.js +112 -103
  102. package/src/tools/esbuild/i18n-locale-plugin.js.map +1 -1
  103. package/src/tools/esbuild/i18n-translation-encoder.d.ts +21 -0
  104. package/src/tools/esbuild/i18n-translation-encoder.js +92 -0
  105. package/src/tools/esbuild/i18n-translation-encoder.js.map +1 -0
  106. package/src/tools/esbuild/i18n-translation-reader.d.ts +41 -0
  107. package/src/tools/esbuild/i18n-translation-reader.js +164 -0
  108. package/src/tools/esbuild/i18n-translation-reader.js.map +1 -0
  109. package/src/tools/esbuild/javascript-transformer-worker.js +41 -47
  110. package/src/tools/esbuild/javascript-transformer-worker.js.map +1 -1
  111. package/src/tools/esbuild/javascript-transformer.js +53 -1
  112. package/src/tools/esbuild/javascript-transformer.js.map +1 -1
  113. package/src/tools/esbuild/load-result-cache.d.ts +1 -0
  114. package/src/tools/esbuild/load-result-cache.js +24 -11
  115. package/src/tools/esbuild/load-result-cache.js.map +1 -1
  116. package/src/tools/esbuild/sqlite-cache-store.d.ts +8 -0
  117. package/src/tools/esbuild/sqlite-cache-store.js +19 -7
  118. package/src/tools/esbuild/sqlite-cache-store.js.map +1 -1
  119. package/src/tools/esbuild/stylesheets/sass-language.js +19 -14
  120. package/src/tools/esbuild/stylesheets/sass-language.js.map +1 -1
  121. package/src/tools/esbuild/stylesheets/stylesheet-plugin-factory.d.ts +1 -1
  122. package/src/tools/esbuild/utils.d.ts +1 -1
  123. package/src/tools/esbuild/utils.js.map +1 -1
  124. package/src/tools/oxc/oxc-transform.d.ts +3 -0
  125. package/src/tools/oxc/oxc-transform.js +103 -124
  126. package/src/tools/oxc/oxc-transform.js.map +1 -1
  127. package/src/tools/oxc/traversal.d.ts +32 -0
  128. package/src/tools/oxc/traversal.js +299 -0
  129. package/src/tools/oxc/traversal.js.map +1 -0
  130. package/src/tools/sass/rebasing-importer.d.ts +8 -14
  131. package/src/tools/sass/rebasing-importer.js +18 -24
  132. package/src/tools/sass/rebasing-importer.js.map +1 -1
  133. package/src/tools/sass/sass-service.d.ts +11 -38
  134. package/src/tools/sass/sass-service.js +124 -187
  135. package/src/tools/sass/sass-service.js.map +1 -1
  136. package/src/utils/environment-options.d.ts +12 -0
  137. package/src/utils/environment-options.js +20 -12
  138. package/src/utils/environment-options.js.map +1 -1
  139. package/src/utils/i18n-options.d.ts +2 -1
  140. package/src/utils/i18n-options.js.map +1 -1
  141. package/src/utils/normalize-cache.d.ts +11 -1
  142. package/src/utils/normalize-cache.js +6 -3
  143. package/src/utils/normalize-cache.js.map +1 -1
  144. package/src/utils/purge-cache.js +24 -13
  145. package/src/utils/purge-cache.js.map +1 -1
  146. package/src/utils/server-rendering/esm-in-memory-loader/loader-hooks.d.ts +1 -1
  147. package/src/utils/server-rendering/esm-in-memory-loader/loader-hooks.js +12 -9
  148. package/src/utils/server-rendering/esm-in-memory-loader/loader-hooks.js.map +1 -1
  149. package/src/utils/server-rendering/esm-in-memory-loader/utils.d.ts +8 -0
  150. package/src/utils/server-rendering/esm-in-memory-loader/utils.js +30 -0
  151. package/src/utils/server-rendering/esm-in-memory-loader/utils.js.map +1 -1
  152. package/src/utils/server-rendering/prerender.d.ts +2 -1
  153. package/src/utils/server-rendering/prerender.js +83 -30
  154. package/src/utils/server-rendering/prerender.js.map +1 -1
  155. package/src/utils/server-rendering/render-worker.d.ts +10 -5
  156. package/src/utils/server-rendering/render-worker.js +31 -7
  157. package/src/utils/server-rendering/render-worker.js.map +1 -1
  158. package/src/utils/test-files.d.ts +2 -2
  159. package/src/utils/test-files.js +3 -3
  160. package/src/utils/test-files.js.map +1 -1
  161. package/src/tools/angular/compilation/noop-compilation.d.ts +0 -15
  162. package/src/tools/angular/compilation/noop-compilation.js +0 -27
  163. package/src/tools/angular/compilation/noop-compilation.js.map +0 -1
  164. package/src/tools/sass/worker.d.ts +0 -63
  165. package/src/tools/sass/worker.js +0 -202
  166. package/src/tools/sass/worker.js.map +0 -1
  167. /package/src/tools/{esbuild/angular → angular/compilation}/diagnostics.d.ts +0 -0
  168. /package/src/tools/{esbuild/angular → angular/compilation}/diagnostics.js +0 -0
  169. /package/src/tools/{esbuild/angular → angular/compilation}/diagnostics.js.map +0 -0
@@ -1,27 +0,0 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.NoopCompilation = void 0;
11
- const angular_compilation_1 = require("./angular-compilation");
12
- class NoopCompilation extends angular_compilation_1.AngularCompilation {
13
- async initialize(tsconfig, hostOptions, compilerOptionsTransformer) {
14
- // Load the compiler configuration and transform as needed
15
- const { options: originalCompilerOptions } = await this.loadConfiguration(tsconfig);
16
- const compilerOptions = compilerOptionsTransformer?.(originalCompilerOptions) ?? originalCompilerOptions;
17
- return { compilerOptions, referencedFiles: [] };
18
- }
19
- collectDiagnostics() {
20
- throw new Error('Not available when using noop compilation.');
21
- }
22
- emitAffectedFiles() {
23
- throw new Error('Not available when using noop compilation.');
24
- }
25
- }
26
- exports.NoopCompilation = NoopCompilation;
27
- //# sourceMappingURL=noop-compilation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"noop-compilation.js","sourceRoot":"","sources":["noop-compilation.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIH,+DAAqF;AAErF,MAAa,eAAgB,SAAQ,wCAAkB;IACrD,KAAK,CAAC,UAAU,CACd,QAAgB,EAChB,WAA+B,EAC/B,0BAAwF;QAExF,0DAA0D;QAC1D,MAAM,EAAE,OAAO,EAAE,uBAAuB,EAAE,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QACpF,MAAM,eAAe,GACnB,0BAA0B,EAAE,CAAC,uBAAuB,CAAC,IAAI,uBAAuB,CAAC;QAEnF,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC;IAClD,CAAC;IAEkB,kBAAkB;QACnC,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;IAChE,CAAC;IAEQ,iBAAiB;QACxB,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;IAChE,CAAC;CACF;AArBD,0CAqBC"}
@@ -1,63 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- import { type RawSourceMap } from '@ampproject/remapping';
9
- import { MessagePort } from 'node:worker_threads';
10
- import { SourceSpan, StringOptions } from 'sass';
11
- import type { SerializableWarningMessage } from './sass-service';
12
- /**
13
- * A request to render a Sass stylesheet using the supplied options.
14
- */
15
- interface RenderRequestMessage {
16
- /**
17
- * The contents to compile.
18
- */
19
- source: string;
20
- /**
21
- * The Sass options to provide to the `dart-sass` compile function.
22
- */
23
- options: Omit<StringOptions<'sync'>, 'url'> & {
24
- url: string;
25
- };
26
- /**
27
- * Indicates the request has a custom importer function on the main thread.
28
- */
29
- importerChannel?: {
30
- port: MessagePort;
31
- signal: Int32Array;
32
- };
33
- /**
34
- * Indicates the request has a custom logger for warning messages.
35
- */
36
- hasLogger: boolean;
37
- /**
38
- * Indicates paths within url() CSS functions should be rebased.
39
- */
40
- rebase: boolean;
41
- }
42
- interface RenderResult {
43
- warnings: SerializableWarningMessage[] | undefined;
44
- result: {
45
- css: string;
46
- loadedUrls: string[];
47
- sourceMap?: RawSourceMap;
48
- };
49
- }
50
- interface RenderError {
51
- warnings: SerializableWarningMessage[] | undefined;
52
- error: {
53
- message: string;
54
- stack?: string;
55
- span?: Omit<SourceSpan, 'url'> & {
56
- url?: string;
57
- };
58
- sassMessage?: string;
59
- sassStack?: string;
60
- };
61
- }
62
- export default function renderSassStylesheet(request: RenderRequestMessage): Promise<RenderResult | RenderError>;
63
- export {};
@@ -1,202 +0,0 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- var __importDefault = (this && this.__importDefault) || function (mod) {
10
- return (mod && mod.__esModule) ? mod : { "default": mod };
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.default = renderSassStylesheet;
14
- const remapping_1 = __importDefault(require("@ampproject/remapping"));
15
- const node_path_1 = require("node:path");
16
- const node_url_1 = require("node:url");
17
- const node_worker_threads_1 = require("node:worker_threads");
18
- const sass_1 = require("sass");
19
- const rebasing_importer_1 = require("./rebasing-importer");
20
- async function renderSassStylesheet(request) {
21
- const { importerChannel, hasLogger, source, options, rebase } = request;
22
- const entryDirectory = (0, node_path_1.dirname)(options.url);
23
- let warnings;
24
- try {
25
- const directoryCache = new Map();
26
- const rebaseSourceMaps = options.sourceMap ? new Map() : undefined;
27
- if (importerChannel) {
28
- // When a custom importer function is present, the importer request must be proxied
29
- // back to the main thread where it can be executed.
30
- // This process must be synchronous from the perspective of dart-sass. The `Atomics`
31
- // functions combined with the shared memory `importSignal` and the Node.js
32
- // `receiveMessageOnPort` function are used to ensure synchronous behavior.
33
- const proxyImporter = {
34
- findFileUrl: (url, { fromImport, containingUrl }) => {
35
- Atomics.store(importerChannel.signal, 0, 0);
36
- importerChannel.port.postMessage({
37
- url,
38
- options: {
39
- fromImport,
40
- containingUrl: containingUrl ? (0, node_url_1.fileURLToPath)(containingUrl) : null,
41
- },
42
- });
43
- // Wait for the main thread to set the signal to 1 and notify, which tells
44
- // us that a message can be received on the port.
45
- // If the main thread is fast, the signal will already be set to 1, and no
46
- // sleep/notify is necessary.
47
- // However, there can be a race condition here:
48
- // - the main thread sets the signal to 1, but does not get to the notify instruction yet
49
- // - the worker does not pause because the signal is set to 1
50
- // - the worker very soon enters this method again
51
- // - this method sets the signal to 0 and sends the message
52
- // - the signal is 0 and so the `Atomics.wait` call blocks
53
- // - only now the main thread runs the `notify` from the first invocation, so the
54
- // worker continues.
55
- // - but there is no message yet in the port, because the thread should not have been
56
- // waken up yet.
57
- // To combat this, wait for a non-0 value _twice_.
58
- // Almost every time, this immediately continues with "not-equal", because
59
- // the signal is still set to 1, except during the race condition, when the second
60
- // wait will wait for the correct notify.
61
- Atomics.wait(importerChannel.signal, 0, 0);
62
- Atomics.wait(importerChannel.signal, 0, 0);
63
- const result = (0, node_worker_threads_1.receiveMessageOnPort)(importerChannel.port)?.message;
64
- return result ? (0, node_url_1.pathToFileURL)(result) : null;
65
- },
66
- };
67
- options.importers = [
68
- rebase
69
- ? (0, rebasing_importer_1.sassBindWorkaround)(new rebasing_importer_1.ModuleUrlRebasingImporter(entryDirectory, directoryCache, rebaseSourceMaps, proxyImporter.findFileUrl))
70
- : proxyImporter,
71
- ];
72
- }
73
- if (rebase && options.loadPaths?.length) {
74
- options.importers ??= [];
75
- options.importers.push((0, rebasing_importer_1.sassBindWorkaround)(new rebasing_importer_1.LoadPathsUrlRebasingImporter(entryDirectory, directoryCache, rebaseSourceMaps, options.loadPaths)));
76
- options.loadPaths = undefined;
77
- }
78
- let relativeImporter;
79
- if (rebase) {
80
- relativeImporter = (0, rebasing_importer_1.sassBindWorkaround)(new rebasing_importer_1.RelativeUrlRebasingImporter(entryDirectory, directoryCache, rebaseSourceMaps));
81
- }
82
- // The synchronous Sass render function can be up to two times faster than the async variant
83
- const result = (0, sass_1.compileString)(source, {
84
- ...options,
85
- // URL is not serializable so to convert to string in the parent and back to URL here.
86
- url: (0, node_url_1.pathToFileURL)(options.url),
87
- // The `importer` option (singular) handles relative imports
88
- importer: relativeImporter,
89
- logger: hasLogger
90
- ? {
91
- warn(message, warnOptions) {
92
- warnings ??= [];
93
- warnings.push({
94
- ...warnOptions,
95
- message,
96
- span: warnOptions.span && convertSourceSpan(warnOptions.span),
97
- ...convertDeprecation(warnOptions.deprecation,
98
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
99
- warnOptions.deprecationType),
100
- });
101
- },
102
- }
103
- : undefined,
104
- });
105
- if (result.sourceMap && rebaseSourceMaps?.size) {
106
- // Merge the intermediate rebasing source maps into the final Sass generated source map.
107
- // Casting is required due to small but compatible differences in typings between the packages.
108
- result.sourceMap = (0, remapping_1.default)(result.sourceMap,
109
- // To prevent an infinite lookup loop, skip getting the source when the rebasing source map
110
- // is referencing its original self.
111
- (file, context) => (file !== context.importer ? rebaseSourceMaps.get(file) : null));
112
- }
113
- return {
114
- warnings,
115
- result: {
116
- ...result,
117
- sourceMap: result.sourceMap,
118
- // URL is not serializable so to convert to string here and back to URL in the parent.
119
- loadedUrls: result.loadedUrls.map((p) => (0, node_url_1.fileURLToPath)(p)),
120
- },
121
- };
122
- }
123
- catch (error) {
124
- // Needed because V8 will only serialize the message and stack properties of an Error instance.
125
- if (error instanceof sass_1.Exception) {
126
- const { span, message, stack, sassMessage, sassStack } = error;
127
- return {
128
- warnings,
129
- error: {
130
- span: convertSourceSpan(span),
131
- message,
132
- stack,
133
- sassMessage,
134
- sassStack,
135
- },
136
- };
137
- }
138
- else if (error instanceof Error) {
139
- const { message, stack } = error;
140
- return { warnings, error: { message, stack } };
141
- }
142
- else {
143
- return {
144
- warnings,
145
- error: { message: 'An unknown error has occurred.' },
146
- };
147
- }
148
- }
149
- }
150
- /**
151
- * Converts a Sass SourceSpan object into a serializable form.
152
- * The SourceSpan object contains a URL property which must be converted into a string.
153
- * Also, most of the interface's properties are get accessors and are not automatically
154
- * serialized when sent back from the worker.
155
- *
156
- * @param span The Sass SourceSpan object to convert.
157
- * @returns A serializable form of the SourceSpan object.
158
- */
159
- function convertSourceSpan(span) {
160
- return {
161
- text: span.text,
162
- context: span.context,
163
- end: {
164
- column: span.end.column,
165
- offset: span.end.offset,
166
- line: span.end.line,
167
- },
168
- start: {
169
- column: span.start.column,
170
- offset: span.start.offset,
171
- line: span.start.line,
172
- },
173
- url: span.url ? (0, node_url_1.fileURLToPath)(span.url) : undefined,
174
- };
175
- }
176
- function convertDeprecation(deprecation, deprecationType) {
177
- if (!deprecation || !deprecationType) {
178
- return { deprecation: false };
179
- }
180
- const { obsoleteIn, deprecatedIn, ...rest } = deprecationType;
181
- return {
182
- deprecation: true,
183
- deprecationType: {
184
- ...rest,
185
- obsoleteIn: obsoleteIn
186
- ? {
187
- major: obsoleteIn.major,
188
- minor: obsoleteIn.minor,
189
- patch: obsoleteIn.patch,
190
- }
191
- : null,
192
- deprecatedIn: deprecatedIn
193
- ? {
194
- major: deprecatedIn.major,
195
- minor: deprecatedIn.minor,
196
- patch: deprecatedIn.patch,
197
- }
198
- : null,
199
- },
200
- };
201
- }
202
- //# sourceMappingURL=worker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"worker.js","sourceRoot":"","sources":["worker.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;AA4EH,uCAgKC;AA1OD,sEAAkG;AAClG,yCAAoC;AACpC,uCAAwD;AACxD,6DAAwE;AACxE,+BAOc;AACd,2DAM6B;AAwDd,KAAK,UAAU,oBAAoB,CAChD,OAA6B;IAE7B,MAAM,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAExE,MAAM,cAAc,GAAG,IAAA,mBAAO,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5C,IAAI,QAAkD,CAAC;IACvD,IAAI,CAAC;QACH,MAAM,cAAc,GAAG,IAAI,GAAG,EAA0B,CAAC;QACzD,MAAM,gBAAgB,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,GAAG,EAA4B,CAAC,CAAC,CAAC,SAAS,CAAC;QAC7F,IAAI,eAAe,EAAE,CAAC;YACpB,mFAAmF;YACnF,oDAAoD;YACpD,oFAAoF;YACpF,2EAA2E;YAC3E,2EAA2E;YAC3E,MAAM,aAAa,GAAyB;gBAC1C,WAAW,EAAE,CAAC,GAAG,EAAE,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,EAAE;oBAClD,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,MAAM,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