Skip to content

Commit 6f7039a

Browse files
committed
Merge branch 'main' into pr/19
2 parents fe07751 + 5471cb4 commit 6f7039a

File tree

14 files changed

+945
-14
lines changed

14 files changed

+945
-14
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions: {}
9+
jobs:
10+
release:
11+
# prevents this action from running on forks
12+
if: github.repository == 'sveltejs/esrap'
13+
permissions:
14+
contents: write # to create release (changesets/action)
15+
id-token: write # OpenID Connect token needed for provenance
16+
pull-requests: write # to create pull request (changesets/action)
17+
name: Release
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout Repo
21+
uses: actions/checkout@v4
22+
with:
23+
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
24+
fetch-depth: 0
25+
- uses: pnpm/action-setup@v4
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 18.x
30+
cache: pnpm
31+
32+
- name: Install
33+
run: pnpm install --frozen-lockfile
34+
35+
- name: Create Release Pull Request or Publish to npm
36+
id: changesets
37+
uses: changesets/action@v1
38+
with:
39+
publish: pnpm changeset:publish
40+
version: pnpm changeset:version
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
NPM_CONFIG_PROVENANCE: true
44+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

CHANGELOG.md

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,75 @@
11
# esrap changelog
22

3+
## 1.3.7
4+
5+
### Patch Changes
6+
7+
- 4c784f6: fix: move @changesets/cli to dev dependencies
8+
9+
## 1.3.6
10+
11+
### Patch Changes
12+
13+
- 333b32c: chore: verify changesets setup, again
14+
15+
## 1.3.5
16+
17+
### Patch Changes
18+
19+
- a6c0031: chore: verify changesets setup
20+
21+
## 1.3.4
22+
23+
- Transfer repo to `sveltejs`
24+
25+
## 1.3.3
26+
27+
- Support `export * as` ([#16](https://github.com/sveltejs/esrap/pull/16))
28+
- Support indexed access types ([#18](https://github.com/sveltejs/esrap/pull/18))
29+
330
## 1.3.2
431

5-
- Loosen types ([#15](https://github.com/Rich-Harris/esrap/pull/15))
32+
- Loosen types ([#15](https://github.com/sveltejs/esrap/pull/15))
633

734
## 1.3.1
835

936
- Fix types
1037

1138
## 1.3.0
1239

13-
- Support TypeScript nodes ([#13](https://github.com/Rich-Harris/esrap/pull/13))
40+
- Support TypeScript nodes ([#13](https://github.com/sveltejs/esrap/pull/13))
1441

1542
## 1.2.3
1643

17-
- Wrap object expression statements in parentheses ([#14](https://github.com/Rich-Harris/esrap/pull/14))
44+
- Wrap object expression statements in parentheses ([#14](https://github.com/sveltejs/esrap/pull/14))
1845

1946
## 1.2.2
2047

21-
- Correctly handle arrow functions where body includes an object expression ([#9](https://github.com/Rich-Harris/esrap/pull/9))
48+
- Correctly handle arrow functions where body includes an object expression ([#9](https://github.com/sveltejs/esrap/pull/9))
2249

2350
## 1.2.1
2451

25-
- Support default and namespace import in same declaration ([#8](https://github.com/Rich-Harris/esrap/pull/8))
52+
- Support default and namespace import in same declaration ([#8](https://github.com/sveltejs/esrap/pull/8))
2653

2754
## 1.2.0
2855

29-
- Rewrite for better performance ([#7](https://github.com/Rich-Harris/esrap/pull/7))
56+
- Rewrite for better performance ([#7](https://github.com/sveltejs/esrap/pull/7))
3057

3158
## 1.1.1
3259

3360
- Actually add the changes that were supposed to go in 1.1.0
3461

3562
## 1.1.0
3663

37-
- Tweak output ([#5](https://github.com/Rich-Harris/esrap/pull/5))
64+
- Tweak output ([#5](https://github.com/sveltejs/esrap/pull/5))
3865

3966
## 1.0.3
4067

41-
- Fix typo ([#4](https://github.com/Rich-Harris/esrap/pull/4))
68+
- Fix typo ([#4](https://github.com/sveltejs/esrap/pull/4))
4269

4370
## 1.0.2
4471

45-
- Collapse empty bodies ([#3](https://github.com/Rich-Harris/esrap/pull/3))
72+
- Collapse empty bodies ([#3](https://github.com/sveltejs/esrap/pull/3))
4673

4774
## 1.0.1
4875

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2023 [these people](https://github.com/Rich-Harris/esrap/graphs/contributors)
1+
Copyright (c) 2023-2025 [these people](https://github.com/sveltejs/esrap/graphs/contributors)
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "esrap",
3-
"version": "1.3.2",
3+
"version": "1.3.7",
44
"description": "Parse in reverse",
55
"repository": {
66
"type": "git",
7-
"url": "https://github.com/Rich-Harris/esrap"
7+
"url": "git+https://github.com/sveltejs/esrap.git"
88
},
99
"type": "module",
1010
"files": [
@@ -19,6 +19,7 @@
1919
},
2020
"types": "./types/index.d.ts",
2121
"devDependencies": {
22+
"@changesets/cli": "^2.27.11",
2223
"@typescript-eslint/types": "^8.2.0",
2324
"@vitest/ui": "^2.1.1",
2425
"acorn": "^8.11.3",
@@ -30,6 +31,8 @@
3031
"zimmerframe": "^1.0.0"
3132
},
3233
"scripts": {
34+
"changeset:version": "changeset version",
35+
"changeset:publish": "changeset publish",
3336
"check": "tsc",
3437
"prepublishOnly": "pnpm test && dts-buddy -m esrap:./src/public.d.ts",
3538
"sandbox": "node test/sandbox/index.js",
@@ -40,5 +43,8 @@
4043
"dependencies": {
4144
"@jridgewell/sourcemap-codec": "^1.4.15"
4245
},
43-
"packageManager": "[email protected]"
46+
"packageManager": "[email protected]",
47+
"publishConfig": {
48+
"access": "public"
49+
}
4450
}

0 commit comments

Comments
 (0)