Skip to content

Commit

Permalink
feat: upgrade to deno 1.22 (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored May 30, 2022
1 parent 20f8a42 commit 7dedc58
Show file tree
Hide file tree
Showing 22 changed files with 314 additions and 240 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- uses: denoland/setup-deno@v1
with:
deno-version: ~1.20
- run: deno lint --config deno.json
deno-version: ~1.22
- run: deno lint
if: matrix.os == 'ubuntu-latest'
- run: deno fmt --config deno.json --check
- run: deno fmt --check
if: matrix.os == 'ubuntu-latest'
- run: npm -v
- run: npm ci --ignore-scripts
Expand Down
9 changes: 7 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"deno.enable": false,
"deno.lint": true,
"deno.config": "./deno.json",
"deno.unstable": true,
"deno.enablePaths": [
"./scripts",
"./packages/shim-crypto/scripts",
"./packages/shim-deno/tools",
"./packages/shim-deno-test/scripts"
],
"editor.defaultFormatter": "denoland.vscode-deno",
"editor.formatOnSave": true
}
163 changes: 105 additions & 58 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"packages/shim-timers"
],
"scripts": {
"lint": "deno lint --config deno.json",
"fmt": "deno fmt --config deno.json"
"lint": "deno lint",
"fmt": "deno fmt"
}
}
4 changes: 2 additions & 2 deletions packages/sham-weakref/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"homepage": "https://github.com/denoland/node_deno_shims#readme",
"devDependencies": {
"typescript": "^4.5.2",
"ts-node": "^10.4.0"
"typescript": "^4.7.2",
"ts-node": "^10.8.0"
}
}
2 changes: 1 addition & 1 deletion packages/sham-weakref/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface WeakRefConstructor {

export const WeakRef: WeakRefConstructor = (globalThis as any).WeakRef ??
class WeakRef<T extends object> {
readonly [Symbol.toStringTag]: "WeakRef";
readonly [Symbol.toStringTag] = "WeakRef";

constructor(_target: T) {
}
Expand Down
6 changes: 3 additions & 3 deletions packages/shim-crypto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deno/shim-crypto",
"version": "0.2.0",
"version": "0.3.0",
"description": "Node shim for the web's `crypto` global.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://github.com/denoland/node_deno_shims#readme",
"devDependencies": {
"typescript": "^4.5.2",
"ts-node": "^10.4.0"
"typescript": "^4.7.2",
"ts-node": "^10.8.0"
}
}
Loading

0 comments on commit 7dedc58

Please sign in to comment.