@atlaspack/utils 2.17.4 → 2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaspack/utils
2
2
 
3
+ ## 2.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#731](https://github.com/atlassian-labs/atlaspack/pull/731) [`23d561e`](https://github.com/atlassian-labs/atlaspack/commit/23d561e51e68b0c38fd1ff4e4fb173e5e7b01cf2) Thanks [@marcins](https://github.com/marcins)! - Implement "inline isolated" scripts
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`23d561e`](https://github.com/atlassian-labs/atlaspack/commit/23d561e51e68b0c38fd1ff4e4fb173e5e7b01cf2)]:
12
+ - @atlaspack/feature-flags@2.21.0
13
+ - @atlaspack/rust@3.5.0
14
+ - @atlaspack/logger@2.14.15
15
+
3
16
  ## 2.17.4
4
17
 
5
18
  ### Patch Changes
@@ -87,7 +87,7 @@ function replaceURLReferences({
87
87
  });
88
88
  continue;
89
89
  }
90
- if (resolved.bundleBehavior === 'inline') {
90
+ if (resolved.bundleBehavior === 'inline' || resolved.bundleBehavior === 'inlineIsolated') {
91
91
  // If a bundle is inline, it should be replaced with inline contents,
92
92
  // not a URL.
93
93
  continue;
@@ -124,7 +124,7 @@ async function replaceInlineReferences({
124
124
  });
125
125
  for (let dependency of dependencies) {
126
126
  let entryBundle = bundleGraph.getReferencedBundle(dependency, bundle);
127
- if ((entryBundle === null || entryBundle === void 0 ? void 0 : entryBundle.bundleBehavior) !== 'inline') {
127
+ if ((entryBundle === null || entryBundle === void 0 ? void 0 : entryBundle.bundleBehavior) !== 'inline' && (entryBundle === null || entryBundle === void 0 ? void 0 : entryBundle.bundleBehavior) !== 'inlineIsolated') {
128
128
  continue;
129
129
  }
130
130
  let packagedBundle = await getInlineBundleContents(entryBundle, bundleGraph);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/utils",
3
- "version": "2.17.4",
3
+ "version": "2.18.0",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "publishConfig": {
@@ -33,10 +33,10 @@
33
33
  "dependencies": {
34
34
  "@atlaspack/codeframe": "2.13.5",
35
35
  "@atlaspack/diagnostic": "2.14.2",
36
- "@atlaspack/feature-flags": "2.20.1",
37
- "@atlaspack/logger": "2.14.14",
36
+ "@atlaspack/feature-flags": "2.21.0",
37
+ "@atlaspack/logger": "2.14.15",
38
38
  "@atlaspack/markdown-ansi": "2.14.2",
39
- "@atlaspack/rust": "3.4.2",
39
+ "@atlaspack/rust": "3.5.0",
40
40
  "@parcel/source-map": "^2.1.1",
41
41
  "@types/micromatch": "^4.0.9",
42
42
  "@types/node-forge": "^1.3.13",
@@ -74,7 +74,10 @@ export function replaceURLReferences({
74
74
  continue;
75
75
  }
76
76
 
77
- if (resolved.bundleBehavior === 'inline') {
77
+ if (
78
+ resolved.bundleBehavior === 'inline' ||
79
+ resolved.bundleBehavior === 'inlineIsolated'
80
+ ) {
78
81
  // If a bundle is inline, it should be replaced with inline contents,
79
82
  // not a URL.
80
83
  continue;
@@ -140,7 +143,10 @@ export async function replaceInlineReferences({
140
143
 
141
144
  for (let dependency of dependencies) {
142
145
  let entryBundle = bundleGraph.getReferencedBundle(dependency, bundle);
143
- if (entryBundle?.bundleBehavior !== 'inline') {
146
+ if (
147
+ entryBundle?.bundleBehavior !== 'inline' &&
148
+ entryBundle?.bundleBehavior !== 'inlineIsolated'
149
+ ) {
144
150
  continue;
145
151
  }
146
152