@atlaspack/runtime-webextension 2.14.5-canary.16 → 2.14.5-canary.160
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,161 @@
|
|
|
1
1
|
# @atlaspack/runtime-webextension
|
|
2
2
|
|
|
3
|
+
## 2.14.25
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies []:
|
|
8
|
+
- @atlaspack/utils@2.18.2
|
|
9
|
+
- @atlaspack/plugin@2.14.25
|
|
10
|
+
|
|
11
|
+
## 2.14.24
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies []:
|
|
16
|
+
- @atlaspack/utils@2.18.1
|
|
17
|
+
- @atlaspack/plugin@2.14.24
|
|
18
|
+
|
|
19
|
+
## 2.14.23
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [[`23d561e`](https://github.com/atlassian-labs/atlaspack/commit/23d561e51e68b0c38fd1ff4e4fb173e5e7b01cf2)]:
|
|
24
|
+
- @atlaspack/utils@2.18.0
|
|
25
|
+
- @atlaspack/plugin@2.14.23
|
|
26
|
+
|
|
27
|
+
## 2.14.22
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- [#720](https://github.com/atlassian-labs/atlaspack/pull/720) [`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94) Thanks [@alshdavid](https://github.com/alshdavid)! - Migrate to TypeScript
|
|
32
|
+
|
|
33
|
+
- Updated dependencies [[`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94)]:
|
|
34
|
+
- @atlaspack/plugin@2.14.22
|
|
35
|
+
- @atlaspack/utils@2.17.4
|
|
36
|
+
|
|
37
|
+
## 2.14.21
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- Updated dependencies []:
|
|
42
|
+
- @atlaspack/utils@2.17.3
|
|
43
|
+
- @atlaspack/plugin@2.14.21
|
|
44
|
+
|
|
45
|
+
## 2.14.20
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- [#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
|
|
50
|
+
|
|
51
|
+
- Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa)]:
|
|
52
|
+
- @atlaspack/plugin@2.14.20
|
|
53
|
+
- @atlaspack/utils@2.17.2
|
|
54
|
+
|
|
55
|
+
## 2.14.19
|
|
56
|
+
|
|
57
|
+
### Patch Changes
|
|
58
|
+
|
|
59
|
+
- Updated dependencies []:
|
|
60
|
+
- @atlaspack/utils@2.17.1
|
|
61
|
+
- @atlaspack/plugin@2.14.19
|
|
62
|
+
|
|
63
|
+
## 2.14.18
|
|
64
|
+
|
|
65
|
+
### Patch Changes
|
|
66
|
+
|
|
67
|
+
- Updated dependencies [[`dbb4072`](https://github.com/atlassian-labs/atlaspack/commit/dbb40721ebeb45990a14ba04e6b44e7f836fb32d), [`de23e0c`](https://github.com/atlassian-labs/atlaspack/commit/de23e0ce49d5504fe3947ac26640a3d951087da3), [`18a57cf`](https://github.com/atlassian-labs/atlaspack/commit/18a57cf8a4789b2de5ad8e2676f317a26cc91417), [`a5ed1b4`](https://github.com/atlassian-labs/atlaspack/commit/a5ed1b414498560f393ff491af4da25b6e8dde56)]:
|
|
68
|
+
- @atlaspack/utils@2.17.0
|
|
69
|
+
- @atlaspack/plugin@2.14.18
|
|
70
|
+
|
|
71
|
+
## 2.14.17
|
|
72
|
+
|
|
73
|
+
### Patch Changes
|
|
74
|
+
|
|
75
|
+
- Updated dependencies []:
|
|
76
|
+
- @atlaspack/utils@2.16.1
|
|
77
|
+
- @atlaspack/plugin@2.14.17
|
|
78
|
+
|
|
79
|
+
## 2.14.16
|
|
80
|
+
|
|
81
|
+
### Patch Changes
|
|
82
|
+
|
|
83
|
+
- Updated dependencies [[`30ee2cf`](https://github.com/atlassian-labs/atlaspack/commit/30ee2cfcd34cf2646ded0eda13fdb80a2a5de529)]:
|
|
84
|
+
- @atlaspack/utils@2.16.0
|
|
85
|
+
- @atlaspack/plugin@2.14.16
|
|
86
|
+
|
|
87
|
+
## 2.14.15
|
|
88
|
+
|
|
89
|
+
### Patch Changes
|
|
90
|
+
|
|
91
|
+
- Updated dependencies []:
|
|
92
|
+
- @atlaspack/utils@2.15.3
|
|
93
|
+
- @atlaspack/plugin@2.14.15
|
|
94
|
+
|
|
95
|
+
## 2.14.14
|
|
96
|
+
|
|
97
|
+
### Patch Changes
|
|
98
|
+
|
|
99
|
+
- Updated dependencies []:
|
|
100
|
+
- @atlaspack/utils@2.15.2
|
|
101
|
+
- @atlaspack/plugin@2.14.14
|
|
102
|
+
|
|
103
|
+
## 2.14.13
|
|
104
|
+
|
|
105
|
+
### Patch Changes
|
|
106
|
+
|
|
107
|
+
- Updated dependencies []:
|
|
108
|
+
- @atlaspack/utils@2.15.1
|
|
109
|
+
- @atlaspack/plugin@2.14.13
|
|
110
|
+
|
|
111
|
+
## 2.14.12
|
|
112
|
+
|
|
113
|
+
### Patch Changes
|
|
114
|
+
|
|
115
|
+
- Updated dependencies [[`e39c6cf`](https://github.com/atlassian-labs/atlaspack/commit/e39c6cf05f7e95ce5420dbcea66f401b1cbd397c)]:
|
|
116
|
+
- @atlaspack/utils@2.15.0
|
|
117
|
+
- @atlaspack/plugin@2.14.12
|
|
118
|
+
|
|
119
|
+
## 2.14.11
|
|
120
|
+
|
|
121
|
+
### Patch Changes
|
|
122
|
+
|
|
123
|
+
- Updated dependencies []:
|
|
124
|
+
- @atlaspack/utils@2.14.11
|
|
125
|
+
- @atlaspack/plugin@2.14.11
|
|
126
|
+
|
|
127
|
+
## 2.14.10
|
|
128
|
+
|
|
129
|
+
### Patch Changes
|
|
130
|
+
|
|
131
|
+
- Updated dependencies []:
|
|
132
|
+
- @atlaspack/plugin@2.14.10
|
|
133
|
+
- @atlaspack/utils@2.14.10
|
|
134
|
+
|
|
135
|
+
## 2.14.9
|
|
136
|
+
|
|
137
|
+
### Patch Changes
|
|
138
|
+
|
|
139
|
+
- Updated dependencies []:
|
|
140
|
+
- @atlaspack/utils@2.14.9
|
|
141
|
+
- @atlaspack/plugin@2.14.9
|
|
142
|
+
|
|
143
|
+
## 2.14.8
|
|
144
|
+
|
|
145
|
+
### Patch Changes
|
|
146
|
+
|
|
147
|
+
- Updated dependencies []:
|
|
148
|
+
- @atlaspack/utils@2.14.8
|
|
149
|
+
- @atlaspack/plugin@2.14.8
|
|
150
|
+
|
|
151
|
+
## 2.14.7
|
|
152
|
+
|
|
153
|
+
### Patch Changes
|
|
154
|
+
|
|
155
|
+
- Updated dependencies []:
|
|
156
|
+
- @atlaspack/utils@2.14.7
|
|
157
|
+
- @atlaspack/plugin@2.14.7
|
|
158
|
+
|
|
3
159
|
## 2.14.6
|
|
4
160
|
|
|
5
161
|
### Patch Changes
|
|
@@ -75,7 +75,9 @@ var _default = exports.default = new (_plugin().Runtime)({
|
|
|
75
75
|
const entry = manifest === null || manifest === void 0 ? void 0 : manifest.getMainEntry();
|
|
76
76
|
const insertDep = entry === null || entry === void 0 ? void 0 : entry.meta.webextBGInsert;
|
|
77
77
|
if (!manifest || !entry || insertDep == null) return;
|
|
78
|
-
const insertBundle = bundleGraph.getReferencedBundle((0, _nullthrows().default)(entry === null || entry === void 0 ? void 0 : entry.getDependencies()
|
|
78
|
+
const insertBundle = bundleGraph.getReferencedBundle((0, _nullthrows().default)(entry === null || entry === void 0 ? void 0 : entry.getDependencies()
|
|
79
|
+
// @ts-expect-error TS2304
|
|
80
|
+
.find(dep => dep.id === insertDep)), (0, _nullthrows().default)(manifest));
|
|
79
81
|
let firstInsertableBundle;
|
|
80
82
|
bundleGraph.traverseBundles((b, _, actions) => {
|
|
81
83
|
if (b.type == 'js') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/runtime-webextension",
|
|
3
|
-
"version": "2.14.5-canary.
|
|
3
|
+
"version": "2.14.5-canary.160+4be63eda8",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -9,16 +9,21 @@
|
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "https://github.com/atlassian-labs/atlaspack.git"
|
|
11
11
|
},
|
|
12
|
-
"main": "lib/WebExtensionRuntime.js",
|
|
13
|
-
"source": "src/WebExtensionRuntime.
|
|
12
|
+
"main": "./lib/WebExtensionRuntime.js",
|
|
13
|
+
"source": "./src/WebExtensionRuntime.ts",
|
|
14
|
+
"types": "./lib/types/WebExtensionRuntime.d.ts",
|
|
14
15
|
"engines": {
|
|
15
16
|
"node": ">= 16.0.0"
|
|
16
17
|
},
|
|
17
18
|
"dependencies": {
|
|
18
|
-
"@atlaspack/plugin": "2.14.5-canary.
|
|
19
|
-
"@atlaspack/utils": "2.14.5-canary.
|
|
19
|
+
"@atlaspack/plugin": "2.14.5-canary.160+4be63eda8",
|
|
20
|
+
"@atlaspack/utils": "2.14.5-canary.160+4be63eda8",
|
|
20
21
|
"nullthrows": "^1.1.1"
|
|
21
22
|
},
|
|
22
23
|
"type": "commonjs",
|
|
23
|
-
"
|
|
24
|
+
"scripts": {
|
|
25
|
+
"check-ts": "tsc --emitDeclarationOnly --rootDir src",
|
|
26
|
+
"build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
|
|
27
|
+
},
|
|
28
|
+
"gitHead": "4be63eda8e561c18803bf04681fe1d61b7eaae93"
|
|
24
29
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// @flow strict-local
|
|
2
|
-
|
|
3
1
|
import {Runtime} from '@atlaspack/plugin';
|
|
4
2
|
import {replaceURLReferences} from '@atlaspack/utils';
|
|
5
3
|
import nullthrows from 'nullthrows';
|
|
@@ -11,7 +9,7 @@ const AUTORELOAD_BG = fs.readFileSync(
|
|
|
11
9
|
'utf8',
|
|
12
10
|
);
|
|
13
11
|
|
|
14
|
-
export default
|
|
12
|
+
export default new Runtime({
|
|
15
13
|
loadConfig({config}) {
|
|
16
14
|
config.invalidateOnBuild();
|
|
17
15
|
},
|
|
@@ -22,7 +20,7 @@ export default (new Runtime({
|
|
|
22
20
|
|
|
23
21
|
if (bundle.getMainEntry()?.meta.webextEntry === true) {
|
|
24
22
|
// Hack to bust packager cache when any descendants update
|
|
25
|
-
const descendants = [];
|
|
23
|
+
const descendants: Array<string> = [];
|
|
26
24
|
bundleGraph.traverseBundles((b) => {
|
|
27
25
|
descendants.push(b.id);
|
|
28
26
|
}, bundle);
|
|
@@ -40,7 +38,10 @@ export default (new Runtime({
|
|
|
40
38
|
if (!manifest || !entry || insertDep == null) return;
|
|
41
39
|
const insertBundle = bundleGraph.getReferencedBundle(
|
|
42
40
|
nullthrows(
|
|
43
|
-
entry
|
|
41
|
+
entry
|
|
42
|
+
?.getDependencies()
|
|
43
|
+
// @ts-expect-error TS2304
|
|
44
|
+
.find((dep: Dependency) => dep.id === insertDep),
|
|
44
45
|
),
|
|
45
46
|
nullthrows(manifest),
|
|
46
47
|
);
|
|
@@ -81,4 +82,4 @@ export default (new Runtime({
|
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
84
|
},
|
|
84
|
-
})
|
|
85
|
+
}) as Runtime<unknown>;
|
package/tsconfig.json
ADDED