From aa3d91a92374e1e549fac267c464841e0d53d040 Mon Sep 17 00:00:00 2001 From: Steve Hobbs Date: Thu, 19 Dec 2019 18:34:46 +0000 Subject: [PATCH] Prepare 0.4.1 (#115) * Release 0.4.1 * Added prettier rule to fix single quotes, aligned with linting rules * Upgraded to latest auth0-js --- CHANGELOG.md | 39 +++++++++++++++++++++++++++------------ package.json | 7 +++++-- src/version.js | 2 +- yarn.lock | 8 ++++---- 4 files changed, 37 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a0881e..0b17765 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,28 +1,43 @@ # Change Log +## [v0.4.1](https://github.com/auth0/auth0-cordova/tree/v0.4.0) (2019-10-16) + +[Full Changelog](https://github.com/auth0/auth0-cordova/compare/v0.4.0...v0.4.1) + +**Changed** + +Bumped auth0-js to 9.12.0 for better OIDC compliance [\113](https://github.com/auth0/auth0-cordova/pull/113) ([stevehobbsdev](https://github.com/stevehobbsdev)) + ## [v0.4.0](https://github.com/auth0/auth0-cordova/tree/v0.4.0) (2019-10-16) + [Full Changelog](https://github.com/auth0/auth0-cordova/compare/v0.3.0...v0.4.0) **Changed** + - Reformatted telemetry object [\#110](https://github.com/auth0/auth0-cordova/pull/110) ([stevehobbsdev](https://github.com/stevehobbsdev)) - Updated dependencies to fix vulnerabilities [\#111](https://github.com/auth0/auth0-cordova/pull/111) ([stevehobbsdev](https://github.com/stevehobbsdev)) ## [v0.3.0](https://github.com/auth0/auth0-cordova/tree/v0.4.0) (2017-12-26) + [Full Changelog](https://github.com/auth0/auth0-cordova/compare/v0.2.0...v0.3.0) **Changed** + - Deprecate Cordova sample [\#47](https://github.com/auth0/auth0-cordova/pull/47) ([chenkie](https://github.com/chenkie)) -- Docs refer to client but it doesn't exist [\#61](https://github.com/auth0/auth0-cordova/pull/47) ([JohnMcLear](https://github.com/JohnMcLear)) +- Docs refer to client but it doesn't exist [\#61](https://github.com/auth0/auth0-cordova/pull/47) ([JohnMcLear](https://github.com/JohnMcLear)) - Updated Auth0.js version to 9.0.0 [\#53](https://github.com/auth0/auth0-cordova/pull/53) ([aaguiarz](https://github.com/aaguiarz)) - Update to handle Auth0.js 9 and Update Example to Cordova 8.0 ([faafd9](https://github.com/auth0/auth0-cordova/commit/faafd9644f06853b55df516cbd2915b1a1eeead5)) ([darkyen](https://github.com/darkyen)) ## [v0.2.0](https://github.com/auth0/auth0-cordova/tree/v0.2.0) (2017-07-07) + [Full Changelog](https://github.com/auth0/auth0-cordova/compare/v0.1.0...v0.2.0) **Changed** + - Handle InAppBrowser exit event correctly [\#34](https://github.com/auth0/auth0-cordova/pull/34) ([decates](https://github.com/decates)) ## [v0.1.0](https://github.com/auth0/auth0-cordova/tree/v0.1.0) (2017-05-07) + [Full Changelog](https://github.com/auth0/auth0-cordova/tree/v0.1.0) ### Requirements @@ -43,8 +58,8 @@ cordova plugin add cordova-plugin-customurlscheme --variable URL_SCHEME={applica So if you have the following values -* application package name or widget identifier: com.auth0.cordova.example -* auth0 domain: samples.auth0.com +- application package name or widget identifier: com.auth0.cordova.example +- auth0 domain: samples.auth0.com in your config you should have some entries like @@ -69,17 +84,17 @@ npm install @auth0/cordova then in your index.js you need to register the url handler `ondeviceready` ```js -var Auth0Cordova = require('@auth0/cordova'); +var Auth0Cordova = require("@auth0/cordova"); function main() { - function handlerUrl(url) { - Auth0Cordova.onRedirectUri(url); - } - window.handleOpenURL = handlerUrl; - // init your application + function handlerUrl(url) { + Auth0Cordova.onRedirectUri(url); + } + window.handleOpenURL = handlerUrl; + // init your application } -document.addEventListener('deviceready', main); +document.addEventListener("deviceready", main); ``` ### Usage @@ -92,10 +107,10 @@ const auth0 = new Auth0Cordova({ }); const options = { - scope: 'openid profile', + scope: "openid profile" }; -client.authorize(options, function (err, result) { +client.authorize(options, function(err, result) { if (err) { // failure } diff --git a/package.json b/package.json index e846ebe..83c706b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@auth0/cordova", - "version": "0.4.0", + "version": "0.4.1", "description": "Auth0 integration for Cordova applications", "main": "src/index.js", "scripts": { @@ -33,7 +33,7 @@ }, "homepage": "https://github.com/auth0/auth0-cordova#readme", "dependencies": { - "auth0-js": "^9.12.0", + "auth0-js": "^9.12.1", "url-parse": "^1.4.3" }, "devDependencies": { @@ -53,5 +53,8 @@ "mocha-junit-reporter": "^1.23.1", "mocha-multi": "^1.1.3", "webpack": "^2.4.1" + }, + "prettier": { + "singleQuote": true } } diff --git a/src/version.js b/src/version.js index 04def55..7bd2454 100644 --- a/src/version.js +++ b/src/version.js @@ -1 +1 @@ -module.exports = { raw: '0.4.0' }; +module.exports = { raw: '0.4.1' }; diff --git a/yarn.lock b/yarn.lock index 2609a2e..7f7bb04 100644 --- a/yarn.lock +++ b/yarn.lock @@ -255,10 +255,10 @@ atob@^2.1.1: resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== -auth0-js@^9.12.0: - version "9.12.0" - resolved "https://registry.yarnpkg.com/auth0-js/-/auth0-js-9.12.0.tgz#6b8ac52767382366b1f81d85e394329174c54dc3" - integrity sha512-OnI04ISKF7SGOlP8MFqnVUNPwVaceynwkjA6f55z2CsZaUXynTTiTtGRhyU2c88kR4skPx1si0SKowzzy38+aw== +auth0-js@^9.12.1: + version "9.12.1" + resolved "https://registry.yarnpkg.com/auth0-js/-/auth0-js-9.12.1.tgz#ffe76acdbd66ad61a0a71c818d69a599c8228937" + integrity sha512-0BqClX8iRYWeX8lM6V1h9Yg0ZSxs+naM+dMiknfdwr8g7HNLEXqRc1Wx4iZUJfF4PTU5pDksRkiWvjDFQbt2SA== dependencies: base64-js "^1.3.0" idtoken-verifier "^2.0.0"