ng-recaptcha
Advanced tools
Comparing version 4.3.0 to 5.0.0-beta.1
@@ -0,1 +1,18 @@ | ||
<a name="5.0.0-beta.1"></a> | ||
# [5.0.0-beta.1](https://github.com/DethAriel/ng-recaptcha/compare/v4.3.0...v5.0.0-beta.1) (2019-06-04) | ||
### Features | ||
* **component:** make Angular 8.0.0 a supported peer dependency ([f003ff2](https://github.com/DethAriel/ng-recaptcha/commit/f003ff2)) | ||
* **package:** implement Angular Package format ([71340c4](https://github.com/DethAriel/ng-recaptcha/commit/71340c4)) | ||
### BREAKING CHANGES | ||
* **package:** * `ng-recaptcha/forms` entry point has been removed. `RecaptchaFormsModule` and `RecaptchaValueAccessorDirective` should now be imported directly from `ng-recaptcha` | ||
* `tslib` is now a package dependency to ensure minimum possible bundle size. If your project doesn't yet have a dependency on `tslib`, run `npm install -D tslib@^1.9.0` (or `yarn add -D tslib@^1.9.0` if you use yarn) | ||
<a name="4.3.0"></a> | ||
@@ -2,0 +19,0 @@ # [4.3.0](https://github.com/DethAriel/ng-recaptcha/compare/v4.3.0-beta.1...v4.3.0) (2019-06-04) |
{ | ||
"name": "ng-recaptcha", | ||
"version": "4.3.0", | ||
"version": "5.0.0-beta.1", | ||
"description": "Angular component for Google reCAPTCHA", | ||
"scripts": { | ||
"demo": "yarn demo:serve", | ||
"demo:serve": "cd demo && yarn start", | ||
"demo": "cd demo && yarn serve", | ||
"demo:install": "cd demo && yarn install", | ||
"demo:clean": "cd demo && yarn clean:all", | ||
"demo:build": "cd demo && yarn build", | ||
"demo:publish": "yarn demo:publish-gh-pages", | ||
"demo:publish-gh-pages": "gh-pages -d demo/dist/ng-recaptcha", | ||
"pack-latest": "yarn transpile && mv \"$(npm pack)\" ng-recaptcha-latest.tgz", | ||
"transpile": "ngc -p ./tsconfig.json", | ||
"clean": "del-cli './{recaptcha/,index,forms}*.{js,d.ts,js.map,metadata.json}' 'ng-recaptcha-*.tgz'", | ||
"pack-latest": "yarn clean && yarn transpile && cd dist && mv \"$(npm pack)\" ../ng-recaptcha-latest.tgz", | ||
"transpile": "ng-packagr -p ./tsconfig.json", | ||
"clean": "del-cli 'ng-recaptcha-*.tgz' && yarn demo:clean", | ||
"changelog": "conventional-changelog --preset angular --infile CHANGELOG.md --same-file", | ||
@@ -18,3 +19,3 @@ "github-release": "conventional-github-releaser --preset angular", | ||
"push-release": "git push && git push --tags", | ||
"version": "yarn changelog && git add CHANGELOG.md && yarn demo:build && git add demo/yarn.lock", | ||
"version": "yarn changelog && git add CHANGELOG.md && yarn demo:build && git add demo/*/yarn.lock", | ||
"lint:prod": "tslint --project ./tsconfig.json --type-check", | ||
@@ -39,7 +40,15 @@ "lint": "yarn lint:prod --force", | ||
"license": "MIT", | ||
"ngPackage": { | ||
"lib": { | ||
"entryFile": "index.ts" | ||
} | ||
}, | ||
"optionalDependencies": { | ||
"@types/grecaptcha": "^2.0.33" | ||
}, | ||
"dependencies": { | ||
"tslib": "^1.9.0" | ||
}, | ||
"peerDependencies": { | ||
"@angular/core": "^6.0.0 || ^7.0.0" | ||
"@angular/core": "^6.0.0 || ^7.0.0 || ^8.0.0" | ||
}, | ||
@@ -61,2 +70,3 @@ "devDependencies": { | ||
"husky": "^0.13.3", | ||
"ng-packagr": "^5.2.0", | ||
"npm-run-all": "^4.1.2", | ||
@@ -63,0 +73,0 @@ "rxjs": "^6.1.0", |
@@ -50,3 +50,3 @@ # Angular component for Google reCAPTCHA | ||
// if you need forms support: | ||
// import { RecaptchaFormsModule } from 'ng-recaptcha/forms'; | ||
// import { RecaptchaModule, RecaptchaFormsModule } from 'ng-recaptcha'; | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
@@ -152,4 +152,3 @@ import { MyApp } from './app.component.ts'; | ||
```typescript | ||
import { RecaptchaModule } from 'ng-recaptcha'; | ||
import { RecaptchaFormsModule } from 'ng-recaptcha/forms'; | ||
import { RecaptchaModule, RecaptchaFormsModule } from 'ng-recaptcha'; | ||
``` | ||
@@ -161,6 +160,2 @@ | ||
If you do not rely on | ||
Angular forms in your project, you should use the "no-forms" module version, as | ||
it does not require the `@angular/forms` package to be bundled with your code. | ||
## <a name="api"></a>API | ||
@@ -291,3 +286,3 @@ | ||
It's very easy to put `<re-captcha>` in an Angular form and have it `require`d - just | ||
add the `required` attribute to the `<re-captcha>` element. Do not forget to import `RecaptchaFormsModule` from `'ng-recaptcha/forms'`! | ||
add the `required` attribute to the `<re-captcha>` element. Do not forget to import `RecaptchaFormsModule` from `'ng-recaptcha'`! | ||
@@ -294,0 +289,0 @@ ```typescript |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
277090
72
2971
3
20
1
1
2
482
1
+ Addedtslib@^1.9.0
+ Added@angular/core@8.2.14(transitive)
+ Addedzone.js@0.9.1(transitive)
- Removed@angular/core@7.2.16(transitive)
- Removedzone.js@0.8.29(transitive)