Skip to content

Commit 2183c59

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents a406bbb + 2963b01 commit 2183c59

File tree

88 files changed

+3464
-7457
lines changed

Some content is hidden

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

88 files changed

+3464
-7457
lines changed

.eslintignore

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

.eslintrc.js

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

.github/workflows/ci.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,19 @@ on:
55
branches: master
66
pull_request:
77

8+
env:
9+
NODE_VERSION: 20.17.0
10+
811
jobs:
912
lint:
1013
name: Lint
1114
runs-on: ubuntu-latest
1215

1316
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v1
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
1619
with:
17-
node-version: 16.14.0
20+
node-version: ${{ env.NODE_VERSION }}
1821
- run: npm ci
1922
- run: npm run lint
2023
env:
@@ -28,18 +31,18 @@ jobs:
2831
os: [ubuntu-latest, windows-latest]
2932

3033
steps:
31-
- uses: actions/checkout@v2
34+
- uses: actions/checkout@v4
3235
- name: Use Node.js 16.14.0
33-
uses: actions/setup-node@v1
36+
uses: actions/setup-node@v4
3437
with:
35-
node-version: 16.14.0
38+
node-version: ${{ env.NODE_VERSION }}
3639
- run: npm ci
3740
- run: npm run build
3841
- run: npx jest --maxWorkers 2 --coverage
3942
env:
4043
CI: true
4144
- if: matrix.os == 'ubuntu-latest'
42-
uses: codecov/codecov-action@v1
45+
uses: codecov/codecov-action@v4
4346

4447
benchmark:
4548
name: Benchmark
@@ -53,18 +56,18 @@ jobs:
5356
run: brew install glow
5457
# Checkout master & commit
5558
- name: Checkout master
56-
uses: actions/checkout@v2
59+
uses: actions/checkout@v4
5760
with:
5861
ref: master
5962
path: master
6063
- name: Checkout commit
61-
uses: actions/checkout@v2
64+
uses: actions/checkout@v4
6265
with:
6366
path: commit
6467
- name: Use Node.js 16.14.0
65-
uses: actions/setup-node@v1
68+
uses: actions/setup-node@v4
6669
with:
67-
node-version: 16.14.0
70+
node-version: ${{ env.NODE_VERSION }}
6871
# NPM
6972
# install and build master
7073
- name: npm ci master
@@ -124,7 +127,7 @@ jobs:
124127
working-directory: commit/benchmark/dist
125128
- name: Combine benchmark results
126129
id: script-combine-results
127-
uses: actions/github-script@v3
130+
uses: actions/github-script@v7
128131
with:
129132
benchmark-result-path-lua: commit/benchmark/data/benchmark_master_vs_commit_53.json
130133
benchmark-result-path-jit: commit/benchmark/data/benchmark_master_vs_commit_jit.json

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/dist
22
/coverage
33
/test/translation/transformation/characterEscapeSequence.ts
4+
/test/translation/transformation/exportStatement.ts
45
/benchmark/dist
56
/test/transpile/module-resolution/**/node_modules
67
/test/transpile/module-resolution/**/dist

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
11
# Changelog
22

3+
## 1.28.0
4+
5+
- Upgraded TypeScript to 5.7.2
6+
- Support `String(x)` transforming it to `tostring(x)`.
7+
- Fixed statements before class super call
8+
- Fixed some bugs with `LuaMultiReturn` used in iterables
9+
10+
## 1.27.0
11+
12+
- Upgraded TypeScript to 5.6.2
13+
- Added support for `Math.trunc` (see [Math.trunc()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc))
14+
- Fixed a runtime error when disposing a disposable class
15+
- Fixed the wrong `this` value being passed when using `?.` to call a `super` method
16+
- Fixed a bug causing exported `/** @compileMembersOnly */` enums to break
17+
- Fixed a bug in `Array.from` when calling it with a non-array iterable
18+
- Fixed an incorrect diagnostic being shown for `await using` code
19+
- Fixed a bug causing not all getters/setters to be transpiled
20+
21+
## 1.26.0
22+
23+
- Upgraded TypeScript to 5.5.2
24+
- Added support for the new proposed ECMAScript Set methods in ESNext: `intersection`, `union`, `difference`, `symmetricDifference`, `isSubsetOf`, `isSupersetOf`, `isDisjointFrom`. For more info see [the TypeScript release notes](https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/#support-for-new-ecmascript-set-methods).
25+
- Fixed a bug causing bundled code to be executed twice in some edge cases.
26+
- Fixed a bug causing errors when using lualib in an environment without coroutines.
27+
28+
## 1.25.0
29+
30+
- Upgraded TypeScript to 5.4.2
31+
- Added support for new TypeScript 5.4 features `Map.groupBy` and `Object.groupBy`
32+
- Fixed a bug causing files to not be emitted at the correct output path
33+
- Fixed a bug causing `@customname` to not work together with `@noSelf`
34+
- Fixed a bug causing extended tsconfigs to not be correctly read when using watch mode
35+
36+
## 1.24.0
37+
38+
- Optimized promises and async/await to better handle long chains of promises, like for example using await in a loop
39+
- Fixed a bug causing errors when accessing `super` properties
40+
41+
## 1.23.0
42+
43+
- Upgraded TypeScript to 5.3.3
44+
345
## 1.22.0
446

547
- Added support for `Number.isInteger(n)`

0 commit comments

Comments
 (0)