Skip to content

Commit 8de4fca

Browse files
committed
Merge branch 'master' into pr/64
2 parents a306b98 + 4ce76d6 commit 8de4fca

File tree

9 files changed

+216
-90
lines changed

9 files changed

+216
-90
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
node-version: [16]
21+
node-version: [16, 18, 20]
2222
os: [ubuntu-latest]
2323
steps:
2424
- run: git config --global core.autocrlf false
2525
- uses: actions/checkout@v3
26-
- uses: pnpm/action-setup@v2.2.2
26+
- uses: pnpm/action-setup@v2
2727
- uses: actions/setup-node@v3
2828
with:
2929
node-version: ${{ matrix.node-version }}

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
.DS_Store
2-
node_modules
3-
*.d.ts
4-
dist
2+
/node_modules
3+
/types

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# devalue changelog
22

3+
## 4.3.2
4+
5+
- Better type declarations ([#66](https://github.com/Rich-Harris/devalue/pull/66))
6+
7+
## 4.3.1
8+
9+
- Faster ([#65](https://github.com/Rich-Harris/devalue/pull/65))
10+
311
## 4.3.0
412

513
- Support custom types ([#58](https://github.com/Rich-Harris/devalue/pull/58))

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "devalue",
33
"description": "Gets the job done when JSON.stringify can't",
4-
"version": "4.3.0",
4+
"version": "4.3.2",
55
"repository": "Rich-Harris/devalue",
66
"exports": {
77
".": {
@@ -17,16 +17,17 @@
1717
],
1818
"types": "./types/index.d.ts",
1919
"devDependencies": {
20+
"dts-buddy": "^0.0.4",
2021
"publint": "^0.1.7",
2122
"typescript": "^3.1.3",
2223
"uvu": "^0.5.6"
2324
},
2425
"scripts": {
25-
"build": "tsc",
26+
"build": "dts-buddy",
2627
"test": "uvu test",
2728
"prepublishOnly": "npm test && publint && npm run build"
2829
},
2930
"license": "MIT",
3031
"type": "module",
31-
"packageManager": "pnpm@7.9.5"
32-
}
32+
"packageManager": "pnpm@8.5.1"
33+
}

pnpm-lock.yaml

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

src/uneval.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
} from './utils.js';
99

1010
const chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$';
11-
const unsafe_chars = /[<>\b\f\n\r\t\0\u2028\u2029]/g;
11+
const unsafe_chars = /[<\b\f\n\r\t\0\u2028\u2029]/g;
1212
const reserved =
1313
/^(?:do|if|in|for|int|let|new|try|var|byte|case|char|else|enum|goto|long|this|void|with|await|break|catch|class|const|final|float|short|super|throw|while|yield|delete|double|export|import|native|return|switch|throws|typeof|boolean|default|extends|finally|package|private|abstract|continue|debugger|function|volatile|interface|protected|transient|implements|instanceof|synchronized)$/;
1414

0 commit comments

Comments
 (0)