mirror of
https://github.com/holidayapi/holidayapi-node.git
synced 2025-06-21 04:26:33 +00:00
test: add Node.js v14.x to test suite
* test: Added Node.js v14.x to the test suite. * perf: Updated dependencies. * docs: Drop blurb about migration from v2 as it will be covered in release notes. * chore: Bumped minor version since compatibility has increased.
This commit is contained in:
parent
2e44b14a37
commit
2edef851ca
4 changed files with 991 additions and 2314 deletions
|
@ -5,6 +5,7 @@ node_js:
|
|||
- 10
|
||||
- 12
|
||||
- 13
|
||||
- 14
|
||||
|
||||
script:
|
||||
- npm run lint
|
||||
|
|
17
README.md
17
README.md
|
@ -9,28 +9,13 @@ Official Node.js library for [Holiday API](https://holidayapi.com) providing
|
|||
quick and easy access to holiday information from applications written in
|
||||
server-side JavaScript.
|
||||
|
||||
## Migrating from 2.x
|
||||
|
||||
In an attempt to stay current with both our development and production
|
||||
dependencies, the decision was made to drop testing and advertised compatibility
|
||||
with Node.js versions that are outside of their maintenance window.
|
||||
|
||||
For the 3.x release, testing for Node.js 13.x was added while testing for Node.js
|
||||
7.x, 9.x and 11.x was dropped. Even though these older versions may still
|
||||
continue to work, they become harder to test against as our dependencies improve
|
||||
and drop support for those versions.
|
||||
|
||||
In the future, when compatibility changes, we will increment the major version
|
||||
number of the release as well as document the additions and deprecations in the
|
||||
release notes.
|
||||
|
||||
## Migrating from 1.x
|
||||
|
||||
Please note, version 2.x of this library is a full rewrite of the 1.x series in
|
||||
TypeScript. The interfacing to the library has been simplified and existing
|
||||
applications upgrading to 2.x will need to be updated.
|
||||
|
||||
| Version 1.x Syntax (Old) | Version 2.x Syntax (New) |
|
||||
| Version 1.x Syntax (Old) | Version 2.x+ Syntax (New) |
|
||||
|---------------------------------------------------|---------------------------------------------------|
|
||||
| `const HolidayAPI = require('node-holidayapi');` | `import { HolidayAPI } from 'holidayapi';` |
|
||||
| `const holidayApi = new HolidayAPI(key).v1;` | `const holidayApi = new HolidayAPI({ key });` |
|
||||
|
|
3267
package-lock.json
generated
3267
package-lock.json
generated
File diff suppressed because it is too large
Load diff
20
package.json
20
package.json
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "holidayapi",
|
||||
"version": "3.2.1",
|
||||
"version": "3.3.0",
|
||||
"description": "Official Node.js library for Holiday API",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
@ -24,20 +24,20 @@
|
|||
"node": ">= 8.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^25.1.4",
|
||||
"@types/jest": "^25.2.1",
|
||||
"@types/nock": "^11.1.0",
|
||||
"@types/node": "^13.9.2",
|
||||
"@types/node-fetch": "^2.5.4",
|
||||
"@typescript-eslint/eslint-plugin": "^2.24.0",
|
||||
"@typescript-eslint/parser": "^2.24.0",
|
||||
"coveralls": "^3.0.11",
|
||||
"@types/node": "^13.13.4",
|
||||
"@types/node-fetch": "^2.5.7",
|
||||
"@typescript-eslint/eslint-plugin": "^2.30.0",
|
||||
"@typescript-eslint/parser": "^2.30.0",
|
||||
"coveralls": "^3.1.0",
|
||||
"eslint": "^6.8.0",
|
||||
"eslint-config-airbnb-base": "^14.1.0",
|
||||
"eslint-plugin-import": "^2.20.1",
|
||||
"eslint-plugin-import": "^2.20.2",
|
||||
"eslint-plugin-jest": "^23.8.2",
|
||||
"jest": "^25.1.0",
|
||||
"jest": "^25.4.0",
|
||||
"nock": "^12.0.3",
|
||||
"ts-jest": "^25.2.0",
|
||||
"ts-jest": "^25.4.0",
|
||||
"typescript": "^3.7.5"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue