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

Ng17 #54

Merged
merged 7 commits into from
Dec 13, 2023
Merged

Ng17 #54

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
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: Cache node modules
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Use GPR
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
registry-url: https://npm.pkg.github.com/
scope: '@bartholomej'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@master
with:
node-version: 18
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: Cache node modules
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
20
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"[typescript]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
"source.organizeImports": "explicit"
}
},
"editor.formatOnSave": true,
Expand Down
9 changes: 5 additions & 4 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 16, Ivy and Angular Universal (SSR) compatible_
> ✓ _Angular 17, Ivy and Angular Universal (SSR) 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,14 +19,15 @@ 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 16. See compatibility table
npm install ngx-translate-cut # For Angular 17. See compatibility table
```

Choose the version corresponding to your Angular version:

| Angular | ngx-translate-cut | Install |
| ------------------- | ----------------- | --------------------------------- |
| **ng16** | 5.x | `npm install ngx-translate-cut` |
| **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` |
Expand Down Expand Up @@ -143,7 +144,7 @@ yarn release:patch

## License

Copyright © 2022 [Lukas Bartak](http://bartweb.cz)
Copyright © 2023 [Lukas Bartak](http://bartweb.cz)

Proudly powered by nature 🗻, wind 💨, tea 🍵 and beer 🍺 ;)

Expand Down
8 changes: 3 additions & 5 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
"projects/demo/src/styles.css"
],
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
Expand All @@ -90,7 +89,6 @@
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
Expand All @@ -110,18 +108,18 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "demo:build"
"buildTarget": "demo:build"
},
"configurations": {
"production": {
"browserTarget": "demo:build:production"
"buildTarget": "demo:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "demo:build"
"buildTarget": "demo:build"
}
},
"test": {
Expand Down
74 changes: 37 additions & 37 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-translate-cut",
"version": "5.0.0",
"version": "16.0.0",
"description": "Angular pipe for cutting translations (plugin for ngx-translate)",
"author": "Lukas Bartak <[email protected]> (https://github.com/bartholomej)",
"scripts": {
Expand Down Expand Up @@ -29,40 +29,40 @@
"prepare": "husky install"
},
"dependencies": {
"@angular/animations": "^16.2.3",
"@angular/common": "^16.2.3",
"@angular/compiler": "^16.2.3",
"@angular/core": "^16.2.3",
"@angular/forms": "^16.2.3",
"@angular/platform-browser": "^16.2.3",
"@angular/platform-browser-dynamic": "^16.2.3",
"@angular/router": "^16.2.3",
"@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",
"@ngx-translate/core": "^15.0.0",
"@ngx-translate/http-loader": "^8.0.0",
"rxjs": "~7.8.0",
"rxjs": "~7.8.1",
"tslib": "^2.3.1",
"zone.js": "~0.13.1"
"zone.js": "~0.14.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "^16.2.1",
"@angular-eslint/builder": "16.1.1",
"@angular-eslint/eslint-plugin": "16.1.1",
"@angular-eslint/eslint-plugin-template": "16.1.1",
"@angular-eslint/schematics": "16.1.1",
"@angular-eslint/template-parser": "16.1.1",
"@angular/cli": "^16.2.1",
"@angular/compiler-cli": "^16.2.3",
"@angular/language-service": "^16.2.3",
"@biesbjerg/ngx-translate-extract": "^7.0.4",
"@types/fs-extra": "^11.0.1",
"@types/jasmine": "~4.3.5",
"@types/jasminewd2": "~2.0.10",
"@types/node": "^20.5.7",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
"eslint": "^8.39.0",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-jsdoc": "46.5.1",
"@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",
"@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",
"eslint-plugin-prefer-arrow": "latest",
"husky": "^8.0.3",
"jasmine-core": "~5.1.1",
Expand All @@ -72,13 +72,13 @@
"karma-coverage": "^2.2.1",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "^2.1.0",
"lint-staged": "^14.0.1",
"ng-packagr": "^16.2.2",
"prettier": "^3.0.3",
"lint-staged": "^15.2.0",
"ng-packagr": "^17.0.2",
"prettier": "^3.1.1",
"protractor": "~7.0.0",
"ts-node": "~10.9.1",
"ts-node": "~10.9.2",
"tslint-config-prettier": "^1.18.0",
"typescript": "~5.1.6"
"typescript": "~5.2.2"
},
"homepage": "https://github.com/bartholomej/ngx-translate-cut",
"license": "MIT",
Expand Down Expand Up @@ -106,9 +106,9 @@
"dist"
],
"engines": {
"node": ">=16.14.0"
"node": ">=18.13.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
}
}
}
18 changes: 13 additions & 5 deletions projects/demo/.browserslistrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.

