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

Angular 18 update 🎉 #56

Merged
merged 6 commits into from
Jun 7, 2024
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
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
registry-url: 'https://registry.npmjs.org'

- name: Cache node modules
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
Expand Down Expand Up @@ -54,9 +54,9 @@ jobs:
run: yarn gpr:setup

- name: Use GPR
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
registry-url: https://npm.pkg.github.com/
scope: '@bartholomej'

Expand All @@ -68,7 +68,7 @@ jobs:
NODE_AUTH_TOKEN: ${{github.token}}

- name: Deploy Github Pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./dist/demo
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@master
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
registry-url: 'https://registry.npmjs.org'

- name: Cache node modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
run: bash <(curl -s https://codecov.io/bash)

- name: Deploy Github Pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./dist/demo
7 changes: 2 additions & 5 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"**/*.{js,ts,html}": [
"prettier --write",
"eslint --fix"
],
"**/*.{css,scss}": [
"**/*.{ts}": [
"eslint --cache --fix",
"prettier --write"
]
}
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

> Angular pipe for cutting translations ✂️ 🌍 (plugin for [@ngx-translate](https://github.com/ngx-translate/core))

> ✓ _Angular 17, Ivy and Angular Universal (SSR) compatible_
> ✓ _Angular 18, Ivy, Angular Universal (SSR) and Zoneless compatible_

Here's the [demo](http://bartholomej.github.io/ngx-translate-cut/) or [stackblitz live preview](https://stackblitz.com/edit/ngx-translate-cut)

Expand All @@ -19,20 +19,21 @@ Here's the [demo](http://bartholomej.github.io/ngx-translate-cut/) or [stackblit
2. Use `npm` (or `yarn`) to install the package

```bash
npm install ngx-translate-cut # For Angular 17. See compatibility table
npm install ngx-translate-cut # For Angular 18. See compatibility table
```

Choose the version corresponding to your Angular version:

| Angular | ngx-translate-cut | Install |
| ------------------- | ----------------- | --------------------------------- |
| **ng17** | 17.x | `npm install ngx-translate-cut` |
| **ng16** | 5.x | `npm install ngx-translate-cut@5` |
| **ng15** | 4.x | `npm install ngx-translate-cut@4` |
| **ng14** | 3.x | `npm install ngx-translate-cut@3` |
| **ng13** | 3.x | `npm install ngx-translate-cut@3` |
| **ng12** (ivy only) | 2.x | `npm install ngx-translate-cut@2` |
| >= 5 =< 12 | 1.x | `npm install ngx-translate-cut@1` |
| Angular | ngx-translate-cut | Install |
| ------------------- | ----------------- | ---------------------------------- |
| **ng18** | 18.x | `npm install ngx-translate-cut` |
| **ng17** | 17.x | `npm install ngx-translate-cut@17` |
| **ng16** | 5.x | `npm install ngx-translate-cut@5` |
| **ng15** | 4.x | `npm install ngx-translate-cut@4` |
| **ng14** | 3.x | `npm install ngx-translate-cut@3` |
| **ng13** | 3.x | `npm install ngx-translate-cut@3` |
| **ng12** (ivy only) | 2.x | `npm install ngx-translate-cut@2` |
| >= 5 =< 12 | 1.x | `npm install ngx-translate-cut@1` |

3. Add `NgxTranslateCutModule` into your module `imports`.

Expand Down
70 changes: 35 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,56 +29,56 @@
"prepare": "husky install"
},
"dependencies": {
"@angular/animations": "^17.0.6",
"@angular/common": "^17.0.6",
"@angular/compiler": "^17.0.6",
"@angular/core": "^17.0.6",
"@angular/forms": "^17.0.6",
"@angular/platform-browser": "^17.0.6",
"@angular/platform-browser-dynamic": "^17.0.6",
"@angular/router": "^17.0.6",
"@angular/animations": "^18.0.2",
"@angular/common": "^18.0.2",
"@angular/compiler": "^18.0.2",
"@angular/core": "^18.0.2",
"@angular/forms": "^18.0.2",
"@angular/platform-browser": "^18.0.2",
"@angular/platform-browser-dynamic": "^18.0.2",
"@angular/router": "^18.0.2",
"@ngx-translate/core": "^15.0.0",
"@ngx-translate/http-loader": "^8.0.0",
"rxjs": "~7.8.1",
"tslib": "^2.3.1",
"zone.js": "~0.14.2"
"tslib": "^2.6.3",
"zone.js": "~0.14.7"
},
"devDependencies": {
"@angular-devkit/build-angular": "^17.0.7",
"@angular-eslint/builder": "17.1.1",
"@angular-eslint/eslint-plugin": "17.1.1",
"@angular-eslint/eslint-plugin-template": "17.1.1",
"@angular-eslint/schematics": "17.1.1",
"@angular-eslint/template-parser": "17.1.1",
"@angular/cli": "^17.0.7",
"@angular/compiler-cli": "^17.0.6",
"@angular/language-service": "^17.0.6",
"@angular-devkit/build-angular": "^18.0.3",
"@angular-eslint/builder": "18.0.1",
"@angular-eslint/eslint-plugin": "18.0.1",
"@angular-eslint/eslint-plugin-template": "18.0.1",
"@angular-eslint/schematics": "18.0.1",
"@angular-eslint/template-parser": "18.0.1",
"@angular/cli": "^18.0.3",
"@angular/compiler-cli": "^18.0.2",
"@angular/language-service": "^18.0.2",
"@types/fs-extra": "^11.0.4",
"@types/jasmine": "~5.1.4",
"@types/jasminewd2": "~2.0.13",
"@types/node": "^20.10.4",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"@vendure/ngx-translate-extract": "^9.0.3",
"eslint": "^8.53.0",
"eslint-plugin-import": "2.29.0",
"eslint-plugin-jsdoc": "46.9.1",
"@types/node": "^20.14.2",
"@typescript-eslint/eslint-plugin": "^7.12.0",
"@typescript-eslint/parser": "^7.12.0",
"@vendure/ngx-translate-extract": "^9.1.1",
"eslint": "^9.4.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsdoc": "48.2.9",
"eslint-plugin-prefer-arrow": "latest",
"husky": "^8.0.3",
"jasmine-core": "~5.1.1",
"husky": "^9.0.11",
"jasmine-core": "~5.1.2",
"jasmine-spec-reporter": "~7.0.0",
"karma": "~6.4.2",
"karma": "~6.4.3",
"karma-chrome-launcher": "~3.2.0",
"karma-coverage": "^2.2.1",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "^2.1.0",
"lint-staged": "^15.2.0",
"ng-packagr": "^17.0.2",
"prettier": "^3.1.1",
"lint-staged": "^15.2.5",
"ng-packagr": "^18.0.0",
"prettier": "^3.3.1",
"protractor": "~7.0.0",
"ts-node": "~10.9.2",
"tslint-config-prettier": "^1.18.0",
"typescript": "~5.2.2"
"typescript": "~5.4.5"
},
"homepage": "https://github.com/bartholomej/ngx-translate-cut",
"license": "MIT",
Expand Down Expand Up @@ -106,9 +106,9 @@
"dist"
],
"engines": {
"node": ">=18.13.0"
"node": ">=20.11.1"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
}
}
}
23 changes: 12 additions & 11 deletions projects/ngx-translate-cut/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

