Skip to content

Commit

Permalink
BREAKING CHANGE: Angular v12, SweetAlert2 v11 (#190)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Angular v12, SweetAlert2 v11
  • Loading branch information
Limon Monte authored and Limon Monte committed May 15, 2021
1 parent 5fc76d0 commit 86a8f71
Show file tree
Hide file tree
Showing 6 changed files with 3,371 additions and 5,014 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run: yarn install

- name: Build library package
run: yarn build:lib --prod
run: yarn build:lib

- name: Copy readme and license files
run: yarn build:copy-files
Expand All @@ -32,6 +32,9 @@ jobs:
- name: Show package.json
run: cat dist/ngx-sweetalert2/package.json

- name: Build library package for publishing
run: yarn build:lib --configuration production

- name: Run automated release process with semantic-release
if: github.event_name == 'push' && contains(github.ref, 'master')
env:
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ npm install sweetalert2 @sweetalert2/ngx-sweetalert2

| Angular version | Latest compatible version range | Required SweetAlert2 version range |
|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| Angular 9 to 11 | @sweetalert2/ngx-sweetalert2@**^9.0.0** (current) | sweetalert2@**^10.8.0** |
| Angular 12 | @sweetalert2/ngx-sweetalert2@**^10.0.0** (current) | sweetalert2@**^11.0.0** |
| Angular 9 to 11 | [@sweetalert2/ngx-sweetalert2@**~7.3.0**](https://github.com/sweetalert2/ngx-sweetalert2/tree/v9.0.0#readme) | sweetalert2@**^10.8.0** |
| Angular 8 | [@sweetalert2/ngx-sweetalert2@**~7.3.0**](https://github.com/sweetalert2/ngx-sweetalert2/tree/v7.3.0#readme) (:warning: NOT ~7.4.0, broken AoT metadata) | sweetalert2@**^9.7.0** |
| Angular 7 | [@sweetalert2/ngx-sweetalert2@**^5.1.0**](https://github.com/sweetalert2/ngx-sweetalert2/tree/v5.1.0#readme) | sweetalert2@**^8.5.0** |
| Angular 6 | [@sweetalert2/ngx-sweetalert2@**^5.1.0**](https://github.com/sweetalert2/ngx-sweetalert2/tree/v5.1.0#readme) | sweetalert2@**^8.5.0** |
Expand Down Expand Up @@ -204,7 +205,7 @@ You can catch other modal lifecycle events than (confirm), (deny) or (cancel):
```

```typescript
export class MyComponent {
export class MyComponent {
public swalWillOpen(event: WillOpenEvent): void {
// Most events (those using $event in the example above) will let you access the modal native DOM node, like this:
console.log(event.modalElement);
Expand Down
42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,40 +24,40 @@
},
"private": true,
"dependencies": {
"@angular/animations": "~11.0.5",
"@angular/common": "~11.0.5",
"@angular/compiler": "~11.0.5",
"@angular/core": "~11.0.5",
"@angular/forms": "~11.0.5",
"@angular/platform-browser": "~11.0.5",
"@angular/platform-browser-dynamic": "~11.0.5",
"@angular/router": "~11.0.5",
"@angular/animations": "~12.0.0",
"@angular/common": "~12.0.0",
"@angular/compiler": "~12.0.0",
"@angular/core": "~12.0.0",
"@angular/forms": "~12.0.0",
"@angular/platform-browser": "~12.0.0",
"@angular/platform-browser-dynamic": "~12.0.0",
"@angular/router": "~12.0.0",
"rxjs": "~6.6.7",
"sweetalert2": "^10.16.6",
"sweetalert2": "^11.0.0",
"tslib": "^2.2.0",
"zone.js": "~0.10.3"
"zone.js": "~0.11.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.1100.5",
"@angular/cli": "~11.0.5",
"@angular/compiler-cli": "~11.0.5",
"@angular/language-service": "~11.0.5",
"@types/jasmine": "~3.6.10",
"@angular-devkit/build-angular": "~12.0.0",
"@angular/cli": "~12.0.0",
"@angular/compiler-cli": "~12.0.0",
"@angular/language-service": "~12.0.0",
"@types/jasmine": "^3.6.10",
"@types/jasminewd2": "~2.0.8",
"@types/node": "^14.14.43",
"@types/node": "^15.0.0",
"codelyzer": "^6.0.1",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~6.0.0",
"karma": "~5.2.3",
"jasmine-core": "^3.6.0",
"jasmine-spec-reporter": "^7.0.0",
"karma": "^6.0.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"ng-packagr": "^11.2.4",
"ng-packagr": "^12.0.0",
"npm-run-all": "^4.1.5",
"semantic-release": "^17.4.2",
"ts-node": "~9.1.1",
"tslint": "~6.1.0",
"typescript": "~4.0.7"
"typescript": "~4.2.0"
}
}
6 changes: 3 additions & 3 deletions projects/ngx-sweetalert2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"tslib": "^2.0.0"
},
"peerDependencies": {
"@angular/common": ">=9.0.0",
"@angular/core": ">=9.0.0",
"sweetalert2": "^10.8.0"
"@angular/common": ">=12.0.0",
"@angular/core": ">=12.0.0",
"sweetalert2": "^11.0.0"
}
}
2 changes: 0 additions & 2 deletions projects/ngx-sweetalert2/src/lib/swal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ export class SwalComponent implements OnInit, AfterViewInit, OnChanges, OnDestro
@Input() public customClass: SweetAlertOptions['customClass'];
@Input() public timer: SweetAlertOptions['timer'];
@Input() public timerProgressBar: SweetAlertOptions['timerProgressBar'];
/** @deprecated Use showClass and hideClass instead */
@Input() public animation: SweetAlertOptions['animation'];
@Input() public heightAuto: SweetAlertOptions['heightAuto'];
@Input() public allowOutsideClick: SweetAlertOptions['allowOutsideClick'];
@Input() public allowEscapeKey: SweetAlertOptions['allowEscapeKey'];
Expand Down
Loading

0 comments on commit 86a8f71

Please sign in to comment.