# For additional information regarding the format and rule options, please see:

# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:

# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
# npx browserslist

> 0.5%
last 2 versions
# npx browserslist

last 2 Chrome versions
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not dead
not IE 9-11 # For IE 9-11 support, remove 'not'.
8 changes: 4 additions & 4 deletions projects/demo/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ <h2>{{ 'heading.translation' | translate }}</h2>
<h2>{{ 'heading.example' | translate }}</h2>
<div class="terminal">
<pre ngNonBindable>
{{ 'demo' | translate | <strong>translateCut:0</strong> }}
{{ 'demo' | translate | <strong>translateCut:0</strong> &#125;&#125;

&lt;strong&gt;
{{ 'demo' | translate | <strong>translateCut:1</strong> }}
{{ 'demo' | translate | <strong>translateCut:1</strong> &#125;&#125;
&lt;/strong&gt;

{{ 'demo' | translate | <strong>translateCut:2</strong> }}
{{ 'demo' | translate | <strong>translateCut:2</strong> &#125;&#125;

&lt;a href="#"&gt;
{{ 'demo' | translate | <strong>translateCut:3</strong> }}
{{ 'demo' | translate | <strong>translateCut:3</strong> &#125;&#125;
&lt;/a&gt;
</pre>
</div>
Expand Down
9 changes: 5 additions & 4 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 16, Ivy and Angular Universal (SSR) compatible_
> ✓ _Angular 17, Ivy and Angular Universal (SSR) 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,14 +19,15 @@ 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 16. See compatibility table
npm install ngx-translate-cut # For Angular 17. See compatibility table
```

Choose the version corresponding to your Angular version:

| Angular | ngx-translate-cut | Install |
| ------------------- | ----------------- | --------------------------------- |
| **ng16** | 5.x | `npm install ngx-translate-cut` |
| **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` |
Expand Down Expand Up @@ -143,7 +144,7 @@ yarn release:patch

## License

Copyright &copy; 2022 [Lukas Bartak](http://bartweb.cz)
Copyright &copy; 2023 [Lukas Bartak](http://bartweb.cz)

Proudly powered by nature 🗻, wind 💨, tea 🍵 and beer 🍺 ;)

Expand Down
8 changes: 4 additions & 4 deletions projects/ngx-translate-cut/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "ngx-translate-cut",
"version": "5.0.0",
"version": "16.0.0",
"description": "Angular pipe for cutting translations (plugin for ngx-translate)",
"author": "Lukas Bartak <[email protected]> (https://github.com/bartholomej)",
"peerDependencies": {
"@angular/common": ">=16 <17",
"@angular/core": ">=16 <17",
"@angular/common": ">=17 <18",
"@angular/core": ">=17 <18",
"@ngx-translate/core": ">=15 <16"
},
"homepage": "https://github.com/bartholomej/ngx-translate-cut",
Expand All @@ -27,7 +27,7 @@
"ngx-translate"
],
"engines": {
"node": ">=16.14.0"
"node": ">=18.13.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
Expand Down
Loading