Skip to content

Commit

Permalink
📦 NEW: Update zxcvbn to v3.0.0 (#714)
Browse files Browse the repository at this point in the history
* 📦 NEW: update zxcvbn to v3.0.0

* 👌 IMPROVE: update imports

* 📖 DOC: update install script

* ‼️ BREAKING: bump the package version
  • Loading branch information
antoantonyk authored Nov 4, 2023
1 parent d4c37f8 commit cda977b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Need lib for Vue.js? [Click here](https://github.com/antoantonyk/vue-password-st
**Step 1:** npm install

```sh
npm install @zxcvbn-ts/core@^2.2.1 @zxcvbn-ts/language-en@^2.1.0 angular-password-strength-meter --save
npm install @zxcvbn-ts/core@^3.0.0 @zxcvbn-ts/language-en@^3.0.0 angular-password-strength-meter --save
```
**Optional Packages:** zxcvbn packagase are not required if PasswordStrengthMeterModule is using with a custom implementation of IPasswordStrengthMeterService .

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "password-strength-meter",
"version": "7.0.0",
"version": "8.0.0",
"scripts": {
"ng": "ng",
"serve": "ng serve",
Expand Down
2 changes: 1 addition & 1 deletion projects/password-strength-meter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Need lib for Vue.js? [Click here](https://github.com/antoantonyk/vue-password-st
**Step 1:** npm install

```sh
npm install @zxcvbn-ts/core@^2.2.1 @zxcvbn-ts/language-en@^2.1.0 angular-password-strength-meter --save
npm install @zxcvbn-ts/core@^3.0.0 @zxcvbn-ts/language-en@^3.0.0 angular-password-strength-meter --save
```
**Optional Packages:** zxcvbn packagase are not required if PasswordStrengthMeterModule is using with a custom implementation of IPasswordStrengthMeterService .

Expand Down
6 changes: 3 additions & 3 deletions projects/password-strength-meter/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "angular-password-strength-meter",
"version": "7.0.0",
"version": "8.0.0",
"dependencies": {
"tslib": "^2.5.0"
},
"peerDependencies": {
"@angular/common": "^15.0.0",
"@angular/core": "^15.0.0",
"@zxcvbn-ts/core": "^2.2.1",
"@zxcvbn-ts/language-en": "^2.1.0"
"@zxcvbn-ts/core": "^3.0.0",
"@zxcvbn-ts/language-en": "^3.0.0"
},
"author": {
"name": "Anto Antony",
Expand Down
4 changes: 2 additions & 2 deletions projects/password-strength-meter/zxcvbn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}
},
"peerDependencies": {
"@zxcvbn-ts/core": "^2.2.1",
"@zxcvbn-ts/language-en": "^2.1.0"
"@zxcvbn-ts/core": "^3.0.0",
"@zxcvbn-ts/language-en": "^3.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Inject, Injectable, Optional } from '@angular/core';
import { zxcvbn, zxcvbnOptions } from '@zxcvbn-ts/core';
import zxcvbnEnPackage from '@zxcvbn-ts/language-en';
import { translations } from '@zxcvbn-ts/language-en'
import { IPasswordStrengthMeterService } from 'angular-password-strength-meter';
import { ZXCVBN_CONFIG, ZxvbnConfigType } from './password-strength-meter.types';


export const DEFAULT_CONFIG: ZxvbnConfigType = {
translations: zxcvbnEnPackage.translations,
translations: translations,
};

@Injectable()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { InjectionToken } from '@angular/core';
import { OptionsType } from '@zxcvbn-ts/core/dist/types';

export type ZxvbnConfigType=OptionsType;
export const ZXCVBN_CONFIG = new InjectionToken<ZxvbnConfigType>('ZXCVBN_CONFIG');

0 comments on commit cda977b

Please sign in to comment.