Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 RELEASE: v7.0.0 #712

Merged
merged 3 commits into from
Nov 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 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 @zxcvbn-ts/language-en angular-password-strength-meter --save
npm install @zxcvbn-ts/core@^2.2.1 @zxcvbn-ts/language-en@^2.1.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 Expand Up @@ -75,7 +75,7 @@ import zxcvbnEnPackage from '@zxcvbn-ts/language-en'
...
imports: [
....
PasswordStrengthMeterModule.forRoot()
PasswordStrengthMeterModule.forRoot(DEFAULT_PSM_OPTIONS)
],
providers: [
{
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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": "6.0.0",
"version": "7.0.0",
"scripts": {
"ng": "ng",
"serve": "ng serve",
Expand Down
14 changes: 8 additions & 6 deletions projects/password-strength-meter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,23 @@ Need lib for Vue.js? [Click here](https://github.com/antoantonyk/vue-password-st
**Step 1:** npm install

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

**Step 2:** Import Password Strength Meter Module into your app module

```ts
....
import { PasswordStrengthMeterModule } from 'angular-password-strength-meter';

import { DEFAULT_PSM_OPTIONS } from 'angular-password-strength-meter/zxcvbn';
....

@NgModule({
...
imports: [
....
PasswordStrengthMeterModule.forRoot()
PasswordStrengthMeterModule.forRoot(DEFAULT_PSM_OPTIONS)
],
....
})
Expand All @@ -63,7 +64,8 @@ Refer to the [zxcvbn documentation](https://zxcvbn-ts.github.io/zxcvbn/guide/get

```ts
....
import { PasswordStrengthMeterModule, PSM_CONFIG } from 'angular-password-strength-meter';
import { PasswordStrengthMeterModule} from 'angular-password-strength-meter';
import { DEFAULT_PSM_OPTIONS, ZXCVBN_CONFIG } from 'angular-password-strength-meter/zxcvbn';
import zxcvbnCommonPackage from '@zxcvbn-ts/language-common'
import zxcvbnEnPackage from '@zxcvbn-ts/language-en'

Expand All @@ -73,11 +75,11 @@ import zxcvbnEnPackage from '@zxcvbn-ts/language-en'
...
imports: [
....
PasswordStrengthMeterModule.forRoot()
PasswordStrengthMeterModule.forRoot(DEFAULT_PSM_OPTIONS)
],
providers: [
{
provide: PSM_CONFIG,
provide: ZXCVBN_CONFIG,
useValue: {
translations: zxcvbnEnPackage.translations,
graphs: zxcvbnCommonPackage.adjacencyGraphs,
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": "6.0.0",
"version": "7.0.0",
"dependencies": {
"tslib": "^2.5.0"
},
"peerDependencies": {
"@angular/common": "^15.0.0",
"@angular/core": "^15.0.0",
"@zxcvbn-ts/core": "^2.0.1",
"@zxcvbn-ts/language-en": "^2.0.1"
"@zxcvbn-ts/core": "^2.2.1",
"@zxcvbn-ts/language-en": "^2.1.0"
},
"author": {
"name": "Anto Antony",
Expand Down
18 changes: 9 additions & 9 deletions projects/password-strength-meter/zxcvbn/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"ngPackage": {
"lib": {
"entryFile": "./public-api.ts"
}
},
"peerDependencies": {
"@zxcvbn-ts/core": "^2.0.1",
"@zxcvbn-ts/language-en": "^2.0.1"
"ngPackage": {
"lib": {
"entryFile": "./public-api.ts"
}
}
},
"peerDependencies": {
"@zxcvbn-ts/core": "^2.2.1",
"@zxcvbn-ts/language-en": "^2.1.0"
}
}
Loading