Skip to content

Commit bca62a1

Browse files
authored
feat!: bump @babel/core and typescript (#167)
1 parent 72878e4 commit bca62a1

39 files changed

+4790
-4743
lines changed

.changeset/bright-crabs-play.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"babel-preset-proposal-typescript": major
3+
---
4+
5+
feat!: bump `@babel/core@^7.23.0` and `typescript@^5.3.0`

.codesandbox/ci.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"node": "16",
2+
"node": "18",
33
"sandboxes": []
44
}

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ coverage
22
lib
33
node_modules
44
CHANGELOG.md
5+
/test/import-defer.cts
56
/test/v8intrinsic.cjs
67
!/.github
7-
!/.*.js
8+
!/.*.js

.eslintrc.cjs

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,10 @@ const {
1212
} = require('@1stg/eslint-config/overrides')
1313

1414
module.exports = {
15+
root: true,
1516
extends: ['@1stg/eslint-config/base'],
1617
overrides: [
1718
ts[0],
18-
{
19-
...js,
20-
files: 'test/*.{js,ts}',
21-
rules: js.rules,
22-
},
2319
jest,
2420
json,
2521
jsonc,
@@ -28,5 +24,24 @@ module.exports = {
2824
test,
2925
configs,
3026
yml,
27+
{
28+
...js,
29+
files: 'test/*.{cjs,cts,js,ts}',
30+
rules: {
31+
...js.rules,
32+
'no-magic-numbers': 'off',
33+
'jest/valid-title': 'off',
34+
},
35+
},
36+
{
37+
files: [
38+
'test/duplicate-named-capturing-groups-regex.ts',
39+
'test/regexp-modifiers.ts',
40+
],
41+
rules: {
42+
'regexp/no-invalid-regexp': 'off',
43+
'unicorn/better-regex': 'off',
44+
},
45+
},
3146
],
3247
}

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ jobs:
1010
strategy:
1111
matrix:
1212
node:
13-
- 14
1413
- 16
1514
- 18
15+
- 20
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout Repo
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020

2121
- name: Setup Node.js ${{ matrix.node }}
22-
uses: actions/setup-node@v3
22+
uses: actions/setup-node@v4
2323
with:
2424
node-version: ${{ matrix.node }}
2525
cache: yarn
@@ -28,7 +28,7 @@ jobs:
2828
run: yarn --frozen-lockfile
2929

3030
- name: Build, Lint and test
31-
run: yarn run-s build lint test
31+
run: yarn run-s test lint
3232
env:
3333
EFF_NO_LINK_RULES: true
3434
PARSER_NO_WATCH: true

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout Repo
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
with:
1616
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1717
fetch-depth: 0
1818

19-
- name: Setup Node.js 16
20-
uses: actions/setup-node@v3
19+
- name: Setup Node.js LTS
20+
uses: actions/setup-node@v4
2121
with:
22-
node-version: 16
22+
node-version: lts/*
2323
cache: yarn
2424

2525
- name: Install Dependencies

CHANGELOG.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,91 +14,91 @@
1414

1515
### Minor Changes
1616

17-
- [`c29d8f7`](https://github.com/rx-ts/babel-preset-proposal-typescript/commit/c29d8f72e10fbb10e4bfabf37ce54365e31d0a40) Thanks [@JounQin](https://github.com/JounQin)! - feat: disable private-methods for typescript 4.3+
17+
- [`c29d8f7`](https://github.com/un-ts/babel-preset-proposal-typescript/commit/c29d8f72e10fbb10e4bfabf37ce54365e31d0a40) Thanks [@JounQin](https://github.com/JounQin)! - feat: disable private-methods for typescript 4.3+
1818

1919
## 2.1.0
2020

2121
### Minor Changes
2222

23-
- [#115](https://github.com/rx-ts/babel-preset-proposal-typescript/pull/115) Thanks [@JounQin](https://github.com/JounQin)!
23+
- [#115](https://github.com/un-ts/babel-preset-proposal-typescript/pull/115) Thanks [@JounQin](https://github.com/JounQin)!
2424

25-
- [`50d6199`](https://github.com/rx-ts/babel-preset-proposal-typescript/commit/50d6199bab3f732f49213cbb0087c6397f82074e) feat: upgrade babel core and plugins
26-
- [`db510c9`](https://github.com/rx-ts/babel-preset-proposal-typescript/commit/db510c9504506ce2ab73989a03084605e0d3ef7c) feat: enable async-do-expressions and record-and-tuple proposals
27-
- [`1dd2ff6`](https://github.com/rx-ts/babel-preset-proposal-typescript/commit/1dd2ff608bd86684b852dc6cd1d08e47bd4f3543) feat!: change `classLoose` default valule to `false` and presets order
25+
- [`50d6199`](https://github.com/un-ts/babel-preset-proposal-typescript/commit/50d6199bab3f732f49213cbb0087c6397f82074e) feat: upgrade babel core and plugins
26+
- [`db510c9`](https://github.com/un-ts/babel-preset-proposal-typescript/commit/db510c9504506ce2ab73989a03084605e0d3ef7c) feat: enable async-do-expressions and record-and-tuple proposals
27+
- [`1dd2ff6`](https://github.com/un-ts/babel-preset-proposal-typescript/commit/1dd2ff608bd86684b852dc6cd1d08e47bd4f3543) feat!: change `classLoose` default valule to `false` and presets order
2828

2929
## 2.0.3
3030

3131
### Patch Changes
3232

33-
- [#118](https://github.com/rx-ts/babel-preset-proposal-typescript/pull/118) [`9330176`](https://github.com/rx-ts/babel-preset-proposal-typescript/commit/93301762311301ed0d86a5153d48a008aa3d5a45) Thanks [@JounQin](https://github.com/JounQin)! - refactor: remove unused optional-chaining plugin
33+
- [#118](https://github.com/un-ts/babel-preset-proposal-typescript/pull/118) [`9330176`](https://github.com/un-ts/babel-preset-proposal-typescript/commit/93301762311301ed0d86a5153d48a008aa3d5a45) Thanks [@JounQin](https://github.com/JounQin)! - refactor: remove unused optional-chaining plugin
3434

35-
## [2.0.0](https://github.com/rx-ts/babel-preset-proposal-typescript/compare/v1.5.0...v2.0.0) (2021-01-26)
35+
## [2.0.0](https://github.com/un-ts/babel-preset-proposal-typescript/compare/v1.5.0...v2.0.0) (2021-01-26)
3636

3737
### ⚠ BREAKING CHANGES
3838

3939
- bump babel and typescript, add two proposals
4040

4141
### Features
4242

43-
- bump babel and typescript, add two proposals ([3f18e81](https://github.com/rx-ts/babel-preset-proposal-typescript/commit/3f18e811bc81941b9d8f5285636d44c123fb0afa))
43+
- bump babel and typescript, add two proposals ([3f18e81](https://github.com/un-ts/babel-preset-proposal-typescript/commit/3f18e811bc81941b9d8f5285636d44c123fb0afa))
4444

45-
## [1.5.0](https://github.com/rx-ts/babel-preset-proposal-typescript/compare/v1.4.6...v1.5.0) (2019-11-10)
45+
## [1.5.0](https://github.com/un-ts/babel-preset-proposal-typescript/compare/v1.4.6...v1.5.0) (2019-11-10)
4646

4747
### Features
4848

49-
- drop nullish-coalescing-operator and optional-chaining in favor of typescript 3.7.0 ([0fe0093](https://github.com/rx-ts/babel-preset-proposal-typescript/commit/0fe0093e22c60c8a04846e643c8998ff5c28fc29))
49+
- drop nullish-coalescing-operator and optional-chaining in favor of typescript 3.7.0 ([0fe0093](https://github.com/un-ts/babel-preset-proposal-typescript/commit/0fe0093e22c60c8a04846e643c8998ff5c28fc29))
5050

51-
### [1.4.6](https://github.com/rx-ts/babel-preset-proposal-typescript/compare/v1.4.5...v1.4.6) (2019-11-10)
51+
### [1.4.6](https://github.com/un-ts/babel-preset-proposal-typescript/compare/v1.4.5...v1.4.6) (2019-11-10)
5252

5353
### Features
5454

55-
- better TypeScript support ([66f65c5](https://github.com/rx-ts/babel-preset-proposal-typescript/commit/66f65c51bec7d4c67eb1d3f65438a831b2dfe67d))
55+
- better TypeScript support ([66f65c5](https://github.com/un-ts/babel-preset-proposal-typescript/commit/66f65c51bec7d4c67eb1d3f65438a831b2dfe67d))
5656

5757
### Bug Fixes
5858

59-
- lock rollup-plugin-url@^2.2.4 for node 8 ([d0b7bae](https://github.com/rx-ts/babel-preset-proposal-typescript/commit/d0b7baead76b14384326ad72acf1ee1e51409940))
59+
- lock rollup-plugin-url@^2.2.4 for node 8 ([d0b7bae](https://github.com/un-ts/babel-preset-proposal-typescript/commit/d0b7baead76b14384326ad72acf1ee1e51409940))
6060

61-
### [1.4.5](https://github.com/rx-ts/babel-preset-proposal-typescript/compare/v1.4.4...v1.4.5) (2019-10-09)
61+
### [1.4.5](https://github.com/un-ts/babel-preset-proposal-typescript/compare/v1.4.4...v1.4.5) (2019-10-09)
6262

63-
### [1.4.4](https://github.com/rx-ts/babel-preset-proposal-typescript/compare/v1.4.3...v1.4.4) (2019-10-09)
63+
### [1.4.4](https://github.com/un-ts/babel-preset-proposal-typescript/compare/v1.4.3...v1.4.4) (2019-10-09)
6464

6565
### Bug Fixes
6666

67-
- check typeof decoratorsBeforeExport ([336dc46](https://github.com/rx-ts/babel-preset-proposal-typescript/commit/336dc4613f188b7a3250ab33acc3bbbddf82f996))
67+
- check typeof decoratorsBeforeExport ([336dc46](https://github.com/un-ts/babel-preset-proposal-typescript/commit/336dc4613f188b7a3250ab33acc3bbbddf82f996))
6868

69-
### [1.4.3](https://github.com/rx-ts/babel-preset-proposal-typescript/compare/v1.4.2...v1.4.3) (2019-10-09)
69+
### [1.4.3](https://github.com/un-ts/babel-preset-proposal-typescript/compare/v1.4.2...v1.4.3) (2019-10-09)
7070

7171
### Bug Fixes
7272

73-
- add decoratorsBeforeExport options for decorators ([1b84269](https://github.com/rx-ts/babel-preset-proposal-typescript/commit/1b84269d54bbf72b10322d2c07155ea8b128a546))
73+
- add decoratorsBeforeExport options for decorators ([1b84269](https://github.com/un-ts/babel-preset-proposal-typescript/commit/1b84269d54bbf72b10322d2c07155ea8b128a546))
7474

75-
### [1.4.2](https://github.com/rx-ts/babel-preset-proposal-typescript/compare/v1.4.1...v1.4.2) (2019-10-09)
75+
### [1.4.2](https://github.com/un-ts/babel-preset-proposal-typescript/compare/v1.4.1...v1.4.2) (2019-10-09)
7676

7777
### Bug Fixes
7878

79-
- compatible with decorators + class properties ([11f7ec4](https://github.com/rx-ts/babel-preset-proposal-typescript/commit/11f7ec4cf72e7ba63705cc0d3b297b04ff1a28ec))
79+
- compatible with decorators + class properties ([11f7ec4](https://github.com/un-ts/babel-preset-proposal-typescript/commit/11f7ec4cf72e7ba63705cc0d3b297b04ff1a28ec))
8080

81-
### [1.4.1](https://github.com/rx-ts/babel-preset-proposal-typescript/compare/v1.4.0...v1.4.1) (2019-09-09)
81+
### [1.4.1](https://github.com/un-ts/babel-preset-proposal-typescript/compare/v1.4.0...v1.4.1) (2019-09-09)
8282

8383
### Bug Fixes
8484

85-
- **test:** code coverage issue, remove unnecessary tempy dep ([71b6765](https://github.com/rx-ts/babel-preset-proposal-typescript/commit/71b6765))
85+
- **test:** code coverage issue, remove unnecessary tempy dep ([71b6765](https://github.com/un-ts/babel-preset-proposal-typescript/commit/71b6765))
8686

87-
## [1.4.0](https://github.com/rx-ts/babel-preset-proposal-typescript/compare/v1.3.0...v1.4.0) (2019-09-07)
87+
## [1.4.0](https://github.com/un-ts/babel-preset-proposal-typescript/compare/v1.3.0...v1.4.0) (2019-09-07)
8888

8989
### Bug Fixes
9090

91-
- **deps:** bump babel which supports private static accessors ([eb1880d](https://github.com/rx-ts/babel-preset-proposal-typescript/commit/eb1880d))
91+
- **deps:** bump babel which supports private static accessors ([eb1880d](https://github.com/un-ts/babel-preset-proposal-typescript/commit/eb1880d))
9292

9393
### Features
9494

95-
- enable v8intrinsic plugin ([7f83401](https://github.com/rx-ts/babel-preset-proposal-typescript/commit/7f83401))
95+
- enable v8intrinsic plugin ([7f83401](https://github.com/un-ts/babel-preset-proposal-typescript/commit/7f83401))
9696

97-
## [1.3.0](https://github.com/rx-ts/babel-preset-proposal-typescript/compare/v1.2.6...v1.3.0) (2019-09-03)
97+
## [1.3.0](https://github.com/un-ts/babel-preset-proposal-typescript/compare/v1.2.6...v1.3.0) (2019-09-03)
9898

9999
### Features
100100

101-
- add cjs/esm/es2015 bundle via @1stg/rollup-config ([93e4786](https://github.com/rx-ts/babel-preset-proposal-typescript/commit/93e4786))
101+
- add cjs/esm/es2015 bundle via @1stg/rollup-config ([93e4786](https://github.com/un-ts/babel-preset-proposal-typescript/commit/93e4786))
102102

103103
### [1.2.6](https://github.com/JounQin/babel-preset-proposal-typescript/compare/v1.2.5...v1.2.6) (2019-08-20)
104104

0 commit comments

Comments
 (0)