Skip to content

Commit

Permalink
Merge branch 'master' into pr/64
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Apr 19, 2024
2 parents a306b98 + 4ce76d6 commit 8de4fca
Show file tree
Hide file tree
Showing 9 changed files with 216 additions and 90 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [16]
node-version: [16, 18, 20]
os: [ubuntu-latest]
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.2
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
Expand Down
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.DS_Store
node_modules
*.d.ts
dist
/node_modules
/types
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# devalue changelog

## 4.3.2

- Better type declarations ([#66](https://github.com/Rich-Harris/devalue/pull/66))

## 4.3.1

- Faster ([#65](https://github.com/Rich-Harris/devalue/pull/65))

## 4.3.0

- Support custom types ([#58](https://github.com/Rich-Harris/devalue/pull/58))
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "devalue",
"description": "Gets the job done when JSON.stringify can't",
"version": "4.3.0",
"version": "4.3.2",
"repository": "Rich-Harris/devalue",
"exports": {
".": {
Expand All @@ -17,16 +17,17 @@
],
"types": "./types/index.d.ts",
"devDependencies": {
"dts-buddy": "^0.0.4",
"publint": "^0.1.7",
"typescript": "^3.1.3",
"uvu": "^0.5.6"
},
"scripts": {
"build": "tsc",
"build": "dts-buddy",
"test": "uvu test",
"prepublishOnly": "npm test && publint && npm run build"
},
"license": "MIT",
"type": "module",
"packageManager": "pnpm@7.9.5"
}
"packageManager": "pnpm@8.5.1"
}
154 changes: 123 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/uneval.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from './utils.js';

const chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$';
const unsafe_chars = /[<>\b\f\n\r\t\0\u2028\u2029]/g;
const unsafe_chars = /[<\b\f\n\r\t\0\u2028\u2029]/g;
const reserved =
/^(?: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)$/;

Expand Down
Loading

0 comments on commit 8de4fca

Please sign in to comment.