passkit-generator
Advanced tools
Comparing version 2.0.5 to 2.0.6
230
CHANGELOG.md
@@ -6,31 +6,42 @@ # Changelog | ||
## 2.0.6 - 09/02/21 | ||
Improved building phase; | ||
Improved tests; | ||
Updated dependencies (like node-forge and node-fetch, which had critical vulnerability); | ||
Added prettier for formatting; | ||
Generic improvements to code; | ||
Removed moment.js for an internal generation of the date (without timezone support); | ||
## 2.0.5 - 06/09/20 | ||
Replaced deprecated dependencies @hapi/joi with Sideway's joi; | ||
Generic dependencies update; | ||
Generic code improvements (vscode-autofixes included); | ||
Bumped minimum Node.JS supported version to 10 (moved from `util.promisify` approach to `fs.promises`); | ||
Replaced deprecated dependencies @hapi/joi with Sideway's joi; | ||
Generic dependencies update; | ||
Generic code improvements (vscode-autofixes included); | ||
Bumped minimum Node.JS supported version to 10 (moved from `util.promisify` approach to `fs.promises`); | ||
## 2.0.4 - 14/12/19 | ||
Typescript strict configuration fixes; | ||
Improved specifications; | ||
Typescript strict configuration fixes; | ||
Improved specifications; | ||
## 2.0.3 - 06/12/19 | ||
Dependencies Updates; | ||
More improvements; | ||
Dependencies Updates; | ||
More improvements; | ||
## 2.0.2 | ||
Unlocked some other prohibited (until now) fields that were not editable due to design choice ( organizationName, passTypeIdentifier, teamIdentifier, appLaunchURL, associatedStoreIdentifiers); | ||
Small improvements; | ||
Unlocked some other prohibited (until now) fields that were not editable due to design choice ( organizationName, passTypeIdentifier, teamIdentifier, appLaunchURL, associatedStoreIdentifiers); | ||
Small improvements; | ||
___ | ||
--- | ||
## 2.0.1 | ||
Typescript version update; | ||
Update to webServiceURL schema regex and allowed all characters for authenticationToken; | ||
Typescript version update; | ||
Update to webServiceURL schema regex and allowed all characters for authenticationToken; | ||
___ | ||
--- | ||
## 2.0.0 | ||
@@ -41,3 +52,4 @@ | ||
___ | ||
--- | ||
## 1.6.8 | ||
@@ -49,3 +61,4 @@ | ||
___ | ||
--- | ||
## 1.6.6 | ||
@@ -55,5 +68,6 @@ | ||
Fixed problem with fieldsArray: fields were being added even if the keys check was failing | ||
Fixed problem with fieldsArray: fields were being added even if the keys check was failing | ||
___ | ||
--- | ||
## 1.6.5 | ||
@@ -63,7 +77,7 @@ | ||
Added support for logoText in supportedOptions (issues #21, #28) | ||
Added support for logoText in supportedOptions (issues #21, #28) | ||
[ [#6451a3c37](/commit/6451a3c37866cbdd88b275a4bc3fdff46c3bd3c7) ] | ||
Fixed nfc methods which was accepting and registering an array instead of an object | ||
Fixed nfc methods which was accepting and registering an array instead of an object | ||
@@ -76,4 +90,6 @@ [ [#4ce889d65](/commit/4ce889d6558678f01a993dcbd3e60b568e787638) ] | ||
Fixing passes parallel generation (#31) | ||
___ | ||
Fixing passes parallel generation (#31) | ||
--- | ||
## 1.6.4 | ||
@@ -85,3 +101,4 @@ | ||
___ | ||
--- | ||
## 1.6.1 --> 1.6.3 | ||
@@ -91,34 +108,34 @@ | ||
Fixes to problems in 1.6.1 | ||
Fixes to problems in 1.6.1 | ||
[ [#baf096c38](/commit/baf096c38067aae0ec459487db865851531f97b2) ] | ||
Moved some utility functions to a separate file | ||
Moved some utility functions to a separate file | ||
[ [#37a9a051c](/commit/37a9a051c6c54216c7937520e7a144c83caa0bdb) ] | ||
Removed rgbValues as a variable for a direct approact | ||
Removed rgbValues as a variable for a direct approact | ||
[ [#3de654759](/commit/3de6547591fc69464b235e55381343a60adaba09) ] | ||
Renamed _validateType in _hasValidType | ||
Renamed _validateType in _hasValidType | ||
[ [#17e64a08a](/commit/17e64a08aec63026b738af5d779185aad2433bb7) ] | ||
Fixed barcode legacy bug | ||
Fixed barcode legacy bug | ||
[ [#3338ff7b8](/commit/3338ff7b8fe57d9496f2e50306a5c44ea2a78b3a) ] | ||
Added NO_PASS_TYPE as message | ||
Added NO_PASS_TYPE as message | ||
[ [#bd8643b20](/commit/bd8643b2089fd637c86ab47162cfceff45f18a48) ] | ||
Moved passExtractor function to class scope instead of generate()'s | ||
Moved passExtractor function to class scope instead of generate()'s | ||
[ [#18893ac74](/commit/18893ac7421518d2cf1d404060ccda7ceea145c5) ] | ||
Moved to async/await approach for generate() | ||
Moved to async/await approach for generate() | ||
--- | ||
___ | ||
## 1.6.0 | ||
@@ -128,3 +145,3 @@ | ||
Improved unique fields management; | ||
Improved unique fields management; | ||
Changed debug message for discarded fields; | ||
@@ -135,13 +152,14 @@ Renamed uniqueKeys to fieldsKeys | ||
Added BRC_BW_FORMAT_UNSUPPORTED to not let PKBarcodeFormatCode128 to be used as backward barcode format | ||
Added BRC_BW_FORMAT_UNSUPPORTED to not let PKBarcodeFormatCode128 to be used as backward barcode format | ||
[ [#43e687b2f](/commit/43e687b2f42b687222d61abdcc78b8b88011d6c1) ] | ||
Added support for row field in auxiliaryFields | ||
Added support for row field in auxiliaryFields | ||
[ [#40f72ac43](/commit/40f72ac434e4eaf2c9e2dbc8bf7d135c97df0f4c) ] | ||
Added support to semantics keys to fields in schema | ||
Added support to semantics keys to fields in schema | ||
___ | ||
--- | ||
## 1.5.9 | ||
@@ -151,16 +169,15 @@ | ||
Removed check for changeMessage as per issue topic #15 | ||
Removed check for changeMessage as per issue topic #15 | ||
[ [#fd5efded1](/commit/fd5efded1124b0f7de6c1e69d6a1a28e1bb7bf2b) ] | ||
Added pass.strings file concatenation with translations if it already exists | ||
in specific folder; | ||
Added pass.strings file concatenation with translations if it already exists | ||
in specific folder; | ||
[ [#d992b392c](/commit/d992b392c585dffcb32eb0720dfa4b103cfb926c) ] | ||
Small changes to messages; | ||
Small changes to messages; | ||
___ | ||
--- | ||
## 1.5.8 | ||
@@ -170,20 +187,21 @@ | ||
Now checking both static list and remote list before raising the error for missing files | ||
(thank you, Artsiom Aliakseyenka); | ||
Now checking both static list and remote list before raising the error for missing files | ||
(thank you, Artsiom Aliakseyenka); | ||
[ [#a62d8f35e](/commit/a62d8f35ea00021562ff4855dbb2e6a00001534a) ] | ||
Renamed __barcodeAutogen to barcodesFromUncompleteData and moved it outside of Pass class; | ||
Renamed __barcodeAutogen to barcodesFromUncompleteData and moved it outside of Pass class; | ||
Renamed __barcodeAutocomplete to Symbol/barcodesFillMissing; | ||
Renamed __barcodeAutocomplete to Symbol/barcodesFillMissing; | ||
Renamed __barcodeChooseBackward to Symbol/barcodesSetBackward; | ||
Renamed __barcodeChooseBackward to Symbol/barcodesSetBackward; | ||
Removed context binding when passing above methods with alises after using .barcode(); | ||
Removed context binding when passing above methods with alises after using .barcode(); | ||
[ [#d5d4d9617](/commit/d5d4d9617f50bd5a709a260d4c1312fee69359d2) ] | ||
Edited BRC_ATC_MISSING_DATA message | ||
Edited BRC_ATC_MISSING_DATA message | ||
___ | ||
--- | ||
## 1.5.7 | ||
@@ -193,13 +211,14 @@ | ||
Moved tests to spec folder with jasmine configuration | ||
Moved tests to spec folder with jasmine configuration | ||
[ [#33ca24d28](/commit/33ca24d28d09caad6c5eb0cde949b13a9053faf3) ] | ||
Fixed barcodes validation problem | ||
Fixed barcodes validation problem | ||
[ [#7c2540a93](/commit/7c2540a93d46e0ba71400b2eb5e0fceee9dd6445) ] | ||
Re-engineered FieldContainer (now FieldsArray) to extend successfully array with its methods. | ||
Re-engineered FieldContainer (now FieldsArray) to extend successfully array with its methods. | ||
___ | ||
--- | ||
## 1.5.6 | ||
@@ -209,14 +228,15 @@ | ||
Updated documentation | ||
Updated documentation | ||
[ [#bf2b8f655](/commit/bf2b8f655e35e0d9d1a7d6e837c9a234fd663a41) ] | ||
Added content-certificates support; | ||
Fixed problem with supported options | ||
Added content-certificates support; | ||
Fixed problem with supported options | ||
[ [#a9f71f113](/commit/a9f71f113d1093532c6899e05abcdf540be3ac17) ] | ||
Added description to be available for override (thank you, Artsiom Aliakseyenka); | ||
Added description to be available for override (thank you, Artsiom Aliakseyenka); | ||
___ | ||
--- | ||
## 1.5.5 | ||
@@ -226,11 +246,12 @@ | ||
Schema: changed webServiceURL Regex and authenticationToken binding to this one | ||
Schema: changed webServiceURL Regex and authenticationToken binding to this one | ||
[ [#02a932ce7](/commit/02a932ce7a9eac0b444ba0367f861bdbb701c880) ] | ||
Schema: removed filter function for getValidated to return empty object in case of error; | ||
Schema: removed filter function for getValidated to return empty object in case of error; | ||
Added OVV_KEYS_BADFORMAT message to throw in case of error; | ||
Added OVV_KEYS_BADFORMAT message to throw in case of error; | ||
___ | ||
--- | ||
## 1.5.4 | ||
@@ -240,21 +261,22 @@ | ||
Added .npmignore to exclude examples upload | ||
Added .npmignore to exclude examples upload | ||
[ [#1d1f9f9c9](/commit/1d1f9f9c9082d49a5252c4fe8f98e8c8a0a61930) ] | ||
Replaced findIndex for find to get directly the pass type. | ||
Replaced findIndex for find to get directly the pass type. | ||
[ [#b32c2efcd](/commit/b32c2efcd096a29b374cc1c2ff0f8506023c7d5c) ] | ||
Added function assignLength to wrap new objects with length property. | ||
Added function assignLength to wrap new objects with length property. | ||
[ [#e4b3436b4](/commit/e4b3436b468b196649097e2f4c43b7f44ae1b073) ] | ||
Converted schemas arrow functions to functions and added descriptive comments. | ||
Converted schemas arrow functions to functions and added descriptive comments. | ||
[ [#5e4d3b8ca](/commit/5e4d3b8ca1366fd4b30eeb674665a5ee149be087) ] | ||
Added noop function instead creating new empty functions. | ||
Added noop function instead creating new empty functions. | ||
___ | ||
--- | ||
## 1.5.3 | ||
@@ -264,5 +286,6 @@ | ||
Bugfix: when overrides is not passed as option, the pass does not get generated. | ||
Bugfix: when overrides is not passed as option, the pass does not get generated. | ||
___ | ||
--- | ||
## 1.5.2 | ||
@@ -272,5 +295,6 @@ | ||
Added schema support for sharingProhibited (not documented in ppfr) | ||
Added schema support for sharingProhibited (not documented in ppfr) | ||
___ | ||
--- | ||
## 1.5.1 | ||
@@ -280,19 +304,20 @@ | ||
Updated declaration file | ||
Updated declaration file | ||
[ [#9a9d883d3](/commit/9a9d883d3fb00716790ba785bbda1ffc5f7563ce) ] | ||
Fixed problem in error message resolving on multiple %s; | ||
Fixed problem in error message resolving on multiple %s; | ||
Added debug messages in messages.js; | ||
Added debug messages in messages.js; | ||
Added more comments; | ||
Added more comments; | ||
Moved literal debug messages to messages.js; | ||
Moved literal debug messages to messages.js; | ||
Edited formatMessage (was formatError) to check also among debugMessages | ||
Edited formatMessage (was formatError) to check also among debugMessages | ||
[ [#27339bfda](/commit/27339bfdac3f973b10e111a9604fd32db5c074fc) ] - Minor improvements | ||
___ | ||
--- | ||
## 1.5.0 | ||
@@ -302,9 +327,10 @@ | ||
Moved _parseCertificates outside of pass and renamed it in readCertificates; | ||
Moved _parseCertificates outside of pass and renamed it in readCertificates; | ||
Changed readCertificates to return object containing name:parsed-pem; | ||
Changed readCertificates to return object containing name:parsed-pem; | ||
Added readCertificates and this.Certificates merging before model reading; | ||
Added readCertificates and this.Certificates merging before model reading; | ||
___ | ||
--- | ||
## 1.4.2 | ||
@@ -314,9 +340,10 @@ | ||
Minor changes to READMEs and core. | ||
Minor changes to READMEs and core. | ||
[ [#96e2b628f](/commit/96e2b628fe0204a188d7dbb32bf125a987100caf) ] | ||
Updated documentation | ||
Updated documentation | ||
___ | ||
--- | ||
## 1.4.1 | ||
@@ -327,21 +354,22 @@ | ||
[PR MERGE] Fix model initialization validation | ||
[PR MERGE] Fix model initialization validation | ||
[ [#96e2b628f](/commit/153108ad446ef4d8827207a3dcbb27108c0e4d7a) ] | ||
Improved README | ||
Improved README | ||
[ [#96e2b628f](/commit/ab6dd4ff68309d5b678eef36182272576790e12b) ] | ||
Added logo in assets and README | ||
Added logo in assets and README | ||
[ [#96e2b628f](/commit/b305633ed382043567fef6ac4f771febf401d001) ] | ||
Added updates for OpenSSL for Windows in termal steps for cers generation | ||
Added updates for OpenSSL for Windows in termal steps for cers generation | ||
[ [#9055390bb](/commit/9055390bb32bce571857d6e348e34696fa9c3738) ] | ||
Updated dependencies minimum version | ||
Updated dependencies minimum version | ||
___ | ||
--- | ||
## 1.4.0 | ||
@@ -351,19 +379,19 @@ | ||
Added working example for load | ||
Added working example for load | ||
[ [#4b2aa68ff](/commit/4b2aa68ffba1dec2a55126e4d2067f7150b8188c) ] | ||
Added .load type definition | ||
Added .load type definition | ||
[ [#8398e077b](/commit/8398e077b1988512af57852e2c7a881a9f2abedf) ] | ||
Fix typos for non-mac guide | ||
Fix typos for non-mac guide | ||
[ [#2e344e436](/commit/2e344e4367a395a66796a83e21657eec492373d1) ] | ||
Added .load to documentation; | ||
Removed express from dev dependencies; | ||
Added .load to documentation; | ||
Removed express from dev dependencies; | ||
[ [#b68dfe0d8](/commit/b68dfe0d8025a68b137cfc37c8b9f34a404c05e7) ] | ||
Added .load function to fetch pictures from the web and implemented fetching function inside logic flow | ||
Added .load function to fetch pictures from the web and implemented fetching function inside logic flow |
{ | ||
"name": "passkit-generator", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "The easiest way to generate custom Apple Wallet passes in Node.js", | ||
"main": "index.js", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"build": "npx tsc", | ||
"build": "npm run build:src", | ||
"build:all": "npm run build:src && npm run build:examples && npm run build:spec", | ||
"build:src": "rimraf lib && npx tsc -p tsconfig.dist.json", | ||
"build:examples": "cd examples && npm run build", | ||
"build:spec": "rimraf \"./spec/*.!(ts)\" && npx tsc -p tsconfig.spec.json", | ||
"prepublishOnly": "npm run build", | ||
"test": "npm run build && jasmine spec/index.js" | ||
"test": "npm run build:spec && npx jasmine", | ||
"example": "npm run build:src && npm --prefix examples run example", | ||
"example:debug": "npm run build:src && npm --prefix examples run example:debug" | ||
}, | ||
@@ -22,6 +28,6 @@ "author": "Alexander Patrick Cerutti", | ||
"dependencies": { | ||
"debug": "^4.1.1", | ||
"joi": "^17.2.1", | ||
"moment": "^2.27.0", | ||
"node-forge": "^0.9.2", | ||
"debug": "^4.3.1", | ||
"joi": "^17.3.0", | ||
"node-forge": "^0.10.0", | ||
"tslib": "^2.1.0", | ||
"yazl": "^2.5.1" | ||
@@ -34,10 +40,14 @@ }, | ||
"@types/debug": "^4.1.5", | ||
"@types/jasmine": "^3.5.14", | ||
"@types/joi": "^14.3.4", | ||
"@types/node": "^12.12.55", | ||
"@types/node-forge": "^0.9.5", | ||
"@types/jasmine": "^3.6.3", | ||
"@types/node": "^14.14.25", | ||
"@types/node-forge": "^0.9.7", | ||
"@types/yazl": "^2.4.2", | ||
"jasmine": "^3.6.1", | ||
"typescript": "^3.9.7" | ||
} | ||
"jasmine": "^3.6.4", | ||
"prettier": "^2.2.1", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.1.3" | ||
}, | ||
"files": [ | ||
"lib/**/*.+(js|d.ts)!(*.map)" | ||
] | ||
} |
@@ -11,2 +11,4 @@ <div align="center"> | ||
![](https://img.shields.io/node/v/passkit-generator.svg) | ||
<br> | ||
[![Financial Contributors on Open Collective](https://opencollective.com/passkit-generator/all/badge.svg?label=financial+contributors)](https://opencollective.com/passkit-generator) | ||
@@ -196,1 +198,35 @@ </div> | ||
Made with ❤️ in Italy. | ||
___ | ||
## Contributors | ||
A big thanks to all the people that contributed to improve this package. Any contribution is welcome. Do you have an idea to make this improve or something to say? Open a topic in the issues and we'll discuss together! Thank you ❤ | ||
Also a big big big big thank you to all the financial contributors! | ||
### Code Contributors | ||
<a href="https://github.com/alexandercerutti/passkit-generator/graphs/contributors"><img src="https://opencollective.com/passkit-generator/contributors.svg?width=890&button=false" /></a> | ||
### Financial Contributors | ||
Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/passkit-generator/contribute)] | ||
#### Individuals | ||
<a href="https://opencollective.com/passkit-generator"><img src="https://opencollective.com/passkit-generator/individuals.svg?width=890"></a> | ||
#### Organizations | ||
Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/passkit-generator/contribute)] | ||
<a href="https://opencollective.com/passkit-generator/organization/0/website"><img src="https://opencollective.com/passkit-generator/organization/0/avatar.svg"></a> | ||
<a href="https://opencollective.com/passkit-generator/organization/1/website"><img src="https://opencollective.com/passkit-generator/organization/1/avatar.svg"></a> | ||
<a href="https://opencollective.com/passkit-generator/organization/2/website"><img src="https://opencollective.com/passkit-generator/organization/2/avatar.svg"></a> | ||
<a href="https://opencollective.com/passkit-generator/organization/3/website"><img src="https://opencollective.com/passkit-generator/organization/3/avatar.svg"></a> | ||
<a href="https://opencollective.com/passkit-generator/organization/4/website"><img src="https://opencollective.com/passkit-generator/organization/4/avatar.svg"></a> | ||
<a href="https://opencollective.com/passkit-generator/organization/5/website"><img src="https://opencollective.com/passkit-generator/organization/5/avatar.svg"></a> | ||
<a href="https://opencollective.com/passkit-generator/organization/6/website"><img src="https://opencollective.com/passkit-generator/organization/6/avatar.svg"></a> | ||
<a href="https://opencollective.com/passkit-generator/organization/7/website"><img src="https://opencollective.com/passkit-generator/organization/7/avatar.svg"></a> | ||
<a href="https://opencollective.com/passkit-generator/organization/8/website"><img src="https://opencollective.com/passkit-generator/organization/8/avatar.svg"></a> | ||
<a href="https://opencollective.com/passkit-generator/organization/9/website"><img src="https://opencollective.com/passkit-generator/organization/9/avatar.svg"></a> |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
22
1950
231
101205
9
1
+ Addedtslib@^2.1.0
+ Addednode-forge@0.10.0(transitive)
+ Addedtslib@2.8.1(transitive)
- Removedmoment@^2.27.0
- Removedmoment@2.30.1(transitive)
- Removednode-forge@0.9.2(transitive)
Updateddebug@^4.3.1
Updatedjoi@^17.3.0
Updatednode-forge@^0.10.0