Skip to content

Commit 4aef45c

Browse files
committed
Merge branch 'master' into aiscript-next
2 parents e13f03a + d6106b8 commit 4aef45c

39 files changed

Lines changed: 1380 additions & 383 deletions

.github/workflows/api.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414

1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v4.2.2
17+
uses: actions/checkout@v6.0.0
1818

1919
- name: Setup Node.js
20-
uses: actions/setup-node@v4.1.0
20+
uses: actions/setup-node@v6.0.0
2121
with:
2222
node-version: 20.x
2323

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212

1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v4.2.2
15+
uses: actions/checkout@v6.0.0
1616

1717
- name: Setup Node.js
18-
uses: actions/setup-node@v4.1.0
18+
uses: actions/setup-node@v6.0.0
1919
with:
2020
node-version: 20.x
2121

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414

1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v4.2.2
17+
uses: actions/checkout@v6.0.0
1818

1919
- name: Setup Node.js
20-
uses: actions/setup-node@v4.1.0
20+
uses: actions/setup-node@v6.0.0
2121
with:
2222
node-version: 20.x
2323

.github/workflows/publish-nightly.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
matrix: ${{ steps.getb.outputs.matrix }}
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v4.2.2
15+
uses: actions/checkout@v6.0.0
1616
with:
1717
fetch-depth: 0
1818

@@ -46,12 +46,12 @@ jobs:
4646

4747
steps:
4848
- name: Checkout ${{ matrix.branch }}
49-
uses: actions/checkout@v4.2.2
49+
uses: actions/checkout@v6.0.0
5050
with:
5151
ref: ${{ matrix.branch }}
5252

5353
- name: Setup Node.js
54-
uses: actions/setup-node@v4.1.0
54+
uses: actions/setup-node@v6.0.0
5555
with:
5656
node-version: 20.x
5757

@@ -79,7 +79,7 @@ jobs:
7979
run: npm run pre-release
8080

8181
- name: Publish
82-
uses: JS-DevTools/npm-publish@v3
82+
uses: JS-DevTools/npm-publish@v4
8383
if: ${{ env.NPM_SECRET != '' && env.LAST_COMMITS != 0 }}
8484
with:
8585
token: ${{ env.NPM_SECRET }}

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818

1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v4.2.2
21+
uses: actions/checkout@v6.0.0
2222

2323
- name: Setup Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v4.1.0
24+
uses: actions/setup-node@v6.0.0
2525
with:
2626
node-version: ${{ matrix.node-version }}
2727

@@ -37,4 +37,4 @@ jobs:
3737
CI: true
3838

3939
- name: Upload Coverage
40-
uses: codecov/codecov-action@v4
40+
uses: codecov/codecov-action@v5

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
[Read translated version (en)](./translations/en/CHANGELOG.md)
22

3+
# 1.2.1
4+
5+
- Fix: メタデータ構文や属性、AiSONにラベル付きの式を記述してもエラーが発生しない問題を修正
6+
- Fix: 名前空間内において属性の値が評価されない問題を修正
7+
- Fix: 型引数で定義された型に型引数を与えてもエラーが発生しない問題を修正
8+
- Fix: 関数の型引数の名前が重複した場合に適切なエラーが発生しない問題を修正
9+
- Fix: 関数の引数や返り値に型注釈が無く、型引数の名前が重複した場合にエラーが発生しない問題を修正
10+
- Fix: break文のもつ値の式について不正な変数やreturn文、break文、continue文、型注釈がある場合に文法エラーにならない問題を修正
11+
- Fix: 型注釈における型引数や関数型の返り値に不正な型注釈がある場合に文法エラーにならない問題を修正
12+
13+
# 1.2.0
14+
15+
- 関数`Obj:from_kvs`を追加
16+
- プロパティアクセスのドット記法に予約語を記述できるようになりました。
17+
- プロパティアクセスのドット記法に文字列リテラルを記述できるようになりました。
18+
- null値のアサーション関数(`isNull`, `assertNull`)を追加しました。
19+
- `AiSON.stringify` を実装しました。`JSON.stringify`と互換性のあるかたちで引数を取りますが、`JSON.stringify`のようにAiSONに直接変換できない値を含むオブジェクトを渡すことはできません。
20+
21+
# 1.1.2
22+
23+
- Fix: 関数の引数の初期値内に不正なreturn文がある場合に文法エラーにならない問題を修正
24+
325
# 1.1.1
426

527
- Fix: オブジェクトリテラルのプロパティ名に一部の予約語を記述できなかった問題を修正

