Skip to content

Commit

Permalink
chore(deps): angular updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Celtian committed Oct 18, 2024
1 parent 3b01d3a commit 70eec92
Show file tree
Hide file tree
Showing 18 changed files with 3,838 additions and 4,501 deletions.
2 changes: 1 addition & 1 deletion .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["@commitlint/config-conventional"],
"extends": ["@commitlint/config-angular"],
"rules": {
"type-enum": [2, "always", ["ci", "chore", "docs", "feat", "fix", "perf", "refactor", "revert", "style"]]
}
Expand Down
6 changes: 3 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
## Describe your changes
## ✍️ Describe your changes

_None_

## Issue ticket number and link
## 🔗 Issue ticket number and link

_None_

## Checklist before requesting a review
## Checklist before requesting a review

- [ ] I have performed a self-review of my code.
- [ ] If it is a core feature, I have added thorough tests.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: 🗜️ Setup node version
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
registry-url: 'https://registry.npmjs.org'

- name: 🛠️ Install
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta') == false
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
registry-url: https://npm.pkg.github.com/
scope: '@celtian'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: 🗜️ Setup node version
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
registry-url: 'https://registry.npmjs.org'

- name: 🛠️ Install
Expand Down
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install commitlint --edit
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged --relative
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
22
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

> Angular module that provides version to your language files
> _Angular 17 compatible_
> _Angular 18 compatible_
Here's the [demo](http://celtian.github.io/ngx-translate-version/)

Expand Down Expand Up @@ -75,15 +75,16 @@ or module

| Angular | ngx-translate-version | Install |
| ------- | --------------------- | ---------------------------------- |
| 17 | 2.x | `yarn add ngx-translate-version` |
| 18 | 3.x | `yarn add ngx-translate-version` |
| 17 | 2.x | `yarn add ngx-translate-version@2` |
| 16 | 1.x | `yarn add ngx-translate-version@1` |
| 15 | 0.x | `yarn add ngx-translate-version@0` |

## Peer Dependencies

