Skip to content
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
2 changes: 1 addition & 1 deletion .github/actions/cached-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ runs:
- name: Cache dependencies
if: inputs.caching == 'true'
id: cache
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: 🗜️ Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: 🗜️ Setup node version
uses: actions/setup-node@v6
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 @@ -8,7 +8,7 @@ jobs:

steps:
- name: 🗜️ Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: 🗜️ Setup node version
uses: actions/setup-node@v6
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 - 2025 Celtian
Copyright (c) 2024 - 2026 Celtian

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

This library provides a way to make properties nullable in Angular templates.

> ✓ _Angular 21 compatible_
> ✓ _Angular 22 compatible_

Here's the [demo](http://celtian.github.io/ngx-nullable/)

Expand Down Expand Up @@ -113,13 +113,20 @@ class Example {
| **separator** | string | ', ' | The separator to use when joining multiple values |
| **displayZero** | boolean | true | Whether to display zero when the value is zero |

## 🔧 Compatibility

| Angular | ngx-fixed-footer | Install |
| ---------- | ---------------- | ----------------------------- |
| >= 22 | 1.x | `yarn add ngx-fixed-footer` |
| >= 18 < 21 | 0.x | `yarn add ngx-fixed-footer@0` |

## 📦 Dependencies

_None_

## 🪪 License

Copyright &copy; 2024 - 2025 [Dominik Hladik](https://github.com/Celtian)
Copyright &copy; 2024 - 2026 [Dominik Hladik](https://github.com/Celtian)

All contents are licensed under the [MIT license].

Expand Down
3 changes: 2 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"cli": {
"packageManager": "yarn"
"packageManager": "yarn",
"analytics": false
},
"schematics": {
"@schematics/angular": {
Expand Down
53 changes: 28 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,39 +33,42 @@
"fix-vulnerabilities": "npx yarn-audit-fix && npx browserslist --update-db"
},
"dependencies": {
"@angular/common": "^21.2.11",
"@angular/compiler": "^21.2.11",
"@angular/core": "^21.2.11",
"@angular/forms": "^21.2.11",
"@angular/platform-browser": "^21.2.11",
"@angular/router": "^21.2.11",
"@angular/common": "^22.0.2",
"@angular/compiler": "^22.0.2",
"@angular/core": "^22.0.2",
"@angular/forms": "^22.0.2",
"@angular/platform-browser": "^22.0.2",
"@angular/router": "^22.0.2",
"rxjs": "^7.8.2",
"tslib": "^2.8.1"
},
"devDependencies": {
"@angular-eslint/builder": "21.3.1",
"@angular/build": "^21.2.9",
"@angular/cli": "^21.2.9",
"@angular/compiler-cli": "^21.2.11",
"@commitlint/cli": "^20.5.3",
"@commitlint/config-angular": "^20.5.3",
"@eslint/js": "^9.39.2",
"@angular-eslint/builder": "22.0.0",
"@angular/build": "^22.0.4",
"@angular/cli": "^22.0.4",
"@angular/compiler-cli": "^22.0.2",
"@commitlint/cli": "^21.1.0",
"@commitlint/config-angular": "^21.1.0",
"@eslint/js": "^10.0.1",
"@types/fs-extra": "^11.0.4",
"@vitest/coverage-v8": "^4.1.5",
"angular-eslint": "21.3.1",
"auto-changelog": "^2.5.1",
"eslint": "^9.39.2",
"fs-extra": "^11.3.4",
"@vitest/coverage-v8": "^4.1.9",
"angular-eslint": "22.0.0",
"auto-changelog": "^2.6.0",
"eslint": "^10.5.0",
"fs-extra": "^11.3.5",
"husky": "^9.1.7",
"jsdom": "^29.1.1",
"lint-staged": "^16.4.0",
"lint-staged": "^17.0.8",
"madge": "^8.0.0",
"ng-packagr": "^21.2.3",
"prettier": "^3.8.3",
"tsx": "^4.21.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.59.2",
"vitest": "^4.1.5"
"ng-packagr": "^22.0.0",
"prettier": "^3.8.4",
"tsx": "^4.22.4",
"typescript": "^6.0.3",
"typescript-eslint": "^8.62.0",
"vitest": "^4.1.9"
},
"resolutions": {
"@typescript-eslint/utils": "8.62.0"
},
"packageManager": "yarn@1.22.22",
"engines": {
Expand Down
5 changes: 3 additions & 2 deletions projects/demo/src/app/app.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { Component, computed, inject, signal } from '@angular/core';
import { ChangeDetectionStrategy, Component, computed, inject, signal } from '@angular/core';
import { NgxNullableJoinPipe, NgxNullablePipe, NgxNullableService } from 'ngx-nullable';
import { VERSION } from '../environments/version';

@Component({
selector: 'app-root',
imports: [NgxNullablePipe, NgxNullableJoinPipe],
templateUrl: './app.html',
styleUrl: './app.css'
styleUrl: './app.css',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class App {
private readonly nullable = inject(NgxNullableService);
Expand Down
17 changes: 11 additions & 6 deletions projects/demo/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/app",
"rootDir": "../../",
"types": []
},
"include": [
"src/**/*.ts"
],
"exclude": [
"src/**/*.spec.ts"
]
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.spec.ts"],
"angularCompilerOptions": {
"extendedDiagnostics": {
"checks": {
"nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"
}
}
}
}
11 changes: 9 additions & 2 deletions projects/ngx-nullable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

This library provides a way to make properties nullable in Angular templates.

> ✓ _Angular 21 compatible_
> ✓ _Angular 22 compatible_

Here's the [demo](http://celtian.github.io/ngx-nullable/)

Expand Down Expand Up @@ -113,13 +113,20 @@ class Example {
| **separator** | string | ', ' | The separator to use when joining multiple values |
| **displayZero** | boolean | true | Whether to display zero when the value is zero |

## 🔧 Compatibility

| Angular | ngx-fixed-footer | Install |
| ---------- | ---------------- | ----------------------------- |
| >= 22 | 1.x | `yarn add ngx-fixed-footer` |
| >= 18 < 21 | 0.x | `yarn add ngx-fixed-footer@0` |

## 📦 Dependencies

_None_

## 🪪 License

Copyright &copy; 2024 - 2025 [Dominik Hladik](https://github.com/Celtian)
Copyright &copy; 2024 - 2026 [Dominik Hladik](https://github.com/Celtian)

All contents are licensed under the [MIT license].

Expand Down
4 changes: 2 additions & 2 deletions projects/ngx-nullable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"license": "MIT",
"description": "This library provides a way to make properties nullable in Angular templates.",
"peerDependencies": {
"@angular/common": ">=18",
"@angular/core": ">=18"
"@angular/common": ">=22",
"@angular/core": ">=22"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
Expand Down
16 changes: 10 additions & 6 deletions projects/ngx-nullable/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@
"declarationMap": true,
"types": []
},
"include": [
"src/**/*.ts"
],
"exclude": [
"**/*.spec.ts"
]
"include": ["src/**/*.ts"],
"exclude": ["**/*.spec.ts"],
"angularCompilerOptions": {
"extendedDiagnostics": {
"checks": {
"nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"
}
}
}
}
8 changes: 7 additions & 1 deletion projects/ngx-nullable/tsconfig.lib.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"declarationMap": false
},
"angularCompilerOptions": {
"compilationMode": "partial"
"compilationMode": "partial",
"extendedDiagnostics": {
"checks": {
"nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"
}
}
}
}
17 changes: 10 additions & 7 deletions projects/ngx-nullable/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": [
"vitest/globals"
]
"types": ["vitest/globals"]
},
"include": [
"src/**/*.d.ts",
"src/**/*.spec.ts"
]
"include": ["src/**/*.d.ts", "src/**/*.spec.ts"],
"angularCompilerOptions": {
"extendedDiagnostics": {
"checks": {
"nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"
}
}
}
}
Loading
Loading