Skip to content

Commit

Permalink
BREAKING CHANGE: Angular 14 support
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Angular 14 support
  • Loading branch information
limonte committed Oct 1, 2022
1 parent a20d830 commit b78deca
Show file tree
Hide file tree
Showing 3 changed files with 2,675 additions and 2,808 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

This is not a regular API wrapper for SweetAlert (which already works very well alone), it intends to provide Angular-esque utilities on top of it.

:point_right: **Version 9 is out!** To upgrade from v8.x, [read the release notes!](https://github.com/sweetalert2/ngx-sweetalert2/releases/tag/v9.0.0)

:point_right: **Before posting an issue**, please check that the problem isn't on SweetAlert's side.

----------------
Expand Down Expand Up @@ -52,20 +50,19 @@ npm install sweetalert2 @sweetalert2/ngx-sweetalert2

:arrow_double_up: Always upgrade SweetAlert2 when you upgrade ngx-sweetalert2. The latter is statically linked with SweetAlert2's type definitions.

<details>
<summary><b>Angular and SweetAlert2 versions compatibility table</b> (click to show)</summary>
## Angular and SweetAlert2 versions compatibility table

| Angular version | Latest compatible version range | Required SweetAlert2 version range |
|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| Angular 12+ | @sweetalert2/ngx-sweetalert2@**^11.0.0** (current) | sweetalert2@**^11.0.0** |
| Angular 14+ | @sweetalert2/ngx-sweetalert2@**^12.0.0** (current) | sweetalert2@**^11.0.0** |
| Angular 12, 13 | [@sweetalert2/ngx-sweetalert2@**^11.0.0**](https://github.com/sweetalert2/ngx-sweetalert2/tree/v11.0.0#readme) | sweetalert2@**^11.0.0** |
| Angular 9 to 11 | [@sweetalert2/ngx-sweetalert2@**~9.0.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** |
| Angular 5 | [@sweetalert2/ngx-sweetalert2@**^5.1.0**](https://github.com/sweetalert2/ngx-sweetalert2/tree/v5.1.0#readme) | sweetalert2@**^8.5.0** |
| Angular 4 | [@toverux/ngx-sweetalert2@**^3.4.0**](https://github.com/sweetalert2/ngx-sweetalert2/tree/v3.4.0#readme) | sweetalert2@**^7.15.1** |
| Angular 2 | Try Angular 4 versions requirements, or older versions like @toverux/ngsweetalert2 | unknown |
</details>

2) Import the module:

Expand Down
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,38 +23,38 @@
},
"private": true,
"dependencies": {
"@angular/animations": "~13.2.7",
"@angular/common": "~13.2.7",
"@angular/compiler": "~13.2.7",
"@angular/core": "~13.2.7",
"@angular/forms": "~13.2.7",
"@angular/platform-browser": "~13.2.7",
"@angular/platform-browser-dynamic": "~13.2.7",
"@angular/router": "~13.2.7",
"rxjs": "~7.5.6",
"sweetalert2": "^11.4.33",
"tslib": "^2.3.1",
"@angular/animations": "~14.2.4",
"@angular/common": "~14.2.4",
"@angular/compiler": "~14.2.4",
"@angular/core": "~14.2.4",
"@angular/forms": "~14.2.4",
"@angular/platform-browser": "~14.2.4",
"@angular/platform-browser-dynamic": "~14.2.4",
"@angular/router": "~14.2.4",
"rxjs": "~7.5.7",
"sweetalert2": "^11.4.36",
"tslib": "^2.4.0",
"zone.js": "~0.11.8"
},
"devDependencies": {
"@angular-devkit/build-angular": "~13.2.6",
"@angular/cli": "~13.2.6",
"@angular/compiler-cli": "~13.2.7",
"@angular/language-service": "~13.2.7",
"@angular-devkit/build-angular": "~14.2.4",
"@angular/cli": "~14.2.4",
"@angular/compiler-cli": "~14.2.4",
"@angular/language-service": "~14.2.4",
"@types/jasmine": "^4.3.0",
"@types/jasminewd2": "~2.0.10",
"@types/node": "^17.0.45",
"@types/node": "^18.7.23",
"jasmine-core": "^4.4.0",
"jasmine-spec-reporter": "^7.0.0",
"karma": "^6.4.0",
"karma": "^6.4.1",
"karma-chrome-launcher": "~3.1.1",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-coverage-istanbul-reporter": "~3.0.3",
"karma-jasmine": "^5.1.0",
"karma-jasmine-html-reporter": "^1.7.0",
"ng-packagr": "^13.3.0",
"karma-jasmine-html-reporter": "^2.0.0",
"ng-packagr": "^14.2.1",
"npm-run-all": "^4.1.5",
"semantic-release": "^19.0.5",
"ts-node": "~10.5.0",
"typescript": "~4.5.5"
"ts-node": "~10.9.1",
"typescript": "~4.8.4"
}
}

0 comments on commit b78deca

Please sign in to comment.