```
"@angular/common": ">=17",
"@angular/core": ">=17",
"@angular/common": ">=18",
"@angular/core": ">=18",
"@gilsdav/ngx-translate-router-http-loader": ">=2",
"@gilsdav/ngx-translate-router": ">=7",
"@ngx-translate/core": ">=15",
Expand Down
75 changes: 37 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"script:sync-projects": "yarn tsx ./scripts/sync-projects.ts",
"script:gpr-setup": "yarn tsx ./scripts/gpr-setup.ts",
"postinstall": "yarn script:create-version",
"prepare": "husky install",
"prepare": "husky",
"version": "yarn script:sync-projects && git add projects/ngx-translate-version/ && auto-changelog -p && git add CHANGELOG.md",
"postversion": "git push && git push --follow-tags",
"publish:beta": "yarn && yarn build && npm publish --folder dist --tag beta",
Expand All @@ -32,55 +32,54 @@
"fix-vulnerabilities": "npx yarn-audit-fix && npx browserslist --update-db"
},
"dependencies": {
"@angular/animations": "^17.1.3",
"@angular/common": "^17.1.3",
"@angular/compiler": "^17.1.3",
"@angular/core": "^17.1.3",
"@angular/forms": "^17.1.3",
"@angular/platform-browser": "^17.1.3",
"@angular/platform-browser-dynamic": "^17.1.3",
"@angular/router": "^17.1.3",
"@gilsdav/ngx-translate-router": "^7.0.0",
"@angular/animations": "^18.2.8",
"@angular/common": "^18.2.8",
"@angular/compiler": "^18.2.8",
"@angular/core": "^18.2.8",
"@angular/forms": "^18.2.8",
"@angular/platform-browser": "^18.2.8",
"@angular/platform-browser-dynamic": "^18.2.8",
"@angular/router": "^18.2.8",
"@gilsdav/ngx-translate-router": "^7.2.1",
"@gilsdav/ngx-translate-router-http-loader": "^2.0.0",
"@ngx-translate/core": "^15.0.0",
"@ngx-translate/http-loader": "^8.0.0",
"rxjs": "^7.8.1",
"tslib": "^2.6.2",
"zone.js": "^0.14.2"
"tslib": "^2.8.0",
"zone.js": "^0.14.10"
},
"devDependencies": {
"@angular-devkit/build-angular": "^17.1.3",
"@angular-eslint/builder": "17.2.1",
"@angular-eslint/eslint-plugin": "17.2.1",
"@angular-eslint/eslint-plugin-template": "17.2.1",
"@angular-eslint/schematics": "17.2.1",
"@angular-eslint/template-parser": "17.2.1",
"@angular/cli": "^17.1.3",
"@angular/compiler-cli": "^17.1.3",
"@angular/language-service": "^17.1.3",
"@commitlint/cli": "^18.6.0",
"@commitlint/config-conventional": "^18.6.0",
"@angular-devkit/build-angular": "^18.2.9",
"@angular-eslint/builder": "18.3.1",
"@angular-eslint/eslint-plugin": "18.3.1",
"@angular-eslint/eslint-plugin-template": "18.3.1",
"@angular-eslint/schematics": "18.3.1",
"@angular-eslint/template-parser": "18.3.1",
"@angular/cli": "^18.2.9",
"@angular/compiler-cli": "^18.2.8",
"@angular/language-service": "^18.2.8",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-angular": "^19.5.0",
"@types/jasmine": "^5.1.4",
"@types/jasminewd2": "^2.0.13",
"@types/node": "^20.11.17",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"auto-changelog": "^2.4.0",
"eslint": "^8.56.0",
"husky": "^9.0.10",
"jasmine-core": "^5.1.2",
"@types/node": "^22.7.6",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"auto-changelog": "^2.5.0",
"eslint": "^8.57.0",
"husky": "^9.1.6",
"jasmine-core": "^5.4.0",
"jasmine-spec-reporter": "^7.0.0",
"karma": "^6.4.2",
"karma": "^6.4.4",
"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.2",
"ng-packagr": "^17.1.2",
"prettier": "^3.2.5",
"protractor": "~7.0.0",
"tsx": "^4.7.1",
"typescript": "^5.3.3"
"lint-staged": "^15.2.10",
"ng-packagr": "^18.2.1",
"prettier": "^3.3.3",
"tsx": "^4.19.1",
"typescript": "5.5.4"
},
"peerDependencies": {},
"homepage": "https://github.com/Celtian/ngx-translate-version",
Expand All @@ -102,7 +101,7 @@
"dist"
],
"engines": {
"node": ">=20 <24",
"node": ">=22 <24",
"npm": "please-use-yarn"
},
"publishConfig": {
Expand Down
30 changes: 0 additions & 30 deletions projects/demo/e2e/protractor.conf.js

This file was deleted.

25 changes: 0 additions & 25 deletions projects/demo/e2e/src/app.e2e-spec.ts

This file was deleted.

11 changes: 0 additions & 11 deletions projects/demo/e2e/src/app.po.ts

This file was deleted.

9 changes: 0 additions & 9 deletions projects/demo/e2e/tsconfig.json

This file was deleted.

6 changes: 3 additions & 3 deletions projects/ngx-translate-version/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"license": "MIT",
"description": "Angular module that provides version to your language files",
"peerDependencies": {
"@angular/common": ">=17",
"@angular/core": ">=17",
"@angular/common": ">=18",
"@angular/core": ">=18",
"@gilsdav/ngx-translate-router-http-loader": ">=2",
"@gilsdav/ngx-translate-router": ">=7",
"@ngx-translate/core": ">=15",
Expand All @@ -38,4 +38,4 @@
"engines": {
"node": ">=18"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { APP_BASE_HREF, Location, PlatformLocation } from '@angular/common';
import { HttpClient, HttpClientModule } from '@angular/common/http';
import { HttpClient, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { EnvironmentProviders, importProvidersFrom, makeEnvironmentProviders } from '@angular/core';
import { Route } from '@angular/router';
import { LocalizeParser, LocalizeRouterModule, LocalizeRouterSettings } from '@gilsdav/ngx-translate-router';
Expand All @@ -18,8 +18,8 @@ export const provideTranslateVersion = (
config: Partial<NgxTranslateVersionConfig>
): EnvironmentProviders => {
return makeEnvironmentProviders([
provideHttpClient(withInterceptorsFromDi()),
importProvidersFrom(
HttpClientModule,
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-translate-version/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"declaration": true,
"inlineSources": true,
"types": [],
"lib": ["dom", "es2018"]
"lib": ["dom", "ES2022"]
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"module": "es2020",
"module": "ES2022",
"moduleResolution": "node",
"importHelpers": true,
"target": "ES2022",
"lib": ["es2018", "dom"],
"lib": ["ES2022", "dom"],
"paths": {
"ngx-translate-version": ["dist/ngx-translate-version"],
"ngx-translate-version/*": ["dist/ngx-translate-version/*"]
Expand Down
Loading

0 comments on commit 70eec92

Please sign in to comment.