Skip to content

Commit 6836931

Browse files
Version Packages (#1943)
* Version Packages * chore: do not bump major version for js plugins --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: brightwu <[email protected]>
1 parent 7d86847 commit 6836931

23 files changed

+141
-85
lines changed

.changeset/fast-socks-smell.md

-5
This file was deleted.

.changeset/few-tables-shout.md

-55
This file was deleted.

.changeset/swift-plums-clap.md

-5
This file was deleted.

bench/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# bench
22

3+
## 1.0.24
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [7d86847c]
8+
- @farmfe/core@1.4.0
9+
310
## 1.0.23
411

512
### Patch Changes

bench/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bench",
3-
"version": "1.0.23",
3+
"version": "1.0.24",
44
"private": true,
55
"description": "",
66
"scripts": {},

js-plugins/less/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @farmfe/js-plugin-less
22

3+
## 1.10.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [7d86847c]
8+
- @farmfe/core@1.4.0
9+
310
## 1.9.0
411

512
### Patch Changes

js-plugins/less/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@farmfe/js-plugin-less",
3-
"version": "1.9.0",
3+
"version": "1.10.0",
44
"description": "support less compile for farm.",
55
"main": "./build/cjs/index.cjs",
66
"types": "./build/cjs/index.d.ts",
@@ -40,13 +40,13 @@
4040
"license": "MIT",
4141
"devDependencies": {
4242
"@farmfe/cli": "workspace:*",
43-
"@farmfe/core": "workspace:^1.3.17",
43+
"@farmfe/core": "workspace:^1.4.0",
4444
"@farmfe/js-plugin-dts": "workspace:^",
4545
"@types/less": "^3.0.3",
4646
"less": "^4.1.3"
4747
},
4848
"peerDependencies": {
49-
"@farmfe/core": "workspace:^1.3.17",
49+
"@farmfe/core": "workspace:^1.4.0",
5050
"less": "^3.5.0 || ^4.0.0"
5151
}
5252
}

js-plugins/postcss/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @farmfe/js-plugin-postcss
22

3+
## 1.9.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [7d86847c]
8+
- @farmfe/core@1.4.0
9+
310
## 1.8.1
411

512
### Patch Changes

js-plugins/postcss/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@farmfe/js-plugin-postcss",
3-
"version": "1.8.1",
3+
"version": "1.9.0",
44
"description": "support postcss for farm.",
55
"main": "./build/cjs/index.cjs",
66
"types": "./build/cjs/index.d.ts",
@@ -40,7 +40,7 @@
4040
"license": "MIT",
4141
"devDependencies": {
4242
"@farmfe/cli": "workspace:*",
43-
"@farmfe/core": "workspace:^1.3.25",
43+
"@farmfe/core": "workspace:^1.4.0",
4444
"@farmfe/js-plugin-dts": "workspace:*",
4545
"@types/postcss-import": "^14.0.3",
4646
"@types/postcss-url": "^10.0.4",
@@ -51,7 +51,7 @@
5151
"postcss-url": "^10.1.3"
5252
},
5353
"peerDependencies": {
54-
"@farmfe/core": "workspace:^1.3.25",
54+
"@farmfe/core": "workspace:^1.4.0",
5555
"postcss": ">=8.0.0"
5656
}
5757
}

js-plugins/sass/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @farmfe/js-plugin-sass
22

3+
## 2.10.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [7d86847c]
8+
- @farmfe/core@1.4.0
9+
310
## 2.9.0
411

512
### Patch Changes

js-plugins/sass/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@farmfe/js-plugin-sass",
3-
"version": "2.9.0",
3+
"version": "2.10.0",
44
"description": "support scss compile for farm.",
55
"main": "./build/cjs/index.cjs",
66
"types": "./build/cjs/index.d.ts",
@@ -46,13 +46,13 @@
4646
"license": "MIT",
4747
"devDependencies": {
4848
"@farmfe/cli": "workspace:*",
49-
"@farmfe/core": "workspace:^1.3.17",
49+
"@farmfe/core": "workspace:^1.4.0",
5050
"@farmfe/js-plugin-dts": "workspace:*",
5151
"sass": "^1.74.1",
5252
"sass-embedded": "^1.74.1"
5353
},
5454
"peerDependencies": {
55-
"@farmfe/core": "workspace:^1.3.17",
55+
"@farmfe/core": "workspace:^1.4.0",
5656
"sass": "^1.3.0",
5757
"sass-embedded": "*"
5858
}

js-plugins/solid/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @farmfe/js-plugin-solid
22

3+
## 2.9.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [7d86847c]
8+
- @farmfe/core@1.4.0
9+
310
## 2.8.0
411

512
### Patch Changes

