isomorfeus-asset-manager 0.17.0 → 0.18.0
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.
- checksums.yaml +4 -4
- data/lib/isomorfeus/asset_manager/version.rb +1 -1
- data/node_modules/.package-lock.json +3 -3
- data/node_modules/esbuild-wasm/esbuild.wasm +0 -0
- data/node_modules/esbuild-wasm/esm/browser.d.ts +43 -33
- data/node_modules/esbuild-wasm/esm/browser.js +8 -8
- data/node_modules/esbuild-wasm/esm/browser.min.js +9 -9
- data/node_modules/esbuild-wasm/lib/browser.d.ts +43 -33
- data/node_modules/esbuild-wasm/lib/browser.js +8 -8
- data/node_modules/esbuild-wasm/lib/browser.min.js +9 -9
- data/node_modules/esbuild-wasm/lib/main.d.ts +43 -33
- data/node_modules/esbuild-wasm/lib/main.js +10 -10
- data/node_modules/esbuild-wasm/package.json +1 -1
- data/package.json +1 -1
- metadata +3 -3
@@ -79,6 +79,26 @@ interface CommonOptions {
|
|
79
79
|
logLimit?: number
|
80
80
|
/** Documentation: https://esbuild.github.io/api/#log-override */
|
81
81
|
logOverride?: Record<string, LogLevel>
|
82
|
+
|
83
|
+
/** Documentation: https://esbuild.github.io/api/#tsconfig-raw */
|
84
|
+
tsconfigRaw?: string | {
|
85
|
+
compilerOptions?: {
|
86
|
+
alwaysStrict?: boolean
|
87
|
+
baseUrl?: boolean
|
88
|
+
experimentalDecorators?: boolean
|
89
|
+
importsNotUsedAsValues?: 'remove' | 'preserve' | 'error'
|
90
|
+
jsx?: 'preserve' | 'react-native' | 'react' | 'react-jsx' | 'react-jsxdev'
|
91
|
+
jsxFactory?: string
|
92
|
+
jsxFragmentFactory?: string
|
93
|
+
jsxImportSource?: string
|
94
|
+
paths?: Record<string, string[]>
|
95
|
+
preserveValueImports?: boolean
|
96
|
+
strict?: boolean
|
97
|
+
target?: string
|
98
|
+
useDefineForClassFields?: boolean
|
99
|
+
verbatimModuleSyntax?: boolean
|
100
|
+
}
|
101
|
+
}
|
82
102
|
}
|
83
103
|
|
84
104
|
export interface BuildOptions extends CommonOptions {
|
@@ -191,15 +211,15 @@ export interface OutputFile {
|
|
191
211
|
readonly text: string
|
192
212
|
}
|
193
213
|
|
194
|
-
export interface BuildResult<
|
214
|
+
export interface BuildResult<ProvidedOptions extends BuildOptions = BuildOptions> {
|
195
215
|
errors: Message[]
|
196
216
|
warnings: Message[]
|
197
217
|
/** Only when "write: false" */
|
198
|
-
outputFiles: OutputFile[] | (
|
218
|
+
outputFiles: OutputFile[] | (ProvidedOptions['write'] extends false ? never : undefined)
|
199
219
|
/** Only when "metafile: true" */
|
200
|
-
metafile: Metafile | (
|
220
|
+
metafile: Metafile | (ProvidedOptions['metafile'] extends true ? never : undefined)
|
201
221
|
/** Only when "mangleCache" is present */
|
202
|
-
mangleCache: Record<string, string | false> | (
|
222
|
+
mangleCache: Record<string, string | false> | (ProvidedOptions['mangleCache'] extends Object ? never : undefined)
|
203
223
|
}
|
204
224
|
|
205
225
|
export interface BuildFailure extends Error {
|
@@ -233,34 +253,24 @@ export interface ServeResult {
|
|
233
253
|
}
|
234
254
|
|
235
255
|
export interface TransformOptions extends CommonOptions {
|
236
|
-
|
237
|
-
compilerOptions?: {
|
238
|
-
alwaysStrict?: boolean,
|
239
|
-
importsNotUsedAsValues?: 'remove' | 'preserve' | 'error',
|
240
|
-
jsx?: 'react' | 'react-jsx' | 'react-jsxdev' | 'preserve',
|
241
|
-
jsxFactory?: string,
|
242
|
-
jsxFragmentFactory?: string,
|
243
|
-
jsxImportSource?: string,
|
244
|
-
preserveValueImports?: boolean,
|
245
|
-
target?: string,
|
246
|
-
useDefineForClassFields?: boolean,
|
247
|
-
},
|
248
|
-
}
|
249
|
-
|
256
|
+
/** Documentation: https://esbuild.github.io/api/#sourcefile */
|
250
257
|
sourcefile?: string
|
258
|
+
/** Documentation: https://esbuild.github.io/api/#loader */
|
251
259
|
loader?: Loader
|
260
|
+
/** Documentation: https://esbuild.github.io/api/#banner */
|
252
261
|
banner?: string
|
262
|
+
/** Documentation: https://esbuild.github.io/api/#footer */
|
253
263
|
footer?: string
|
254
264
|
}
|
255
265
|
|
256
|
-
export interface TransformResult<
|
266
|
+
export interface TransformResult<ProvidedOptions extends TransformOptions = TransformOptions> {
|
257
267
|
code: string
|
258
268
|
map: string
|
259
269
|
warnings: Message[]
|
260
270
|
/** Only when "mangleCache" is present */
|
261
|
-
mangleCache: Record<string, string | false> | (
|
271
|
+
mangleCache: Record<string, string | false> | (ProvidedOptions['mangleCache'] extends Object ? never : undefined)
|
262
272
|
/** Only when "legalComments" is "external" */
|
263
|
-
legalComments: string | (
|
273
|
+
legalComments: string | (ProvidedOptions['legalComments'] extends 'external' ? never : undefined)
|
264
274
|
}
|
265
275
|
|
266
276
|
export interface TransformFailure extends Error {
|
@@ -487,9 +497,9 @@ export interface AnalyzeMetafileOptions {
|
|
487
497
|
export interface WatchOptions {
|
488
498
|
}
|
489
499
|
|
490
|
-
export interface BuildContext<
|
500
|
+
export interface BuildContext<ProvidedOptions extends BuildOptions = BuildOptions> {
|
491
501
|
/** Documentation: https://esbuild.github.io/api/#rebuild */
|
492
|
-
rebuild(): Promise<BuildResult<
|
502
|
+
rebuild(): Promise<BuildResult<ProvidedOptions>>
|
493
503
|
|
494
504
|
/** Documentation: https://esbuild.github.io/api/#watch */
|
495
505
|
watch(options?: WatchOptions): Promise<void>
|
@@ -501,6 +511,11 @@ export interface BuildContext<SpecificOptions extends BuildOptions = BuildOption
|
|
501
511
|
dispose(): Promise<void>
|
502
512
|
}
|
503
513
|
|
514
|
+
// This is a TypeScript type-level function which replaces any keys in "In"
|
515
|
+
// that aren't in "Out" with "never". We use this to reject properties with
|
516
|
+
// typos in object literals. See: https://stackoverflow.com/questions/49580725
|
517
|
+
type SameShape<Out, In extends Out> = In & { [Key in Exclude<keyof In, keyof Out>]: never }
|
518
|
+
|
504
519
|
/**
|
505
520
|
* This function invokes the "esbuild" command-line tool for you. It returns a
|
506
521
|
* promise that either resolves with a "BuildResult" object or rejects with a
|
@@ -511,8 +526,7 @@ export interface BuildContext<SpecificOptions extends BuildOptions = BuildOption
|
|
511
526
|
*
|
512
527
|
* Documentation: https://esbuild.github.io/api/#build
|
513
528
|
*/
|
514
|
-
export declare function build<
|
515
|
-
export declare function build(options: BuildOptions): Promise<BuildResult>
|
529
|
+
export declare function build<T extends BuildOptions>(options: SameShape<BuildOptions, T>): Promise<BuildResult<T>>
|
516
530
|
|
517
531
|
/**
|
518
532
|
* This is the advanced long-running form of "build" that supports additional
|
@@ -523,8 +537,7 @@ export declare function build(options: BuildOptions): Promise<BuildResult>
|
|
523
537
|
*
|
524
538
|
* Documentation: https://esbuild.github.io/api/#build
|
525
539
|
*/
|
526
|
-
export declare function context<T extends BuildOptions>(options: T): Promise<BuildContext<T>>
|
527
|
-
export declare function context(options: BuildOptions): Promise<BuildContext>
|
540
|
+
export declare function context<T extends BuildOptions>(options: SameShape<BuildOptions, T>): Promise<BuildContext<T>>
|
528
541
|
|
529
542
|
/**
|
530
543
|
* This function transforms a single JavaScript file. It can be used to minify
|
@@ -537,8 +550,7 @@ export declare function context(options: BuildOptions): Promise<BuildContext>
|
|
537
550
|
*
|
538
551
|
* Documentation: https://esbuild.github.io/api/#transform
|
539
552
|
*/
|
540
|
-
export declare function transform<
|
541
|
-
export declare function transform(input: string | Uint8Array, options?: TransformOptions): Promise<TransformResult>
|
553
|
+
export declare function transform<T extends TransformOptions>(input: string | Uint8Array, options?: SameShape<TransformOptions, T>): Promise<TransformResult<T>>
|
542
554
|
|
543
555
|
/**
|
544
556
|
* Converts log messages to formatted message strings suitable for printing in
|
@@ -570,8 +582,7 @@ export declare function analyzeMetafile(metafile: Metafile | string, options?: A
|
|
570
582
|
*
|
571
583
|
* Documentation: https://esbuild.github.io/api/#build
|
572
584
|
*/
|
573
|
-
export declare function buildSync<
|
574
|
-
export declare function buildSync(options: BuildOptions): BuildResult
|
585
|
+
export declare function buildSync<T extends BuildOptions>(options: SameShape<BuildOptions, T>): BuildResult<T>
|
575
586
|
|
576
587
|
/**
|
577
588
|
* A synchronous version of "transform".
|
@@ -581,8 +592,7 @@ export declare function buildSync(options: BuildOptions): BuildResult
|
|
581
592
|
*
|
582
593
|
* Documentation: https://esbuild.github.io/api/#transform
|
583
594
|
*/
|
584
|
-
export declare function transformSync<
|
585
|
-
export declare function transformSync(input: string | Uint8Array, options?: TransformOptions): TransformResult
|
595
|
+
export declare function transformSync<T extends TransformOptions>(input: string | Uint8Array, options?: SameShape<TransformOptions, T>): TransformResult<T>
|
586
596
|
|
587
597
|
/**
|
588
598
|
* A synchronous version of "formatMessages".
|
@@ -320,6 +320,7 @@ function pushCommonFlags(flags, options, keys) {
|
|
320
320
|
let pure = getFlag(options, keys, "pure", mustBeArray);
|
321
321
|
let keepNames = getFlag(options, keys, "keepNames", mustBeBoolean);
|
322
322
|
let platform = getFlag(options, keys, "platform", mustBeString);
|
323
|
+
let tsconfigRaw = getFlag(options, keys, "tsconfigRaw", mustBeStringOrObject);
|
323
324
|
if (legalComments)
|
324
325
|
flags.push(`--legal-comments=${legalComments}`);
|
325
326
|
if (sourceRoot !== void 0)
|
@@ -338,6 +339,8 @@ function pushCommonFlags(flags, options, keys) {
|
|
338
339
|
flags.push(`--global-name=${globalName}`);
|
339
340
|
if (platform)
|
340
341
|
flags.push(`--platform=${platform}`);
|
342
|
+
if (tsconfigRaw)
|
343
|
+
flags.push(`--tsconfig-raw=${typeof tsconfigRaw === "string" ? tsconfigRaw : JSON.stringify(tsconfigRaw)}`);
|
341
344
|
if (minify)
|
342
345
|
flags.push("--minify");
|
343
346
|
if (minifySyntax)
|
@@ -612,7 +615,6 @@ function flagsForTransformOptions(callName, options, isTTY2, logLevelDefault) {
|
|
612
615
|
pushLogFlags(flags, options, keys, isTTY2, logLevelDefault);
|
613
616
|
pushCommonFlags(flags, options, keys);
|
614
617
|
let sourcemap = getFlag(options, keys, "sourcemap", mustBeStringOrBoolean);
|
615
|
-
let tsconfigRaw = getFlag(options, keys, "tsconfigRaw", mustBeStringOrObject);
|
616
618
|
let sourcefile = getFlag(options, keys, "sourcefile", mustBeString);
|
617
619
|
let loader = getFlag(options, keys, "loader", mustBeString);
|
618
620
|
let banner = getFlag(options, keys, "banner", mustBeString);
|
@@ -621,8 +623,6 @@ function flagsForTransformOptions(callName, options, isTTY2, logLevelDefault) {
|
|
621
623
|
checkForInvalidFlags(options, keys, `in ${callName}() call`);
|
622
624
|
if (sourcemap)
|
623
625
|
flags.push(`--sourcemap=${sourcemap === true ? "external" : sourcemap}`);
|
624
|
-
if (tsconfigRaw)
|
625
|
-
flags.push(`--tsconfig-raw=${typeof tsconfigRaw === "string" ? tsconfigRaw : JSON.stringify(tsconfigRaw)}`);
|
626
626
|
if (sourcefile)
|
627
627
|
flags.push(`--sourcefile=${sourcefile}`);
|
628
628
|
if (loader)
|
@@ -725,8 +725,8 @@ function createChannel(streamIn) {
|
|
725
725
|
if (isFirstPacket) {
|
726
726
|
isFirstPacket = false;
|
727
727
|
let binaryVersion = String.fromCharCode(...bytes);
|
728
|
-
if (binaryVersion !== "0.
|
729
|
-
throw new Error(`Cannot start service: Host version "${"0.
|
728
|
+
if (binaryVersion !== "0.18.4") {
|
729
|
+
throw new Error(`Cannot start service: Host version "${"0.18.4"}" does not match binary version ${quote(binaryVersion)}`);
|
730
730
|
}
|
731
731
|
return;
|
732
732
|
}
|
@@ -1747,7 +1747,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
|
|
1747
1747
|
}
|
1748
1748
|
}
|
1749
1749
|
var _a;
|
1750
|
-
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.
|
1750
|
+
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.18.4";
|
1751
1751
|
var esbuildCommandAndArgs = () => {
|
1752
1752
|
if ((!ESBUILD_BINARY_PATH || true) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
|
1753
1753
|
throw new Error(
|
@@ -1814,7 +1814,7 @@ var fsAsync = {
|
|
1814
1814
|
}
|
1815
1815
|
}
|
1816
1816
|
};
|
1817
|
-
var version = "0.
|
1817
|
+
var version = "0.18.4";
|
1818
1818
|
var build = (options) => ensureServiceIsRunning().build(options);
|
1819
1819
|
var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
|
1820
1820
|
var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
|
@@ -1924,7 +1924,7 @@ var ensureServiceIsRunning = () => {
|
|
1924
1924
|
if (longLivedService)
|
1925
1925
|
return longLivedService;
|
1926
1926
|
let [command, args] = esbuildCommandAndArgs();
|
1927
|
-
let child = child_process.spawn(command, args.concat(`--service=${"0.
|
1927
|
+
let child = child_process.spawn(command, args.concat(`--service=${"0.18.4"}`, "--ping"), {
|
1928
1928
|
windowsHide: true,
|
1929
1929
|
stdio: ["pipe", "pipe", "inherit"],
|
1930
1930
|
cwd: defaultWD
|
@@ -2024,7 +2024,7 @@ var runServiceSync = (callback) => {
|
|
2024
2024
|
esbuild: node_exports
|
2025
2025
|
});
|
2026
2026
|
callback(service);
|
2027
|
-
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.
|
2027
|
+
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.18.4"}`), {
|
2028
2028
|
cwd: defaultWD,
|
2029
2029
|
windowsHide: true,
|
2030
2030
|
input: stdin,
|
@@ -2044,7 +2044,7 @@ var workerThreadService = null;
|
|
2044
2044
|
var startWorkerThreadService = (worker_threads2) => {
|
2045
2045
|
let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
|
2046
2046
|
let worker = new worker_threads2.Worker(__filename, {
|
2047
|
-
workerData: { workerPort, defaultWD, esbuildVersion: "0.
|
2047
|
+
workerData: { workerPort, defaultWD, esbuildVersion: "0.18.4" },
|
2048
2048
|
transferList: [workerPort],
|
2049
2049
|
// From node's documentation: https://nodejs.org/api/worker_threads.html
|
2050
2050
|
//
|
data/package.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isomorfeus-asset-manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: brotli
|
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
233
233
|
- !ruby/object:Gem::Version
|
234
234
|
version: '0'
|
235
235
|
requirements: []
|
236
|
-
rubygems_version: 3.4.
|
236
|
+
rubygems_version: 3.4.10
|
237
237
|
signing_key:
|
238
238
|
specification_version: 4
|
239
239
|
summary: Asset manager and bundler for Isomorfeus.
|