docs/branches-and-releasing.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ dependabotのPRや古いプロジェクトのアーカイブなどがありま
2525
- bugfix用のブランチを作成。前回リリース時のコミットから分岐する。
2626
- master(マイナーリリース用ブランチ)ではないので注意。
2727
- bugfixブランチに修正用PRをマージ/コミットをプッシュ。
28+
- bugfixブランチで`npm i && npm run build && npm run test`を実行し、テストが問題なく通るか念のため最終確認。
2829
- bugfixブランチで`npm version patch && npm run pre-release`を実行し、結果をプッシュ。
2930
- bugfixブランチで`npm publish`
3031
- bugfixブランチで`git tag <バージョン名> && git push --tag`
@@ -33,6 +34,7 @@ dependabotのPRや古いプロジェクトのアーカイブなどがありま
3334
### マイナーリリース
3435
非破壊的変更。バージョンx.y.zのyを一つ上げ、zを0にする。
3536
- 事前にdependabotの更新があれば極力マージする。
37+
- masterブランチで`npm i && npm run build && npm run test`を実行し、テストが問題なく通るか念のため最終確認。
3638
- masterブランチで`npm run pre-release`を実行し、結果をプッシュ。
3739
- masterブランチで`npm publish`
3840
- masterブランチで`git tag <バージョン名> && git push --tag`
@@ -43,6 +45,7 @@ dependabotのPRや古いプロジェクトのアーカイブなどがありま
4345
- package.jsonなどのバージョンにコンフリクトが生じた場合、aiscript-nextのものを反映。
4446
- この合流は、次回リリースがメジャーリリースになると決まった段階でいつでもおこなってよい。
4547
- dependabotの更新があれば極力マージする。
48+
- masterブランチで`npm i && npm run build && npm run test`を実行し、テストが問題なく通るか念のため最終確認。
4649
- masterブランチで`npm run pre-release`を実行し、結果をプッシュ。
4750
- masterブランチで`npm publish`
4851
- masterブランチで`git tag <バージョン名> && git push --tag`

etc/aiscript.api.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ class AiScriptUserError extends AiScriptRuntimeError {
9696
export class AiSON {
9797
// (undocumented)
9898
static parse(input: string): JsValue;
99+
// (undocumented)
100+
static stringify(value: JsValue, _unused?: null, indent?: number | string): string;
99101
}
100102

101103
// @public (undocumented)
@@ -123,6 +125,9 @@ function assertBoolean(val: Value | null | undefined): asserts val is VBool;
123125
// @public (undocumented)
124126
function assertFunction(val: Value | null | undefined): asserts val is VFn;
125127

128+
// @public (undocumented)
129+
function assertNull(val: Value | null | undefined): asserts val is VNull;
130+
126131
// @public (undocumented)
127132
function assertNumber(val: Value | null | undefined): asserts val is VNum;
128133

@@ -466,6 +471,9 @@ function isExpression(x: Node_2): x is Expression;
466471
// @public (undocumented)
467472
function isFunction(val: Value): val is VFn;
468473

474+
// @public (undocumented)
475+
function isNull(val: Value): val is VNull;
476+
469477
// @public (undocumented)
470478
function isNumber(val: Value): val is VNum;
471479

@@ -757,18 +765,20 @@ type UnionTypeSource = NodeBase & {
757765
declare namespace utils {
758766
export {
759767
expectAny,
760-
assertBoolean,
761-
assertFunction,
762-
assertString,
763-
assertNumber,
764-
assertObject,
765-
assertArray,
766768
isBoolean,
767769
isFunction,
768770
isString,
769771
isNumber,
770772
isObject,
771773
isArray,
774+
isNull,
775+
assertBoolean,
776+
assertFunction,
777+
assertString,
778+
assertNumber,
779+
assertObject,
780+
assertArray,
781+
assertNull,
772782
eq,
773783
valToString,
774784
valToJs,

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"description": "AiScript implementation",
66
"author": "syuilo <syuilotan@yahoo.co.jp>",
77
"license": "MIT",
8-
"repository": "https://github.com/syuilo/aiscript.git",
8+
"repository": {
9+
"type": "git",
10+
"url": "git+https://github.com/syuilo/aiscript.git"
11+
},
912
"homepage": "https://aiscript-dev.github.io/",
1013
"bugs": "https://github.com/syuilo/aiscript/issues",
1114
"exports": {
@@ -55,3 +58,4 @@
5558
"uuid": "11.1.0"
5659
}
5760
}
61+

0 commit comments

Comments
 (0)