js-plugins/solid/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@farmfe/js-plugin-solid",
3-
"version": "2.8.0",
3+
"version": "2.9.0",
44
"description": "SolidJS support for Farm",
55
"author": {
66
"name": "J4ck W4n9",
@@ -41,7 +41,7 @@
4141
"solid-js": "^1.7.8"
4242
},
4343
"peerDependencies": {
44-
"@farmfe/core": "workspace:^1.3.34"
44+
"@farmfe/core": "workspace:^1.4.0"
4545
},
4646
"files": [
4747
"build"

js-plugins/svgr/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @farmfe/js-plugin-svgr
22

3+
## 1.7.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [7d86847c]
8+
- @farmfe/core@1.4.0
9+
310
## 1.6.0
411

512
### Patch Changes

js-plugins/svgr/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@farmfe/js-plugin-svgr",
3-
"version": "1.6.0",
3+
"version": "1.7.0",
44
"description": "support svgr compile for farm.",
55
"main": "./build/cjs/index.cjs",
66
"types": "./build/cjs/index.d.ts",
@@ -40,14 +40,14 @@
4040
"license": "MIT",
4141
"devDependencies": {
4242
"@farmfe/cli": "workspace:*",
43-
"@farmfe/core": "workspace:^1.3.17",
43+
"@farmfe/core": "workspace:^1.4.0",
4444
"@farmfe/js-plugin-dts": "workspace:^"
4545
},
4646
"dependencies": {
4747
"@svgr/core": "^8.1.0",
4848
"@svgr/plugin-jsx": "^8.1.0"
4949
},
5050
"peerDependencies": {
51-
"@farmfe/core": "workspace:^1.3.17"
51+
"@farmfe/core": "workspace:^1.4.0"
5252
}
5353
}

js-plugins/visualizer/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @farmfe/js-plugin-record-viewer
22

3+
## 1.1.3
4+
5+
### Patch Changes
6+
7+
- 7d86847c: Move client dependencies to devDependencies to avoid unnecessary dependencies
8+
39
## 1.1.2
410

511
### Patch Changes

js-plugins/visualizer/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@farmfe/js-plugin-visualizer",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"main": "./build/cjs/index.cjs",
55
"types": "./build/cjs/index.d.ts",
66
"type": "module",

js-plugins/vue/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @farmfe/js-plugin-vue
22

3+
## 3.10.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [7d86847c]
8+
- @farmfe/core@1.4.0
9+
310
## 3.9.0
411

512
### Patch Changes

js-plugins/vue/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@farmfe/js-plugin-vue",
3-
"version": "3.9.0",
3+
"version": "3.10.0",
44
"description": "support vue sfc for farm.",
55
"main": "./build/index.cjs",
66
"module": "./dist/farm-vue-plugin.js",
@@ -52,7 +52,7 @@
5252
"source-map": "^0.7.4"
5353
},
5454
"peerDependencies": {
55-
"@farmfe/core": "workspace:^1.3.34",
55+
"@farmfe/core": "workspace:^1.4.0",
5656
"less": "*",
5757
"sass": "*",
5858
"stylus": "*"

packages/core/CHANGELOG.md

+60
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,65 @@
11
# @farmfe/core
22

3+
## 1.4.0
4+
5+
### Minor Changes
6+
7+
- 7d86847c: Support tree shake `import * as ns from './xxx'`. `./xxx` can be tree-shaken if following rules are met:
8+
9+
- `ns` is used as member prop, example: `ns.a`
10+
- `ns` is used as member literal computed, example: `ns['a']`
11+
12+
For example:
13+
14+
```ts
15+
// b.ts
16+
export const a = 1;
17+
export const b = 2;
18+
19+
// a.ts
20+
import * as ns from "./b";
21+
22+
console.log(ns.a);
23+
console.log(ns["a"]);
24+
```
25+
26+
After tree shaking, the result will be:
27+
28+
```ts
29+
// b.ts
30+
export const a = 1; // a is preserved and b is removed.
31+
32+
// a.ts
33+
import * as ns from "./b";
34+
console.log(ns.a);
35+
console.log(ns["a"]);
36+
```
37+
38+
But if `ns` is met rules above, then all the fields will be preserved, example:
39+
40+
```ts
41+
// b.ts
42+
export const a = 1;
43+
export const b = 2;
44+
45+
// a.ts
46+
import * as ns from "./b";
47+
48+
console.log(ns);
49+
```
50+
51+
After tree shaking, the result will be:
52+
53+
```ts
54+
// b.ts
55+
export const a = 1; // both a and b are preserved
56+
export const b = 2;
57+
// a.ts
58+
import * as ns from "./b";
59+
console.log(ns.a);
60+
console.log(ns["a"]);
61+
```
62+
363
## 1.3.34
464

565
### Patch Changes

packages/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@farmfe/core",
3-
"version": "1.3.34",
3+
"version": "1.4.0",
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"type": "module",

0 commit comments

Comments
 (0)