Skip to content

Commit 61657d3

Browse files
Version Packages (#605)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 1b52b99 commit 61657d3

File tree

41 files changed

+242
-151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+242
-151
lines changed

.changeset/perfect-pianos-judge.md

Lines changed: 0 additions & 98 deletions
This file was deleted.

.changeset/quiet-files-jump.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/bundlers/bundler-experimental/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @atlaspack/bundler-experimental
22

3+
## 2.13.13
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`1b52b99`](https://github.com/atlassian-labs/atlaspack/commit/1b52b99db4298b04c1a6eb0f97994d75a2d436f9)]:
8+
- @atlaspack/graph@3.5.0
9+
- @atlaspack/core@2.18.1
10+
311
## 2.13.12
412

513
### Patch Changes

packages/bundlers/bundler-experimental/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@atlaspack/bundler-experimental",
3-
"version": "2.13.12",
3+
"version": "2.13.13",
44
"license": "(MIT OR Apache-2.0)",
55
"type": "commonjs",
66
"publishConfig": {
@@ -16,10 +16,10 @@
1616
"node": ">= 16.0.0"
1717
},
1818
"dependencies": {
19-
"@atlaspack/core": "2.18.0",
19+
"@atlaspack/core": "2.18.1",
2020
"@atlaspack/diagnostic": "2.14.1",
2121
"@atlaspack/feature-flags": "2.16.0",
22-
"@atlaspack/graph": "3.4.7",
22+
"@atlaspack/graph": "3.5.0",
2323
"@atlaspack/logger": "2.14.10",
2424
"@atlaspack/plugin": "2.14.10",
2525
"@atlaspack/rust": "3.3.5",

packages/bundlers/default/CHANGELOG.md

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,109 @@
11
# @atlaspack/bundler-default
22

3+
## 3.0.0
4+
5+
### Major Changes
6+
7+
- [#600](https://github.com/atlassian-labs/atlaspack/pull/600) [`1b52b99`](https://github.com/atlassian-labs/atlaspack/commit/1b52b99db4298b04c1a6eb0f97994d75a2d436f9) Thanks [@mattcompiles](https://github.com/mattcompiles)! - ### Breaking change
8+
9+
This new config replaces the previously released `sharedBundleMergeThreshold`.
10+
11+
The following options are available for each merge group.
12+
13+
### Options
14+
15+
#### overlapThreshold
16+
17+
> The same as `sharedBundleMergeThreshold` from #535
18+
19+
Merge bundles share a percentage of source bundles
20+
21+
```json
22+
"@atlaspack/bundler-default": {
23+
"sharedBundleMerge": [{
24+
"overlapThreshold": 0.75
25+
}]
26+
}
27+
```
28+
29+
#### maxBundleSize
30+
31+
Merge bundles that are smaller than a configured amount of bytes.
32+
33+
> Keep in mind these bytes are pre-optimisation
34+
35+
```json
36+
"@atlaspack/bundler-default": {
37+
"sharedBundleMerge": [{
38+
"maxBundleSize": 20000
39+
}]
40+
}
41+
```
42+
43+
#### sourceBundles
44+
45+
Merge bundles that share a set of source bundles. The matching is relative to the project root, like how manual shared bundle roots work.
46+
47+
```json
48+
"@atlaspack/bundler-default": {
49+
"sharedBundleMerge": [{
50+
"sourceBundles": ["src/important-route", "src/important-route-2"]
51+
}]
52+
}
53+
```
54+
55+
#### minBundlesInGroup
56+
57+
Merge bundles that belong to a bundle group that's larger than a set amount. This is useful for targetting bundles that would be deleted by the `maxParallelRequests` option.
58+
59+
```json
60+
"@atlaspack/bundler-default": {
61+
"maxParallelRequests": 30,
62+
"sharedBundleMerge": [{
63+
"minBundlesInGroup": 30
64+
}]
65+
}
66+
```
67+
68+
## Combining options
69+
70+
When multiple options are provided, all must be true for a merge to be relevant.
71+
72+
For example, merge bundles that are smaller than 20kb and share at least 50% of the same source bundles.
73+
74+
```json
75+
"@atlaspack/bundler-default": {
76+
"sharedBundleMerge": [{
77+
"overlapThreshold": 0.5,
78+
"maxBundleSize": 20000
79+
}]
80+
}
81+
```
82+
83+
## Multiple merges
84+
85+
You can also have multiple merge configs.
86+
87+
```json
88+
"@atlaspack/bundler-default": {
89+
"sharedBundleMerge": [
90+
{
91+
"overlapThreshold": 0.75,
92+
"maxBundleSize": 20000
93+
},
94+
{
95+
"minBundlesInGroup": 30
96+
"sourceBundles": ["src/important-route", "src/important-route-2"]
97+
}
98+
]
99+
}
100+
```
101+
102+
### Patch Changes
103+
104+
- Updated dependencies [[`1b52b99`](https://github.com/atlassian-labs/atlaspack/commit/1b52b99db4298b04c1a6eb0f97994d75a2d436f9)]:
105+
- @atlaspack/graph@3.5.0
106+
3107
## 2.16.3
4108

5109
### Patch Changes

packages/bundlers/default/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@atlaspack/bundler-default",
3-
"version": "2.16.3",
3+
"version": "3.0.0",
44
"license": "(MIT OR Apache-2.0)",
55
"type": "commonjs",
66
"publishConfig": {
@@ -18,7 +18,7 @@
1818
"dependencies": {
1919
"@atlaspack/diagnostic": "2.14.1",
2020
"@atlaspack/feature-flags": "2.16.0",
21-
"@atlaspack/graph": "3.4.7",
21+
"@atlaspack/graph": "3.5.0",
2222
"@atlaspack/plugin": "2.14.10",
2323
"@atlaspack/rust": "3.3.5",
2424
"@atlaspack/utils": "2.14.10",

packages/configs/default/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @atlaspack/config-default
22

3+
## 3.1.11
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`1b52b99`](https://github.com/atlassian-labs/atlaspack/commit/1b52b99db4298b04c1a6eb0f97994d75a2d436f9)]:
8+
- @atlaspack/bundler-default@3.0.0
9+
310
## 3.1.10
411

512
### Patch Changes

packages/configs/default/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@atlaspack/config-default",
3-
"version": "3.1.10",
3+
"version": "3.1.11",
44
"license": "(MIT OR Apache-2.0)",
55
"type": "commonjs",
66
"publishConfig": {
@@ -15,7 +15,7 @@
1515
"test-ci": "mocha"
1616
},
1717
"dependencies": {
18-
"@atlaspack/bundler-default": "2.16.3",
18+
"@atlaspack/bundler-default": "3.0.0",
1919
"@atlaspack/compressor-raw": "2.13.12",
2020
"@atlaspack/namer-default": "2.14.10",
2121
"@atlaspack/optimizer-css": "2.14.10",

packages/configs/repl/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @atlaspack/config-repl
22

3+
## 2.13.13
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`1b52b99`](https://github.com/atlassian-labs/atlaspack/commit/1b52b99db4298b04c1a6eb0f97994d75a2d436f9)]:
8+
- @atlaspack/bundler-default@3.0.0
9+
310
## 2.13.12
411

512
### Patch Changes

packages/configs/repl/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@atlaspack/config-repl",
3-
"version": "2.13.12",
3+
"version": "2.13.13",
44
"license": "MIT",
55
"private": true,
66
"type": "commonjs",
@@ -13,7 +13,7 @@
1313
"test-ci": "mocha"
1414
},
1515
"dependencies": {
16-
"@atlaspack/bundler-default": "2.16.3",
16+
"@atlaspack/bundler-default": "3.0.0",
1717
"@atlaspack/compressor-raw": "2.13.12",
1818
"@atlaspack/namer-default": "2.14.10",
1919
"@atlaspack/optimizer-terser": "2.14.10",

0 commit comments

Comments
 (0)