Skip to content

Commit

Permalink
fix: use async/await in built code
Browse files Browse the repository at this point in the history
BREAKING CHANGE: drop support for Node < 16
  • Loading branch information
jedwards1211 committed Apr 9, 2024
1 parent 739af25 commit 7710d35
Show file tree
Hide file tree
Showing 12 changed files with 212 additions and 95 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 2.1
jobs:
build:
docker:
- image: cimg/node:20.3.0
- image: cimg/node:20.10.0

steps:
- checkout
Expand Down
13 changes: 13 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "test:debug <file>",
"port": 9229,
"request": "attach",
"skipFiles": ["<node_internals>/**"],
"type": "node",
"preLaunchTask": "test:debug <file>"
}
]
}
59 changes: 59 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"options": {
"shell": {
"executable": "bash",
"args": ["-c", "-l"]
}
},
"command": "pnpm",
"isBackground": false,
"group": "test",
"presentation": {
"panel": "dedicated",
"clear": true
},
"label": "test <file>",
"args": ["tc", "test", "${file}"]
},
{
"type": "shell",
"options": {
"shell": {
"executable": "bash",
"args": ["-c", "-l"]
}
},
"command": "pnpm",
"isBackground": false,
"group": "test",
"presentation": {
"panel": "dedicated",
"clear": true
},
"label": "test:watch <file>",
"args": ["tc", "test", "--watch", "${file}"]
},
{
"type": "shell",
"options": {
"shell": {
"executable": "bash",
"args": ["-c", "-l"]
}
},
"command": "pnpm",
"isBackground": false,
"group": "test",
"presentation": {
"panel": "dedicated",
"clear": true
},
"label": "test:debug <file>",
"args": ["tc", "test", "-n", "inspect-brk", "${file}"]
}
]
}
20 changes: 13 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@
},
"homepage": "https://github.com/jcoreio/chai-webdriverio-async#readme",
"devDependencies": {
"@jcoreio/toolchain": "^3.2.0",
"@jcoreio/toolchain-circle": "^3.2.0",
"@jcoreio/toolchain-esnext": "^3.2.0",
"@jcoreio/toolchain-mocha": "^3.2.0",
"@jcoreio/toolchain-semantic-release": "^3.2.0",
"@jcoreio/toolchain-typescript": "^3.2.0",
"@jcoreio/eslint-plugin-implicit-dependencies": "^1.1.1",
"@jcoreio/toolchain": "^3.10.1",
"@jcoreio/toolchain-circle": "^3.10.1",
"@jcoreio/toolchain-esnext": "^3.10.1",
"@jcoreio/toolchain-mocha": "^3.10.1",
"@jcoreio/toolchain-semantic-release": "^3.10.1",
"@jcoreio/toolchain-typescript": "^3.10.1",
"@typescript-eslint/eslint-plugin": "^5.60.0",
"@typescript-eslint/parser": "^5.60.0",
"chai": "^4.3.7",
Expand All @@ -39,6 +40,8 @@
"cross-env": "^5.2.0",
"eslint": "^8.43.0",
"eslint-config-prettier": "^3.3.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"lodash": "^4.17.21",
"mocha": "^10.2.0",
"proxyquire": "^2.1.3",
"rimraf": "^2.6.0",
Expand All @@ -50,6 +53,9 @@
"dependencies": {
"@babel/runtime": "^7.18.6"
},
"peerDependencies": {
"webdriverio": "*"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
Expand All @@ -61,5 +67,5 @@
"engines": {
"node": ">=16"
},
"packageManager": "pnpm@8.3.1"
"packageManager": "pnpm@8.11.0"
}
Loading

0 comments on commit 7710d35

Please sign in to comment.