@atlaspack/runtime-webextension 2.14.5-canary.19 → 2.14.5-canary.191

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,191 @@
1
1
  # @atlaspack/runtime-webextension
2
2
 
3
+ ## 2.14.29
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/utils@2.19.1
9
+ - @atlaspack/plugin@2.14.29
10
+ - @atlaspack/types@2.15.19
11
+
12
+ ## 2.14.28
13
+
14
+ ### Patch Changes
15
+
16
+ - [#758](https://github.com/atlassian-labs/atlaspack/pull/758) [`c940954`](https://github.com/atlassian-labs/atlaspack/commit/c940954d27d657c3c93cd328dfb394778da46eab) Thanks [@marcins](https://github.com/marcins)! - Type fixes
17
+
18
+ - Updated dependencies [[`f0349a6`](https://github.com/atlassian-labs/atlaspack/commit/f0349a6b9b04755088f121095ca6301a2ada3767)]:
19
+ - @atlaspack/utils@2.19.0
20
+ - @atlaspack/plugin@2.14.28
21
+ - @atlaspack/types@2.15.18
22
+
23
+ ## 2.14.27
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies []:
28
+ - @atlaspack/utils@2.18.4
29
+ - @atlaspack/plugin@2.14.27
30
+
31
+ ## 2.14.26
32
+
33
+ ### Patch Changes
34
+
35
+ - [#742](https://github.com/atlassian-labs/atlaspack/pull/742) [`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd) Thanks [@yamadapc](https://github.com/yamadapc)! - Internal changes and bug fixes to environmentDeduplication flag
36
+
37
+ - Updated dependencies [[`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd), [`889c65c`](https://github.com/atlassian-labs/atlaspack/commit/889c65cd25b811045e26a117e7404f694dde77a2)]:
38
+ - @atlaspack/plugin@2.14.26
39
+ - @atlaspack/utils@2.18.3
40
+
41
+ ## 2.14.25
42
+
43
+ ### Patch Changes
44
+
45
+ - Updated dependencies []:
46
+ - @atlaspack/utils@2.18.2
47
+ - @atlaspack/plugin@2.14.25
48
+
49
+ ## 2.14.24
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies []:
54
+ - @atlaspack/utils@2.18.1
55
+ - @atlaspack/plugin@2.14.24
56
+
57
+ ## 2.14.23
58
+
59
+ ### Patch Changes
60
+
61
+ - Updated dependencies [[`23d561e`](https://github.com/atlassian-labs/atlaspack/commit/23d561e51e68b0c38fd1ff4e4fb173e5e7b01cf2)]:
62
+ - @atlaspack/utils@2.18.0
63
+ - @atlaspack/plugin@2.14.23
64
+
65
+ ## 2.14.22
66
+
67
+ ### Patch Changes
68
+
69
+ - [#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
70
+
71
+ - Updated dependencies [[`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94)]:
72
+ - @atlaspack/plugin@2.14.22
73
+ - @atlaspack/utils@2.17.4
74
+
75
+ ## 2.14.21
76
+
77
+ ### Patch Changes
78
+
79
+ - Updated dependencies []:
80
+ - @atlaspack/utils@2.17.3
81
+ - @atlaspack/plugin@2.14.21
82
+
83
+ ## 2.14.20
84
+
85
+ ### Patch Changes
86
+
87
+ - [#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
88
+
89
+ - Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa)]:
90
+ - @atlaspack/plugin@2.14.20
91
+ - @atlaspack/utils@2.17.2
92
+
93
+ ## 2.14.19
94
+
95
+ ### Patch Changes
96
+
97
+ - Updated dependencies []:
98
+ - @atlaspack/utils@2.17.1
99
+ - @atlaspack/plugin@2.14.19
100
+
101
+ ## 2.14.18
102
+
103
+ ### Patch Changes
104
+
105
+ - 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)]:
106
+ - @atlaspack/utils@2.17.0
107
+ - @atlaspack/plugin@2.14.18
108
+
109
+ ## 2.14.17
110
+
111
+ ### Patch Changes
112
+
113
+ - Updated dependencies []:
114
+ - @atlaspack/utils@2.16.1
115
+ - @atlaspack/plugin@2.14.17
116
+
117
+ ## 2.14.16
118
+
119
+ ### Patch Changes
120
+
121
+ - Updated dependencies [[`30ee2cf`](https://github.com/atlassian-labs/atlaspack/commit/30ee2cfcd34cf2646ded0eda13fdb80a2a5de529)]:
122
+ - @atlaspack/utils@2.16.0
123
+ - @atlaspack/plugin@2.14.16
124
+
125
+ ## 2.14.15
126
+
127
+ ### Patch Changes
128
+
129
+ - Updated dependencies []:
130
+ - @atlaspack/utils@2.15.3
131
+ - @atlaspack/plugin@2.14.15
132
+
133
+ ## 2.14.14
134
+
135
+ ### Patch Changes
136
+
137
+ - Updated dependencies []:
138
+ - @atlaspack/utils@2.15.2
139
+ - @atlaspack/plugin@2.14.14
140
+
141
+ ## 2.14.13
142
+
143
+ ### Patch Changes
144
+
145
+ - Updated dependencies []:
146
+ - @atlaspack/utils@2.15.1
147
+ - @atlaspack/plugin@2.14.13
148
+
149
+ ## 2.14.12
150
+
151
+ ### Patch Changes
152
+
153
+ - Updated dependencies [[`e39c6cf`](https://github.com/atlassian-labs/atlaspack/commit/e39c6cf05f7e95ce5420dbcea66f401b1cbd397c)]:
154
+ - @atlaspack/utils@2.15.0
155
+ - @atlaspack/plugin@2.14.12
156
+
157
+ ## 2.14.11
158
+
159
+ ### Patch Changes
160
+
161
+ - Updated dependencies []:
162
+ - @atlaspack/utils@2.14.11
163
+ - @atlaspack/plugin@2.14.11
164
+
165
+ ## 2.14.10
166
+
167
+ ### Patch Changes
168
+
169
+ - Updated dependencies []:
170
+ - @atlaspack/plugin@2.14.10
171
+ - @atlaspack/utils@2.14.10
172
+
173
+ ## 2.14.9
174
+
175
+ ### Patch Changes
176
+
177
+ - Updated dependencies []:
178
+ - @atlaspack/utils@2.14.9
179
+ - @atlaspack/plugin@2.14.9
180
+
181
+ ## 2.14.8
182
+
183
+ ### Patch Changes
184
+
185
+ - Updated dependencies []:
186
+ - @atlaspack/utils@2.14.8
187
+ - @atlaspack/plugin@2.14.8
188
+
3
189
  ## 2.14.7
4
190
 
5
191
  ### Patch Changes
@@ -0,0 +1,3 @@
1
+ import { Runtime } from '@atlaspack/plugin';
2
+ declare const _default: Runtime<unknown>;
3
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/runtime-webextension",
3
- "version": "2.14.5-canary.19+a63b1da4d",
3
+ "version": "2.14.5-canary.191+eedcbc408",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -9,16 +9,22 @@
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.js",
12
+ "main": "./lib/WebExtensionRuntime.js",
13
+ "source": "./src/WebExtensionRuntime.ts",
14
+ "types": "./lib/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+a63b1da4d",
19
- "@atlaspack/utils": "2.14.5-canary.19+a63b1da4d",
19
+ "@atlaspack/plugin": "2.14.5-canary.191+eedcbc408",
20
+ "@atlaspack/types": "2.14.5-canary.191+eedcbc408",
21
+ "@atlaspack/utils": "2.14.5-canary.191+eedcbc408",
20
22
  "nullthrows": "^1.1.1"
21
23
  },
22
24
  "type": "commonjs",
23
- "gitHead": "a63b1da4d98a7eda8a2130700dc844a56aa8308e"
24
- }
25
+ "scripts": {
26
+ "check-ts": "tsc --emitDeclarationOnly --rootDir src",
27
+ "build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
28
+ },
29
+ "gitHead": "eedcbc408fc1e86a2a8e25f1a41c57146d8529e1"
30
+ }
@@ -1,7 +1,6 @@
1
- // @flow strict-local
2
-
3
1
  import {Runtime} from '@atlaspack/plugin';
4
2
  import {replaceURLReferences} from '@atlaspack/utils';
3
+ import type {Dependency} from '@atlaspack/types';
5
4
  import nullthrows from 'nullthrows';
6
5
  import fs from 'fs';
7
6
  import path from 'path';
@@ -11,7 +10,7 @@ const AUTORELOAD_BG = fs.readFileSync(
11
10
  'utf8',
12
11
  );
13
12
 
14
- export default (new Runtime({
13
+ export default new Runtime({
15
14
  loadConfig({config}) {
16
15
  config.invalidateOnBuild();
17
16
  },
@@ -22,7 +21,7 @@ export default (new Runtime({
22
21
 
23
22
  if (bundle.getMainEntry()?.meta.webextEntry === true) {
24
23
  // Hack to bust packager cache when any descendants update
25
- const descendants = [];
24
+ const descendants: Array<string> = [];
26
25
  bundleGraph.traverseBundles((b) => {
27
26
  descendants.push(b.id);
28
27
  }, bundle);
@@ -40,7 +39,9 @@ export default (new Runtime({
40
39
  if (!manifest || !entry || insertDep == null) return;
41
40
  const insertBundle = bundleGraph.getReferencedBundle(
42
41
  nullthrows(
43
- entry?.getDependencies().find((dep) => dep.id === insertDep),
42
+ entry
43
+ ?.getDependencies()
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
- }): Runtime);
85
+ }) as Runtime<unknown>;
package/tsconfig.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "../../../tsconfig.json",
3
+ "include": ["src"]
4
+ }