Skip to content

Commit

Permalink
chore: use Node.js 16.x for building package and tests
Browse files Browse the repository at this point in the history
Also upgrade @wdio@6 -> @wdio@7
  • Loading branch information
ctavan committed Dec 2, 2021
1 parent c9e076c commit 4a42846
Show file tree
Hide file tree
Showing 38 changed files with 19,227 additions and 6,147 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
!.babelrc.js
node_modules/
.local/
dist/
node_modules/
4 changes: 2 additions & 2 deletions .github/workflows/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
- uses: actions/checkout@v1
with:
fetch-depth: 10
- name: Use Node.js 12.x
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 16.x
- run: npm install
- name: Test Browser
run: npm run test:browser
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
- uses: actions/checkout@v1
with:
fetch-depth: 10
- name: Use Node.js 12.x to build
- name: Use Node.js 16.x to build
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 16.x
- run: npm install
- run: npm run build
- run: rm -rf node_modules
Expand All @@ -31,14 +31,14 @@ jobs:
env:
CI: true
- run: npm run lint
if: matrix.node-version == '12.x'
if: matrix.node-version == '16.x'
- run: npm run docs:diff
if: matrix.node-version == '12.x'
if: matrix.node-version == '16.x'
- run: npm run bundlewatch
if: matrix.node-version == '12.x'
if: matrix.node-version == '16.x'
env:
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
- run: npm run test:node
if: matrix.node-version == '12.x' || matrix.node-version == '14.x'
if: matrix.node-version >= '12.x'
- run: npm run test:pack
if: matrix.node-version == '14.x'
if: matrix.node-version >= '12.x'
1 change: 0 additions & 1 deletion .local/dist

This file was deleted.

1 change: 0 additions & 1 deletion .local/package.json

This file was deleted.

1 change: 1 addition & 0 deletions .local/uuid/dist
1 change: 1 addition & 0 deletions .local/uuid/package.json
1 change: 1 addition & 0 deletions .local/uuid/v1.js
1 change: 1 addition & 0 deletions .local/uuid/v3.js
1 change: 1 addition & 0 deletions .local/uuid/v4.js
1 change: 1 addition & 0 deletions .local/uuid/v5.js
1 change: 1 addition & 0 deletions .local/uuid/wrapper.mjs
1 change: 0 additions & 1 deletion .local/v1.js

This file was deleted.

1 change: 0 additions & 1 deletion .local/v3.js

This file was deleted.

1 change: 0 additions & 1 deletion .local/v4.js

This file was deleted.

1 change: 0 additions & 1 deletion .local/v5.js

This file was deleted.

1 change: 0 additions & 1 deletion .local/wrapper.mjs

This file was deleted.

1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.local/
dist/
node_modules/
README.md
3 changes: 3 additions & 0 deletions README_js.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ require('crypto').randomFillSync = function (a) {
for (let i = 0; i < 16; i++) a[i] = (seed = (seed * 0x41a7) & 0x7fffffff) & 0xff;
return a;
};

// Prevent usage of native randomUUID implementation to ensure deterministic UUIDs
require('crypto').randomUUID = undefined;
```

# uuid [![CI](https://github.com/uuidjs/uuid/workflows/CI/badge.svg)](https://github.com/uuidjs/uuid/actions?query=workflow%3ACI) [![Browser](https://github.com/uuidjs/uuid/workflows/Browser/badge.svg)](https://github.com/uuidjs/uuid/actions?query=workflow%3ABrowser)
Expand Down
117 changes: 109 additions & 8 deletions examples/benchmark/package-lock.json

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

2 changes: 1 addition & 1 deletion examples/benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"test": "node benchmark.js"
},
"dependencies": {
"uuid": "file:../../.local"
"uuid": "file:../../.local/uuid"
},
"devDependencies": {
"benchmark": "^2.1.4"
Expand Down
80 changes: 78 additions & 2 deletions examples/browser-esmodules/package-lock.json

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

2 changes: 1 addition & 1 deletion examples/browser-esmodules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"start": "npm run build && npx http-server . -o"
},
"dependencies": {
"uuid": "file:../../.local"
"uuid": "file:../../.local/uuid"
}
}
Loading

0 comments on commit 4a42846

Please sign in to comment.