Skip to content

Latest commit

 

History

History
102 lines (73 loc) · 3.58 KB

CHANGES.md

File metadata and controls

102 lines (73 loc) · 3.58 KB

1.3.5

  • Build guard: also catches the spaced and hyphenated spellings of each company name, for example Payment IQ or payment-iq

1.3.4

  • Build guard: the published package is scanned for company names before npm publish, and the guard has its own regression cases. No change to shipped code; dist and index.d.ts are byte-identical to 1.3.3

1.3.3

  • Origin validation now accepts messages only from the origin of the configured hostedfieldsurl. The two built-in fallback origins are removed, so hostedfieldsurl must point at the host the iframes actually load from
  • Remove repository, author and brand keywords from package metadata, and publish only dist and index.d.ts
  • Update readme

1.3.2

  • Add HostedFields.updateStyles(styles) to apply new custom styles at runtime without reloading the iframes (requires hosted fields 1.1.9+)

1.3.1

  • Remove hostedpages domain support
  • Update readme

1.3.0

  • Add ClickToPay integration support
  • Provide high-level types with index.d.ts (Issue 21)
  • Make onLoadCallback optional (Issue 22)

1.2.8

  • Add onCardBrandChangeCallback

1.2.7

  • Add full ESM support under /esm

1.2.6

  • Updated dependencies and patched vulnerabilities

1.2.5

  • Migration to card-fields new domain.

1.2.4

  • Updated dependencies and patched vulnerabilities

1.2.3

  • Security update: PostMessage origin checks
  • Support auto-focus on next field when value is valid

1.2.2

  • Upgrade in package.json and security vulnerabilities in dependencies

1.2.1

  • Bug fix: Add an try catch around certain operations that are trying to 'appendChild' or get 'contentWindow'. It failed in some occasions and caused the onLoadCallback never to be triggered.

1.2.0

  • Allow all fields to be returned in a single iframe - renderMode: 'single' || 'multiple' (defaults to multiple)
  • Reported errors. All fields that reported an error are now returned in the array of errors (Thank you @vannhu-nguyen for the fix)

1.1.1

  • The Field constructor was missing support for noAttributeValueFormatting and autocomplete Now supports both, noAttributeValueFormatting defaults to false, autocomplete to empty string.

1.1.0

  • Removed jquery as dependency (not used enough to warrant its inclusion)
  • Added fields onload callback
  • Updated dependencies
  • Bugfix to build step - caused package to be a lot bigger than it had to be

1.0.15

  • Upgraded depedencies that reported security alerts (js-yaml, jquery)

1.0.14

  • Allow focus to be set to iframes (need to allow tabbing into inputs for example)

1.0.13

  • Upgraded browserify due to a security alert of a sub-dependecy

1.0.9

  • Tabindex -1 on the iframe-elements so that focus is set to input field right away instead of the iframe-element.

1.0.8

  • Reset shouldn't be an action, it should only be a method that the parent-application can call

1.0.7

  • Added reset() as a method to HostedFields. Resets the targets to an empty array. Necessary to run before running a new setupContent to avoid duplicates

1.0.6

  • Updated readme

1.0.5

  • Reverted back so callback of formData is callback()(formData)

1.0.4

  • Forgot the build the previous version (no update to dist)

1.0.3

  • Bugfix: form callback didn't send formData

1.0.2

  • Updated readme

1.0.1

  • Using 2.6.0 of uglify-js since earlier versions had a security-gap
  • Docs showing test-environment for hosted-fields

1.0.0

  • initial commit, basic features for generating fields