Skip to content

Releases: tinovyatkin/pass-js

Use yazl 📦

15 May 16:24
v4.3.0
ab77530
Compare
Choose a tag to compare
  • Switched from using in-house Zip implementation to yazl and refactored Pass.pipe for simpler form using async function.

Use native HTTP2 support from Node 8.8 🥂

15 May 16:23
v4.2.0
e5be6aa
Compare
Choose a tag to compare
  • switched from our fork of node-apn to native HTTP2 implementation from Node 8.8 LTS.
  • don't compress any file, just store inside of Zip, so, it suppose to be faster and more compatible

v4.1.0

15 May 16:22
v4.1.0
22f0e9c
Compare
Choose a tag to compare
  • added textDirection to constants
  • added associatedStoreIdentifiers into templatable fields (thanks to @antoniomika)

node-forge 🤝

15 May 16:21
v4.0.0
1d7a864
Compare
Choose a tag to compare
  • Replaced openssl spawning for native JavaScript node-forge implementation of manifest signing.

Template.pushUpdates(pushToken)

15 May 16:20
v3.8.0
b898936
Compare
Choose a tag to compare
  • Implemented Template.pushUpdates(pushToken) that sends APN update request for a given pass type to a pushToken (get pushToken at PassKit Web Service)

v3.7.0

15 May 16:19
v3.7.0
68651b4
Compare
Choose a tag to compare
  • Implemented Fields.setDateTime(key, label, date, formatOptions = {}) to set date/time style values to a structure fields. Example: pass.auxiliaryFields.setDateTime('arrival', 'ARRIVAL TIME', arrivalDateObj, { dateStyle: constants.dateTimeFormat.NONE, timeStyle: constants.dateTimeFormat.SHORT })

v3.6.0

15 May 16:19
v3.6.0
cb1c023
Compare
Choose a tag to compare
  • Added setValue(key, value) method for structure fields to make templating easier. Example: pass.headerFields.setValue('port', 'New Port')
  • Added tests for Fields class to increase test coverage

v3.5.0

15 May 16:18
v3.5.0
507fd03
Compare
Choose a tag to compare
  • Implemented Pass.stream that returns Pass as a readable stream. Useful for Koa responses, etc.

Use CSS colors and names

15 May 16:18
v3.4.0
d54775d
Compare
Choose a tag to compare
  • Color values setters at Template (backgroundColor, foregroundColor and labelColor) now can accept any valid CSS color string (like 'purple', '#fff', etc) and converts them into rgb(...) format that is only acceptable by Apple Wallet pass
  • Pass.validate enforces rgb() style values for color fields
  • Pass.validate enforces webServiceURL and authenticationToken to be either both present or both missing
  • Exporting PASS_MIME_TYPE from constants
  • Added expirationDate and relevantDate setters and getter to the Pass class that accepts both, Date or a string and converts that to correct W3C date string (or throws if it's impossible)
  • Added Pass.addLocation that accepts point value either as GeoJSON array, {lat, lng} or { longitude: number, latitude: number, altitude?: number }

v3.3.0

15 May 16:17
v3.3.0
7dac3d4
Compare
Choose a tag to compare
  • implemented Pass.transitType() to set/get transit type for board passes (with values validation and constants)
  • Template now loads/stores structure level values and passes them to Passes