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.8.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.1
Choose a head ref

Commits on Jul 8, 2020

  1. chore(deps): update dependency rimraf to v3 (#301)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 8, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1d3e537 View commit details

Commits on Jul 10, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    2e5d67a View commit details

Commits on Jul 13, 2020

  1. Copy the full SHA
    fd9c632 View commit details

Commits on Jul 21, 2020

  1. Copy the full SHA
    ececa82 View commit details
  2. Copy the full SHA
    647348a View commit details

Commits on Jul 27, 2020

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

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 27, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9ef4305 View commit details

Commits on Jul 28, 2020

  1. feat: adding Spanish translation

    Agregando la traducción al español
    esteban-url committed Jul 28, 2020
    Copy the full SHA
    54ed057 View commit details
  2. fix: prevent double initialization (#284)

    * 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
    
    * chore: add Prettier config
    
    * fix: prevent double initialization
    
    * fix: don't call init event twice when on localhost
    
    GoTrue was instantiated twice when on localhost and netlifySiteURL configured
    
    Co-authored-by: Cassidy Williams <cassidy@netlify.com>
    Co-authored-by: erezrokah <erezrokah@users.noreply.github.com>
    3 people authored Jul 28, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b445235 View commit details
  3. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    36332ff View commit details
  4. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    377eeef View commit details
  5. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    613f6af View commit details
  6. fix(deps): update dependency react-scripts to v3 (#312)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 28, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e1f90cd View commit details
  7. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    75e9798 View commit details
  8. Merge pull request #328 from netlify/frenchinfrench

    Fix: Make "French" into "Français"
    cassidoo authored Jul 28, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    2bf48d2 View commit details
  9. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    96ff3e9 View commit details
  10. Merge pull request #327 from esteban-url/feat/spanish-translation

    Feat: Add Spanish translation
    cassidoo authored Jul 28, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    2e7ac23 View commit details
  11. Update correct dependencies (#332)

    * chore(deps): updates dependencies
    
    * chore: fixes new prettier defaults
    tzmanics authored Jul 28, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    82392ef View commit details
  12. Copy the full SHA
    c27a300 View commit details

Commits on Jul 29, 2020

  1. Merge pull request #333 from ximenavf92/feat/spanish-translation-update

    Feat: Update Spanish translation
    cassidoo authored Jul 29, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    710d7ba View commit details
  2. fix: ReferenceError: window is not defined (#319)

    * set output.globalObject = "this" in webpack.umd.config.babel.js
    
    fixes error with webpack umd output. see issue #318
    
    * fix lint
    hkennyv authored Jul 29, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6a32436 View commit details
  3. 1.8.1

    jlengstorf committed Jul 29, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jlengstorf Jason Lengstorf
    Copy the full SHA
    76c2c8e View commit details
45 changes: 45 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Node CI

on:
push:
branches:
- main

pull_request:
types: [opened, synchronize, reopened]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
restore-keys: |
${{ runner.os }}-yarn-${{ matrix.node-version }}-
- name: install dependencies
run: yarn --frozen-lockfile

- name: run tests
run: yarn test

- name: run build
run: yarn run build
6 changes: 6 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
semi: true,
singleQuote: false,
trailingComma: "none",
tabWidth: 2
};
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -7,6 +7,29 @@ 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.1](https://github.com/netlify/netlify-identity-widget/compare/v1.8.0...v1.8.1) - 2020-07-29

### Merged

- fix: ReferenceError: window is not defined [`#319`](https://github.com/netlify/netlify-identity-widget/pull/319)
- Feat: Update Spanish translation [`#333`](https://github.com/netlify/netlify-identity-widget/pull/333)
- Update correct dependencies [`#332`](https://github.com/netlify/netlify-identity-widget/pull/332)
- Feat: Add Spanish translation [`#327`](https://github.com/netlify/netlify-identity-widget/pull/327)
- Fix: Make "French" into "Français" [`#328`](https://github.com/netlify/netlify-identity-widget/pull/328)
- fix(deps): update dependency react-scripts to v3 [`#312`](https://github.com/netlify/netlify-identity-widget/pull/312)
- ci: switch to github actions [`#325`](https://github.com/netlify/netlify-identity-widget/pull/325)
- chore(deps): remove unused raw-loader dependency [`#304`](https://github.com/netlify/netlify-identity-widget/pull/304)
- chore: remove package-lock.json [`#303`](https://github.com/netlify/netlify-identity-widget/pull/303)
- fix: prevent double initialization [`#284`](https://github.com/netlify/netlify-identity-widget/pull/284)
- chore(deps): lock file maintenance [`#323`](https://github.com/netlify/netlify-identity-widget/pull/323)
- chore(deps): update dependency rimraf to v3 [`#301`](https://github.com/netlify/netlify-identity-widget/pull/301)

### Commits

- feat: adding Spanish translation [`54ed057`](https://github.com/netlify/netlify-identity-widget/commit/54ed057e06e1a97e5573f97f671eae62d1e94fa4)
- Feat: Update Spanish translation to an informal, friendly tone [`c27a300`](https://github.com/netlify/netlify-identity-widget/commit/c27a300e9330c8cdf46d08f60889799af37d9132)
- chore(deps): update dependency caniuse-lite to v1.0.30001104 [`ececa82`](https://github.com/netlify/netlify-identity-widget/commit/ececa82560ac4cd384e07ed5461601292cfb1847)

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

### Merged
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# Netlify Identity Widget

[![npm version](https://badge.fury.io/js/netlify-identity-widget.svg)](https://badge.fury.io/js/netlify-identity-widget)

A component used to authenticate with Netlify's Identity service.

[Live demo](https://identity.netlify.com)

For usage example with React and React Router, please see our `/example` folder and [read the README](https://github.com/netlify/netlify-identity-widget/tree/master/example).

## What is Netlify Identity

Netlifys Identity service is a plug-and-play microservice for handling site
Netlify's Identity service is a plug-and-play microservice for handling site
functionalities like signups, logins, password recovery, user metadata, and
roles. You can use it from single page apps instead of rolling your own, and
integrate with any service that understands JSON Web Tokens (JWTs).
@@ -151,7 +154,7 @@ module API. Options include:
container: '#some-query-selector'; // container to attach to
APIUrl: 'https://www.example.com/.netlify/functions/identity'; // Absolute url to endpoint. ONLY USE IN SPECIAL CASES!
namePlaceholder: 'some-placeholder-for-Name'; // custom placeholder for name input form
locale: 'en'; // language code for translations - available: en, fr - default to en
locale: 'en'; // language code for translations - available: en, fr, es - default to en
}
```

@@ -192,10 +195,10 @@ You can also see an example of wrapping netlify-identity-widget in a React Hook

## FAQ

* Typescript Typings are maintained by @nkprince007 ([see PR](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/30689)): `npm install @types/netlify-identity-widget` and then `import * as NetlifyIdentityWidget from "netlify-identity-widget"` (or `import NetlifyIdentityWidget from "netlify-identity-widget"` if you have `--allowSyntheticDefaultImports` on)
* TypeScript Typings are maintained by @nkprince007 ([see PR](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/30689)): `npm install @types/netlify-identity-widget` and then `import * as NetlifyIdentityWidget from "netlify-identity-widget"` (or `import NetlifyIdentityWidget from "netlify-identity-widget"` if you have `--allowSyntheticDefaultImports` on)

* If you experience a 404 while testing the Netlify Identity Widget on a local
environment, you can manually remove the netlifySiteURL from localStorage by
environment, you can manually remove the `netlifySiteURL` from localStorage by
doing the following in the console.

```js
2 changes: 1 addition & 1 deletion example/react/package.json
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
"react": "^16.6.0",
"react-dom": "^16.6.0",
"react-router-dom": "^4.3.1",
"react-scripts": "^2.0.0"
"react-scripts": "^3.0.0"
},
"scripts": {
"start": "SKIP_PREFLIGHT_CHECK=true react-scripts start",
Loading