You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Node.js support to 18-20 from 12-16, dependencies, documentation, some practices (#19)
* Update name of repo for repository, homepage, bugs
* Remove unused Grunt task 'ci'
* Update sinon to 16 from 1.7, to fix circular dependency warnings involving fakeServer
* Use github: syntax for package.repository
* Update copyright range end to 2023 from 2019
* Update year in examples to 2023 from 2013
* Remove $ from example code blocks of type shell
* Use const instead of var
* Upgrade native actions (checkout, setup-node); remove repetition present in comments, names
* Run on pull_request regardless of target branch
* Run on push to main as well as master, pending rename
* Fix Node.js version format (use N not N.x); also use array syntax
* Add Node.js 18, 20; drop 12
* Replace deprecated 'es3: false' with 'esversion: 6'
* Set minimum package.engines.node to 14
* Upgrade Grunt and plugins to latest
* Upgrade mockery to 2.1 from 1.4 (soft major)
* Update Mocha to 10.2 from 8.4
* Use const instead of var for some constants
* Retire recommendation for grunt-cli installed globally
* Make small changes to readme for clarity
* Separate tool usage code blocks to allow them to be copied individually
* Clarify inferred support policy
* Recommend npm >=8 and update lockfile using this version (also upgrades lockfileVersion to 2 from 1)
* Prepare version 4's details for README and MIGRATION; sunset <= 3
* Remove support symbols since their validity is affected by the passage of time
* Fix build badge and info link
* Rename job 'checkout_and_test' to 'test'
* Recommend npm version 8 or above, or equivalent, in migration guide for v4
* End support for post-LTS Node.js versions 14 and 16
* Reverse change to support policy section pending discussion
Pa11y's API changes between major versions. This is a guide to help you make the switch when this happens.
3
+
This package's API and/or supported set of environments changes between major versions. This is a guide to help you update your project to use a new major version.
4
4
5
-
## Migrating from 2.x to 3.x
5
+
## Migrating to 4 from 3
6
6
7
-
Pa11y Webservice Client 3.x only supports Node.js v12 and higher, you'll need to upgrade to be able to use it.
7
+
1. Upgrade to Node.js 18 or above.
8
8
9
-
## Migrating from 1.x to 2.x
9
+
## Migrating to 3 from 2
10
10
11
-
Pa11y Webservice Client 2.x only supports Node.js v8.0.0 and higher, you'll need to upgrade to be able to use it.
There are many ways to contribute to Pa11y Webservice Node.js Client, we cover these in the [contributing guide](CONTRIBUTING.md) for this repo.
133
+
There are many ways to contribute to Pa11y Webservice Node.js Client; we cover these in this repo's [contributing guide](CONTRIBUTING.md).
134
134
135
-
If you're ready to contribute some code, you'll need to clone the repo locally and run `npm install`. You'll also need [Grunt][grunt] to be installed globally in order to run tests, you can do this with `npm install -g grunt-cli`.
136
-
137
-
Now you'll be able to run the following commands:
135
+
If you'd like to contribute code, get started by cloning the repo and running `npm install`. Now you'll be able to run the following commands. Please use these build tools to avoid your contribution being delayed by a lint error or a failing test:
138
136
139
137
```sh
140
-
$ grunt # Run the lint and test tasks together
141
-
$ grunt lint # Run JSHint with the correct config
142
-
$ grunt test# Run unit tests
138
+
# Lint your contribution
139
+
grunt lint
143
140
```
144
141
145
-
Code with lint errors or failing tests will not be accepted, please use the build tools outlined above.
142
+
```sh
143
+
# Test your contribution
144
+
grunt test
145
+
```
146
146
147
-
For users with push-access, don't commit to the master branch. Code should be in `develop` until it's ready to be released.
147
+
```sh
148
+
# Lint and test with a single command
149
+
grunt
150
+
```
148
151
149
152
## Support and Migration
150
153
@@ -163,17 +166,17 @@ If you're opening issues related to these, please mention the version that the i
163
166
## License
164
167
165
168
Licensed under the [GNU General Public License 3.0](LICENSE.txt).<br/>
0 commit comments