@atlaspack/bundler-library 2.12.7-canary.21 → 2.12.7-canary.211

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,188 @@
1
1
  # @atlaspack/bundler-library
2
2
 
3
+ ## 2.12.34
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/plugin@2.14.32
9
+
10
+ ## 2.12.33
11
+
12
+ ### Patch Changes
13
+
14
+ - [#785](https://github.com/atlassian-labs/atlaspack/pull/785) [`0e7dd5e`](https://github.com/atlassian-labs/atlaspack/commit/0e7dd5ec6fbe05aa9e0bb5775a9d0975f206a922) Thanks [@matt-koko](https://github.com/matt-koko)! - We need to re-publish every package in Atlaspack with the corrected types field.
15
+
16
+ - Updated dependencies [[`0e7dd5e`](https://github.com/atlassian-labs/atlaspack/commit/0e7dd5ec6fbe05aa9e0bb5775a9d0975f206a922)]:
17
+ - @atlaspack/plugin@2.14.31
18
+
19
+ ## 2.12.32
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies []:
24
+ - @atlaspack/plugin@2.14.30
25
+
26
+ ## 2.12.31
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies []:
31
+ - @atlaspack/plugin@2.14.29
32
+
33
+ ## 2.12.30
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies []:
38
+ - @atlaspack/plugin@2.14.28
39
+
40
+ ## 2.12.29
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies []:
45
+ - @atlaspack/plugin@2.14.27
46
+
47
+ ## 2.12.28
48
+
49
+ ### Patch Changes
50
+
51
+ - [#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
52
+
53
+ - Updated dependencies [[`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd)]:
54
+ - @atlaspack/plugin@2.14.26
55
+
56
+ ## 2.12.27
57
+
58
+ ### Patch Changes
59
+
60
+ - Updated dependencies []:
61
+ - @atlaspack/plugin@2.14.25
62
+
63
+ ## 2.12.26
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies []:
68
+ - @atlaspack/plugin@2.14.24
69
+
70
+ ## 2.12.25
71
+
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies []:
75
+ - @atlaspack/plugin@2.14.23
76
+
77
+ ## 2.12.24
78
+
79
+ ### Patch Changes
80
+
81
+ - [#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
82
+
83
+ - Updated dependencies [[`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94)]:
84
+ - @atlaspack/plugin@2.14.22
85
+
86
+ ## 2.12.23
87
+
88
+ ### Patch Changes
89
+
90
+ - Updated dependencies []:
91
+ - @atlaspack/plugin@2.14.21
92
+
93
+ ## 2.12.22
94
+
95
+ ### Patch Changes
96
+
97
+ - [#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
98
+
99
+ - Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa)]:
100
+ - @atlaspack/plugin@2.14.20
101
+
102
+ ## 2.12.21
103
+
104
+ ### Patch Changes
105
+
106
+ - Updated dependencies []:
107
+ - @atlaspack/plugin@2.14.19
108
+
109
+ ## 2.12.20
110
+
111
+ ### Patch Changes
112
+
113
+ - Updated dependencies []:
114
+ - @atlaspack/plugin@2.14.18
115
+
116
+ ## 2.12.19
117
+
118
+ ### Patch Changes
119
+
120
+ - Updated dependencies []:
121
+ - @atlaspack/plugin@2.14.17
122
+
123
+ ## 2.12.18
124
+
125
+ ### Patch Changes
126
+
127
+ - Updated dependencies []:
128
+ - @atlaspack/plugin@2.14.16
129
+
130
+ ## 2.12.17
131
+
132
+ ### Patch Changes
133
+
134
+ - Updated dependencies []:
135
+ - @atlaspack/plugin@2.14.15
136
+
137
+ ## 2.12.16
138
+
139
+ ### Patch Changes
140
+
141
+ - Updated dependencies []:
142
+ - @atlaspack/plugin@2.14.14
143
+
144
+ ## 2.12.15
145
+
146
+ ### Patch Changes
147
+
148
+ - Updated dependencies []:
149
+ - @atlaspack/plugin@2.14.13
150
+
151
+ ## 2.12.14
152
+
153
+ ### Patch Changes
154
+
155
+ - Updated dependencies []:
156
+ - @atlaspack/plugin@2.14.12
157
+
158
+ ## 2.12.13
159
+
160
+ ### Patch Changes
161
+
162
+ - Updated dependencies []:
163
+ - @atlaspack/plugin@2.14.11
164
+
165
+ ## 2.12.12
166
+
167
+ ### Patch Changes
168
+
169
+ - Updated dependencies []:
170
+ - @atlaspack/plugin@2.14.10
171
+
172
+ ## 2.12.11
173
+
174
+ ### Patch Changes
175
+
176
+ - Updated dependencies []:
177
+ - @atlaspack/plugin@2.14.9
178
+
179
+ ## 2.12.10
180
+
181
+ ### Patch Changes
182
+
183
+ - Updated dependencies []:
184
+ - @atlaspack/plugin@2.14.8
185
+
3
186
  ## 2.12.9
4
187
 
5
188
  ### Patch Changes
@@ -28,6 +28,7 @@ var _default = exports.default = new (_plugin().Bundler)({
28
28
  }) {
29
29
  // Collect dependencies from the graph.
30
30
  // We do not want to mutate the graph while traversing, so this must be done first.
31
+ // @ts-expect-error TS2304
31
32
  let dependencies = [];
32
33
  bundleGraph.traverse((node, context) => {
33
34
  if (node.type === 'dependency') {
@@ -85,7 +86,7 @@ var _default = exports.default = new (_plugin().Bundler)({
85
86
  }
86
87
  },
87
88
  optimize() {}
88
- });
89
+ }); // @ts-expect-error TS2552
89
90
  function getBundleKey(asset, target) {
90
91
  var _target$loc;
91
92
  // Group by type and file path so CSS generated by macros is combined together by parent JS file.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/bundler-library",
3
- "version": "2.12.7-canary.21+3a3e8e7be",
3
+ "version": "2.12.7-canary.211+236e54658",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "type": "commonjs",
6
6
  "publishConfig": {
@@ -10,14 +10,18 @@
10
10
  "type": "git",
11
11
  "url": "https://github.com/atlassian-labs/atlaspack.git"
12
12
  },
13
- "main": "lib/LibraryBundler.js",
14
- "source": "src/LibraryBundler.js",
13
+ "main": "./lib/LibraryBundler.js",
14
+ "source": "./src/LibraryBundler.ts",
15
+ "types": "./lib/types/LibraryBundler.d.ts",
15
16
  "engines": {
16
17
  "node": ">= 16.0.0"
17
18
  },
18
19
  "dependencies": {
19
- "@atlaspack/plugin": "2.14.5-canary.21+3a3e8e7be",
20
+ "@atlaspack/plugin": "2.14.5-canary.211+236e54658",
20
21
  "nullthrows": "^1.1.1"
21
22
  },
22
- "gitHead": "3a3e8e7be9e2dffd7304436d792f0f595d59665a"
23
- }
23
+ "scripts": {
24
+ "build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
25
+ },
26
+ "gitHead": "236e5465863dca6044a7191e05260a5b924c342e"
27
+ }
@@ -1,15 +1,15 @@
1
- // @flow strict-local
2
1
  import {Bundler} from '@atlaspack/plugin';
3
2
  import nullthrows from 'nullthrows';
4
3
 
5
4
  // This bundler plugin is designed specifically for library builds. It outputs a bundle for
6
5
  // each input asset, which ensures that the library can be effectively tree shaken and code
7
6
  // split by an application bundler.
8
- export default (new Bundler({
7
+ export default new Bundler({
9
8
  bundle({bundleGraph}) {
10
9
  // Collect dependencies from the graph.
11
10
  // We do not want to mutate the graph while traversing, so this must be done first.
12
- let dependencies = [];
11
+ // @ts-expect-error TS2304
12
+ let dependencies: Array<Array<Target | Dependency>> = [];
13
13
  bundleGraph.traverse((node, context) => {
14
14
  if (node.type === 'dependency') {
15
15
  let dependency = node.value;
@@ -71,9 +71,10 @@ export default (new Bundler({
71
71
  }
72
72
  },
73
73
  optimize() {},
74
- }): Bundler);
74
+ }) as Bundler<undefined>;
75
75
 
76
- function getBundleKey(asset, target) {
76
+ // @ts-expect-error TS2552
77
+ function getBundleKey(asset: Asset, target: Target) {
77
78
  // Group by type and file path so CSS generated by macros is combined together by parent JS file.
78
79
  // Also group by environment/target to ensure bundles cannot be shared between packages.
79
80
  return `${asset.type}:${asset.filePath}:${asset.env.id}:${
package/tsconfig.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "../../../tsconfig.base.json",
3
+ "include": ["src"],
4
+ "compilerOptions": {
5
+ "composite": true
6
+ }
7
+ }