Fixed beacons `major` validation to be more relaxed (PR #158);
Fixed dates processing by converting them to UTC (PR #155);
Fixed transitType which wasn't being imported when a boardingPass was getting read (PR #138)
Improved types for property in Field type (PR #139)
Fixed Typescript type for Semantics.WifiAccess (PR #136)
Fixed generation of EventTicket with row fields (PR #118)
Optimizations for localizationEntries, PKPass.pack, localize and regexes;
Dependencies Update;
Fixed FieldsArray order when pushing or unshifting fields in `headerFields`, `primaryFields`, `secondaryFields`, `auxiliaryFields` and `backFields` (PR #104)
Fixed Schema validation for browser-like contexts like Cloudflare Workers (PR #100);
Added examples for Cloudflare Workers;
Updated dependencies to remove dependabot alerts (like, node-forge to v1.2.1);
Updated tests;
This release fixes some issues when running under Windows and adds new tests.
Thanks to PR #99 by d34db4b3.
This release fixes some issues with typescript strict mode (as much as we were able to fix without starting ho-ho-ho-ing due to madness 🤪).
Made PKPass.from's Template `certificates` to be optional;
Changed constructor buffers and certificates to be optional;
Added constructor check on certificates to avoid error if pass is created through `PKPass.from` but without certificates;
Added constructor checks for buffers with a warning being fired if the passed parameter is not an object;
Passkit-generator has been completely refactored and re-conceptualized. Follow [Migration Guide v2 to v3](https://github.com/alexandercerutti/passkit-generator/wiki/Migrating-from-v2-to-v3) to see the differences between the two versions
Added support for optional NFC key `requiresAuthentication`;
Added support for semantics as a global overridable property;
Renamed files to conform to Apple naming in documentation;
Added documentation links in files;
Fixed wrong Schemas keys (ignore*s*TimeZone and dataDetectorType*s*);
Added more SemanticsTagTypes
Refactored Error system;
Refactored Schemas;
Updated Dependencies;
Removed unnecessary ways to perfom ways in refactoring;
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);
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`);
Typescript strict configuration fixes;
Improved specifications;
Dependencies Updates;
More improvements;
Unlocked some other prohibited (until now) fields that were not editable due to design choice ( organizationName, passTypeIdentifier, teamIdentifier, appLaunchURL, associatedStoreIdentifiers);
Small improvements;
Typescript version update;
Update to webServiceURL schema regex and allowed all characters for authenticationToken;
This version brings lot of improvements and breaking changes. Please refer to the Migration Guide for the most important changes.
[ #74903938b ]
Added optional row attribute for auxiliaryFields
[ #f37f978e2 ]
Fixed problem with fieldsArray: fields were being added even if the keys check was failing
[ #f29203149 ]
Added support for logoText in supportedOptions (issues #21, #28)
[ #6451a3c37 ]
Fixed nfc methods which was accepting and registering an array instead of an object
[ #4ce889d65 ]
Adding support for native Dates (#32)
[ #0e46d855e ]
Fixing passes parallel generation (#31)
[ #903192522 ]
Added windows path slash parsing
[ Subsequent commits ]
Fixes to problems in 1.6.1
[ #baf096c38 ]
Moved some utility functions to a separate file
[ #37a9a051c ]
Removed rgbValues as a variable for a direct approact
[ #3de654759 ]
Renamed _validateType in _hasValidType
[ #17e64a08a ]
Fixed barcode legacy bug
[ #3338ff7b8 ]
Added NO_PASS_TYPE as message
[ #bd8643b20 ]
Moved passExtractor function to class scope instead of generate()'s
[ #18893ac74 ]
Moved to async/await approach for generate()
[ #c559a7f1c ]
Improved unique fields management;
Changed debug message for discarded fields;
Renamed uniqueKeys to fieldsKeys
[ #f7d082352 ]
Added BRC_BW_FORMAT_UNSUPPORTED to not let PKBarcodeFormatCode128 to be used as backward barcode format
[ #43e687b2f ]
Added support for row field in auxiliaryFields
[ #40f72ac43 ]
Added support to semantics keys to fields in schema
[ #7bad48107 ]
Removed check for changeMessage as per issue topic #15
[ #fd5efded1 ]
Added pass.strings file concatenation with translations if it already exists
in specific folder;
[ #d992b392c ]
Small changes to messages;
[ #654e2b5dc ]
Now checking both static list and remote list before raising the error for missing files
(thank you, Artsiom Aliakseyenka);
[ #a62d8f35e ]
Renamed __barcodeAutogen to barcodesFromUncompleteData and moved it outside of Pass class;
Renamed __barcodeAutocomplete to Symbol/barcodesFillMissing;
Renamed __barcodeChooseBackward to Symbol/barcodesSetBackward;
Removed context binding when passing above methods with alises after using .barcode();
[ #d5d4d9617 ]
Edited BRC_ATC_MISSING_DATA message
[ #c0994b80b ]
Moved tests to spec folder with jasmine configuration
[ #33ca24d28 ]
Fixed barcodes validation problem
[ #7c2540a93 ]
Re-engineered FieldContainer (now FieldsArray) to extend successfully array with its methods.
[ #5e917d6db ]
Updated documentation
[ #bf2b8f655 ]
Added content-certificates support;
Fixed problem with supported options
[ #a9f71f113 ]
Added description to be available for override (thank you, Artsiom Aliakseyenka);
[ #14582ba9d ]
Schema: changed webServiceURL Regex and authenticationToken binding to this one
[ #02a932ce7 ]
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;
[ #71cb678cf ]
Added .npmignore to exclude examples upload
[ #1d1f9f9c9 ]
Replaced findIndex for find to get directly the pass type.
[ #b32c2efcd ]
Added function assignLength to wrap new objects with length property.
[ #e4b3436b4 ]
Converted schemas arrow functions to functions and added descriptive comments.
[ #5e4d3b8ca ]
Added noop function instead creating new empty functions.
[ #56da2a390 ]
Bugfix: when overrides is not passed as option, the pass does not get generated.
[ #47ff693b6 ]
Added schema support for sharingProhibited (not documented in ppfr)
[ #572605ef4 ]
Updated declaration file
[ #9a9d883d3 ]
Fixed problem in error message resolving on multiple %s;
Added debug messages in messages.js;
Added more comments;
Moved literal debug messages to messages.js;
Edited formatMessage (was formatError) to check also among debugMessages
[ #27339bfda ] - Minor improvements
[ #cf5c99b16 ]
Moved _parseCertificates outside of pass and renamed it in readCertificates;
Changed readCertificates to return object containing name:parsed-pem;
Added readCertificates and this.Certificates merging before model reading;
[ #92fc5f826 ]
Minor changes to READMEs and core.
[ #96e2b628f ]
Updated documentation
[ #4b65e76be, #2a71d0778 ]
[PR MERGE] Fix model initialization validation
[ #96e2b628f ]
Improved README
[ #96e2b628f ]
Added logo in assets and README
[ #96e2b628f ]
Added updates for OpenSSL for Windows in termal steps for cers generation
[ #9055390bb ]
Updated dependencies minimum version
[ #1ca53adc4 ]
Added working example for load
[ #4b2aa68ff ]
Added .load type definition
[ #8398e077b ]
Fix typos for non-mac guide
[ #2e344e436 ]
Added .load to documentation;
Removed express from dev dependencies;
[ #b68dfe0d8 ]
Added .load function to fetch pictures from the web and implemented fetching function inside logic flow