@atlaspack/runtime-js 2.15.1 → 2.15.2
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 +11 -0
- package/lib/JSRuntime.js +9 -3
- package/package.json +4 -4
- package/src/JSRuntime.js +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaspack/runtime-js
|
|
2
2
|
|
|
3
|
+
## 2.15.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#702](https://github.com/atlassian-labs/atlaspack/pull/702) [`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa) Thanks [@alshdavid](https://github.com/alshdavid)! - Fixes to Flow types
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa), [`1c7865a`](https://github.com/atlassian-labs/atlaspack/commit/1c7865a64451116d94015e248302435839d347c0), [`a0b959f`](https://github.com/atlassian-labs/atlaspack/commit/a0b959fbf61fc3f820ff03c7e8988945fe40a91a)]:
|
|
10
|
+
- @atlaspack/plugin@2.14.20
|
|
11
|
+
- @atlaspack/feature-flags@2.19.2
|
|
12
|
+
- @atlaspack/utils@2.17.2
|
|
13
|
+
|
|
3
14
|
## 2.15.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/lib/JSRuntime.js
CHANGED
|
@@ -280,7 +280,9 @@ var _default = exports.default = new (_plugin().Runtime)({
|
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
// URL dependency or not, fall back to including a runtime that exports the url
|
|
283
|
-
assets.push(getURLRuntime(dependency, bundle, mainBundle, options,
|
|
283
|
+
assets.push(getURLRuntime(dependency, bundle, mainBundle, options,
|
|
284
|
+
// $FlowFixMe
|
|
285
|
+
config.domainSharding));
|
|
284
286
|
}
|
|
285
287
|
|
|
286
288
|
// In development, bundles can be created lazily. This means that the parent bundle may not
|
|
@@ -298,7 +300,9 @@ var _default = exports.default = new (_plugin().Runtime)({
|
|
|
298
300
|
continue;
|
|
299
301
|
}
|
|
300
302
|
let relativePathExpr = getRelativePathExpr(bundle, referencedBundle, options);
|
|
301
|
-
let loaderCode = `require(${JSON.stringify(loader)})(${getAbsoluteUrlExpr(relativePathExpr, bundle,
|
|
303
|
+
let loaderCode = `require(${JSON.stringify(loader)})(${getAbsoluteUrlExpr(relativePathExpr, bundle,
|
|
304
|
+
// $FlowFixMe
|
|
305
|
+
config.domainSharding)})`;
|
|
302
306
|
assets.push({
|
|
303
307
|
filePath: __filename,
|
|
304
308
|
code: loaderCode,
|
|
@@ -317,7 +321,9 @@ var _default = exports.default = new (_plugin().Runtime)({
|
|
|
317
321
|
env: {
|
|
318
322
|
sourceType: 'module'
|
|
319
323
|
},
|
|
320
|
-
priority: getManifestBundlePriority(bundleGraph, bundle,
|
|
324
|
+
priority: getManifestBundlePriority(bundleGraph, bundle,
|
|
325
|
+
// $FlowFixMe
|
|
326
|
+
config.splitManifestThreshold)
|
|
321
327
|
});
|
|
322
328
|
}
|
|
323
329
|
return assets;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/runtime-js",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.2",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@atlaspack/diagnostic": "2.14.1",
|
|
19
19
|
"@atlaspack/domain-sharding": "2.14.1",
|
|
20
|
-
"@atlaspack/feature-flags": "2.19.
|
|
21
|
-
"@atlaspack/plugin": "2.14.
|
|
22
|
-
"@atlaspack/utils": "2.17.
|
|
20
|
+
"@atlaspack/feature-flags": "2.19.2",
|
|
21
|
+
"@atlaspack/plugin": "2.14.20",
|
|
22
|
+
"@atlaspack/utils": "2.17.2",
|
|
23
23
|
"nullthrows": "^1.1.1"
|
|
24
24
|
},
|
|
25
25
|
"type": "commonjs"
|
package/src/JSRuntime.js
CHANGED
|
@@ -329,6 +329,7 @@ export default (new Runtime({
|
|
|
329
329
|
bundle,
|
|
330
330
|
mainBundle,
|
|
331
331
|
options,
|
|
332
|
+
// $FlowFixMe
|
|
332
333
|
config.domainSharding,
|
|
333
334
|
),
|
|
334
335
|
);
|
|
@@ -360,6 +361,7 @@ export default (new Runtime({
|
|
|
360
361
|
)})(${getAbsoluteUrlExpr(
|
|
361
362
|
relativePathExpr,
|
|
362
363
|
bundle,
|
|
364
|
+
// $FlowFixMe
|
|
363
365
|
config.domainSharding,
|
|
364
366
|
)})`;
|
|
365
367
|
assets.push({
|
|
@@ -386,6 +388,7 @@ export default (new Runtime({
|
|
|
386
388
|
priority: getManifestBundlePriority(
|
|
387
389
|
bundleGraph,
|
|
388
390
|
bundle,
|
|
391
|
+
// $FlowFixMe
|
|
389
392
|
config.splitManifestThreshold,
|
|
390
393
|
),
|
|
391
394
|
});
|
|
@@ -393,7 +396,7 @@ export default (new Runtime({
|
|
|
393
396
|
|
|
394
397
|
return assets;
|
|
395
398
|
},
|
|
396
|
-
}): Runtime);
|
|
399
|
+
}): Runtime<JSRuntimeConfig>);
|
|
397
400
|
|
|
398
401
|
function getDependencies(bundle: NamedBundle): {|
|
|
399
402
|
asyncDependencies: Array<Dependency>,
|