> Angular pipe for cutting translations ✂️ 🌍 (plugin for [@ngx-translate](https://github.com/ngx-translate/core))

> ✓ _Angular 17, Ivy and Angular Universal (SSR) compatible_
> ✓ _Angular 18, Ivy, Angular Universal (SSR) and Zoneless compatible_

Here's the [demo](http://bartholomej.github.io/ngx-translate-cut/) or [stackblitz live preview](https://stackblitz.com/edit/ngx-translate-cut)

Expand All @@ -19,20 +19,21 @@ Here's the [demo](http://bartholomej.github.io/ngx-translate-cut/) or [stackblit
2. Use `npm` (or `yarn`) to install the package

```bash
npm install ngx-translate-cut # For Angular 17. See compatibility table
npm install ngx-translate-cut # For Angular 18. See compatibility table
```

Choose the version corresponding to your Angular version:

| Angular | ngx-translate-cut | Install |
| ------------------- | ----------------- | --------------------------------- |
| **ng17** | 17.x | `npm install ngx-translate-cut` |
| **ng16** | 5.x | `npm install ngx-translate-cut@5` |
| **ng15** | 4.x | `npm install ngx-translate-cut@4` |
| **ng14** | 3.x | `npm install ngx-translate-cut@3` |
| **ng13** | 3.x | `npm install ngx-translate-cut@3` |
| **ng12** (ivy only) | 2.x | `npm install ngx-translate-cut@2` |
| >= 5 =< 12 | 1.x | `npm install ngx-translate-cut@1` |
| Angular | ngx-translate-cut | Install |
| ------------------- | ----------------- | ---------------------------------- |
| **ng18** | 18.x | `npm install ngx-translate-cut` |
| **ng17** | 17.x | `npm install ngx-translate-cut@17` |
| **ng16** | 5.x | `npm install ngx-translate-cut@5` |
| **ng15** | 4.x | `npm install ngx-translate-cut@4` |
| **ng14** | 3.x | `npm install ngx-translate-cut@3` |
| **ng13** | 3.x | `npm install ngx-translate-cut@3` |
| **ng12** (ivy only) | 2.x | `npm install ngx-translate-cut@2` |
| >= 5 =< 12 | 1.x | `npm install ngx-translate-cut@1` |

3. Add `NgxTranslateCutModule` into your module `imports`.

Expand Down
Loading