Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: netlify/netlify-identity-widget
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.7.0
Choose a base ref
...
head repository: netlify/netlify-identity-widget
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.8.0
Choose a head ref
  • 4 commits
  • 13 files changed
  • 7 contributors

Commits on Jul 6, 2020

  1. chore(deps): lock file maintenance (#302)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 6, 2020
    Copy the full SHA
    ade6dee View commit details
  2. Copy the full SHA
    3646afe View commit details
  3. feat: add support for unregistering event handlers (#283)

    * feat: add support for unregistering event handlers
    
    Refactor callback management to use `Map` so that we can unregister
    handlers without changing the current behavior.
    
    Co-authored-by: Cassidy Williams <cassidy@netlify.com>
    
    * fix: use a Set instead of a Map
    
    * test: add on/off events tests
    
    * docs: update readme with off method example
    
    Co-authored-by: Cassidy Williams <cassidy@netlify.com>
    Co-authored-by: erezrokah <erezrokah@users.noreply.github.com>
    3 people authored Jul 6, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    8407a21 View commit details
  4. 1.8.0

    jlengstorf committed Jul 6, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e1a235b View commit details
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

## [v1.8.0](https://github.com/netlify/netlify-identity-widget/compare/v1.7.0...v1.8.0) - 2020-07-06

### Merged

- feat: add support for unregistering event handlers [`#283`](https://github.com/netlify/netlify-identity-widget/pull/283)
- fix: changes the form type to name [`#286`](https://github.com/netlify/netlify-identity-widget/pull/286)
- chore(deps): lock file maintenance [`#302`](https://github.com/netlify/netlify-identity-widget/pull/302)

## [v1.7.0](https://github.com/netlify/netlify-identity-widget/compare/v1.6.0...v1.7.0) - 2020-06-30

### Merged
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -66,6 +66,10 @@ netlifyIdentity.on('error', err => console.error('Error', err));
netlifyIdentity.on('open', () => console.log('Widget opened'));
netlifyIdentity.on('close', () => console.log('Widget closed'));

// Unbind from events
netlifyIdentity.off('login'); // to unbind all registered handlers
netlifyIdentity.off('login', handler); // to unbind a single handler

// Close the modal
netlifyIdentity.close();

@@ -114,6 +118,10 @@ netlifyIdentity.on('error', err => console.error('Error', err));
netlifyIdentity.on('open', () => console.log('Widget opened'));
netlifyIdentity.on('close', () => console.log('Widget closed'));

// Unbind from events
netlifyIdentity.off('login'); // to unbind all registered handlers
netlifyIdentity.off('login', handler); // to unbind a single handler

// Close the modal
netlifyIdentity.close();

Loading