Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng-recaptcha

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-recaptcha - npm Package Compare versions

Comparing version 4.3.0 to 5.0.0-beta.1

dist/bundles/ng-recaptcha.umd.js

17

CHANGELOG.md

@@ -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)

26

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc