holidayapi
Advanced tools
Comparing version 2.1.0 to 3.0.0
{ | ||
"name": "holidayapi", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"description": "Official Node.js library for Holiday API", | ||
@@ -24,20 +24,20 @@ "main": "dist/index.js", | ||
"engines": { | ||
"node": ">= 7.0.0" | ||
"node": ">= 8.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^24.0.18", | ||
"@types/nock": "^10.0.3", | ||
"@types/node": "^12.7.11", | ||
"@types/node-fetch": "^2.5.2", | ||
"@typescript-eslint/eslint-plugin": "^2.3.2", | ||
"@typescript-eslint/parser": "^2.3.2", | ||
"coveralls": "^3.0.6", | ||
"eslint": "^6.5.1", | ||
"@types/jest": "^24.0.22", | ||
"@types/nock": "^11.1.0", | ||
"@types/node": "^12.12.7", | ||
"@types/node-fetch": "^2.5.3", | ||
"@typescript-eslint/eslint-plugin": "^2.7.0", | ||
"@typescript-eslint/parser": "^2.7.0", | ||
"coveralls": "^3.0.7", | ||
"eslint": "^6.6.0", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-jest": "^22.17.0", | ||
"eslint-plugin-jest": "^23.0.3", | ||
"jest": "^24.9.0", | ||
"nock": "^10.0.6", | ||
"nock": "^11.7.0", | ||
"ts-jest": "^24.1.0", | ||
"typescript": "^3.6.3" | ||
"typescript": "^3.7.2" | ||
}, | ||
@@ -44,0 +44,0 @@ "dependencies": { |
@@ -12,2 +12,17 @@ # Holiday API Node.js Library | ||
## 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 | ||
@@ -57,3 +72,3 @@ | ||
// Fetch supported languages | ||
holidayApi.languages(); | ||
holidayApi.languages() | ||
.then((languages) => { console.log(languages); }) | ||
@@ -63,3 +78,3 @@ .catch((err) => { console.error(err); }); | ||
// Fetch holidays with minimum parameters | ||
holidayApi.holidays({ country: 'US', year: 2019 }); | ||
holidayApi.holidays({ country: 'US', year: 2019 }) | ||
.then((holidays) => { console.log(holidays); }) | ||
@@ -66,0 +81,0 @@ .catch((err) => { console.error(err); }); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28959
248