Skip to content
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
0ff5267
feat(*): update to angular 20
michaelwittwer Jun 4, 2025
ac9f9ee
feat(*): update the @angular/cdk to 20
michaelwittwer Jun 4, 2025
ba7a44f
fix(*): remove our ng-dev-mode type, since this is no part of @angula…
michaelwittwer Jun 4, 2025
192df50
build(*): update the package versions to 10 since we have an open Pul…
michaelwittwer Jun 4, 2025
7f9b9d2
docs(*): update the angular version mapping table
michaelwittwer Jun 4, 2025
1c40ac6
build(components): update version range
michaelwittwer Jun 4, 2025
578adc1
build(*): update to node ^22.12.0
michaelwittwer Jun 4, 2025
6f2b47f
build(*): update to node ^22.12.0
michaelwittwer Jun 4, 2025
89b62d5
build(release): next version [skip_build]
actions-user Jun 4, 2025
31fadb7
feat(core): update to angular 20
michaelwittwer Jun 4, 2025
6188a11
feat(components): update to angular 20
michaelwittwer Jun 4, 2025
a4a8e89
Merge remote-tracking branch 'origin/#50-angular20' into #50-angular20
michaelwittwer Jun 4, 2025
f4b3fef
build(release): next version [skip_build]
actions-user Jun 4, 2025
2006c1a
Merge branch 'main' into #50-angular20
michaelwittwer Jun 30, 2025
b823650
build(release): next version [skip_build]
actions-user Jun 30, 2025
2f2f686
feat(*): update to latest @shiftcode/eslint-config-recommended
michaelwittwer Jun 30, 2025
28d97ba
Merge remote-tracking branch 'origin/#50-angular20' into #50-angular20
michaelwittwer Jun 30, 2025
dafceb0
feat(*): run @angular/core:inject migration
michaelwittwer Jun 30, 2025
01f104f
build(release): next version [skip_build]
actions-user Jun 30, 2025
98d7f09
build(node): update version to match current lts
michaelwittwer Jun 30, 2025
5280f35
build(release): next version [skip_build]
actions-user Jun 30, 2025
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 .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.11.1
v22.12.0
Comment thread
michaelwittwer marked this conversation as resolved.
Outdated
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Shows the mapping between the angular version and our lib versions.

| Angular Version | Lib Version |
|-----------------|-------------|
| `^20` | `^11` |
| `^19` | `^7` |
| `^18` | `^6` |
| `^17` | `^5` |
Expand Down
24 changes: 20 additions & 4 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,33 @@
"displayBlock": true,
"changeDetection": "OnPush",
"viewEncapsulation": "None",
"skipTests": true
"skipTests": true,
"type": "component"
},
"@schematics/angular:directive": {
"prefix": "sc",
"skipTests": true
"skipTests": true,
"type": "directive"
},
"@schematics/angular:pipe": {
"skipTests": true
"skipTests": true,
"typeSeparator": "."
},
"@schematics/angular:service": {
"skipTests": true
"skipTests": true,
"type": "service"
},
"@schematics/angular:guard": {
"typeSeparator": "."
},
"@schematics/angular:interceptor": {
"typeSeparator": "."
},
"@schematics/angular:module": {
"typeSeparator": "."
},
"@schematics/angular:resolver": {
"typeSeparator": "."
}
}
}
3 changes: 1 addition & 2 deletions apps/styleguide/src/routes/sg-button/sg-button.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DOCUMENT } from '@angular/common'
import { ChangeDetectionStrategy, Component, Inject, OnDestroy, Optional } from '@angular/core'
import { ChangeDetectionStrategy, Component, Inject, OnDestroy, Optional, DOCUMENT } from '@angular/core'
import { ButtonComponent } from '@shiftcode/ngx-components'

@Component({
Expand Down
3 changes: 0 additions & 3 deletions apps/styleguide/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/app",
"types": [
"../../ng-dev-mode"
]
},
"files": [
"src/main.ts"
Expand Down
16 changes: 8 additions & 8 deletions libs/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shiftcode/ngx-components",
"version": "9.0.0",
"version": "11.0.0-pr50.1",
"repository": "https://github.com/shiftcode/sc-ng-commons-public",
"license": "MIT",
"author": "shiftcode GmbH <team@shiftcode.ch>",
Expand All @@ -18,14 +18,14 @@
"tslib": "^2.5.0"
},
"peerDependencies": {
"@angular/animations": "^19.0.0",
"@angular/cdk": "^19.0.0",
"@angular/common": "^19.0.0",
"@angular/core": "^19.0.0",
"@angular/forms": "^19.0.0",
"@angular/router": "^19.0.0",
"@angular/animations": "^20.0.0",
"@angular/cdk": "^20.0.0",
"@angular/common": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/forms": "^20.0.0",
"@angular/router": "^20.0.0",
"@shiftcode/logger": "^3.0.0",
"@shiftcode/ngx-core": "^9.0.0 || ^9.0.0-pr46",
"@shiftcode/ngx-core": "^11.0.0 || ^11.0.0-pr50",
"rxjs": "^6.5.3 || ^7.4.0"
}
}
3 changes: 1 addition & 2 deletions libs/components/src/lib/auto-focus/auto-focus.directive.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DOCUMENT } from '@angular/common'
import { AfterViewInit, Directive, ElementRef, inject } from '@angular/core'
import { AfterViewInit, Directive, ElementRef, inject, DOCUMENT } from '@angular/core'
import { isInputElement, LoggerService } from '@shiftcode/ngx-core'
import { Logger } from '@shiftcode/logger'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DOCUMENT, isPlatformServer } from '@angular/common'
import { isPlatformServer } from '@angular/common'
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Expand All @@ -7,6 +7,7 @@ import {
inject,
OnInit,
PLATFORM_ID,
DOCUMENT,
} from '@angular/core'
import { WindowRef } from '@shiftcode/ngx-core'
import { fromEvent } from 'rxjs'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DOCUMENT } from '@angular/common'
import { EnvironmentProviders, makeEnvironmentProviders, inject, provideAppInitializer } from '@angular/core'
import { EnvironmentProviders, makeEnvironmentProviders, inject, provideAppInitializer, DOCUMENT } from '@angular/core'
import { NavigationCancel, NavigationEnd, NavigationError, NavigationStart, Router } from '@angular/router'
import { delay, filter, switchMap, take, tap } from 'rxjs'

Expand Down
3 changes: 1 addition & 2 deletions libs/components/src/lib/svg/svg-registry.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { DOCUMENT } from '@angular/common'
import { HttpClient, HttpErrorResponse } from '@angular/common/http'
import { inject, Injectable } from '@angular/core'
import { inject, Injectable, DOCUMENT } from '@angular/core'
import { firstValueFrom } from 'rxjs'

/**
Expand Down
3 changes: 2 additions & 1 deletion libs/components/src/lib/tooltip/tooltip.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from '@angular/cdk/overlay'
import { Platform } from '@angular/cdk/platform'
import { ComponentPortal } from '@angular/cdk/portal'
import { DOCUMENT } from '@angular/common'

import {
Directive,
ElementRef,
Expand All @@ -27,6 +27,7 @@ import {
OnInit,
Optional,
ViewContainerRef,
DOCUMENT,
} from '@angular/core'
import { Subject } from 'rxjs'
import { take, takeUntil } from 'rxjs/operators'
Expand Down
6 changes: 1 addition & 5 deletions libs/components/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"extends": "../tsconfig.lib.json",
"compilerOptions": {
"types": [
"../../ng-dev-mode"
]
}
"compilerOptions": {}
}
3 changes: 1 addition & 2 deletions libs/components/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"compilerOptions": {
"types": [
"jest",
"node",
"../../ng-dev-mode"
"node"
]
}
}
10 changes: 5 additions & 5 deletions libs/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shiftcode/ngx-core",
"version": "9.0.0",
"version": "11.0.0-pr50.1",
"repository": "https://github.com/shiftcode/sc-ng-commons-public",
"license": "MIT",
"author": "shiftcode GmbH <team@shiftcode.ch>",
Expand All @@ -19,10 +19,10 @@
"tslib": "^2.5.0"
},
"peerDependencies": {
"@angular/common": "^19.0.0",
"@angular/core": "^19.0.0",
"@angular/platform-browser": "^19.0.0",
"@angular/router": "^19.0.0",
"@angular/common": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/router": "^20.0.0",
"@shiftcode/logger": "^3.0.0",
"@shiftcode/utilities": "^4.0.0",
"rxjs": "^6.5.3 || ^7.4.0"
Expand Down
3 changes: 1 addition & 2 deletions libs/core/src/lib/json-ld/json-ld.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DOCUMENT } from '@angular/common'
import { Inject, Injectable } from '@angular/core'
import { Inject, Injectable, DOCUMENT } from '@angular/core'

export type JsonLdProp = string | number | boolean

Expand Down
3 changes: 1 addition & 2 deletions libs/core/src/lib/origin/origin.token.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DOCUMENT } from '@angular/common'
import { inject, InjectionToken } from '@angular/core'
import { inject, InjectionToken, DOCUMENT } from '@angular/core'

/** token which provides the current location origin */
export const ORIGIN = new InjectionToken<string>(ngDevMode ? 'ORIGIN' : '', {
Expand Down
4 changes: 2 additions & 2 deletions libs/core/src/lib/script-loader/script-loader.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommonModule, DOCUMENT } from '@angular/common'
import { PLATFORM_ID } from '@angular/core'
import { CommonModule } from '@angular/common'
import { PLATFORM_ID, DOCUMENT } from '@angular/core'
import { TestBed } from '@angular/core/testing'
import { LogLevel } from '@shiftcode/logger'
import { LoggerService } from '../logger/logger.service'
Expand Down
4 changes: 2 additions & 2 deletions libs/core/src/lib/script-loader/script-loader.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DOCUMENT, isPlatformServer } from '@angular/common'
import { inject, Injectable, PLATFORM_ID } from '@angular/core'
import { isPlatformServer } from '@angular/common'
import { inject, Injectable, PLATFORM_ID, DOCUMENT } from '@angular/core'
import { Logger } from '@shiftcode/logger'
import { LoggerService } from '../logger/logger.service'
import { ScriptLoaderError } from './script-loader-error.model'
Expand Down
3 changes: 1 addition & 2 deletions libs/core/src/lib/scroll-to/scroll-to.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DOCUMENT } from '@angular/common'
import { inject, Injectable } from '@angular/core'
import { inject, Injectable, DOCUMENT } from '@angular/core'
import { Logger } from '@shiftcode/logger'
import { LoggerService } from '../logger/logger.service'
import { WindowRef } from '../window/window-ref.service'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DOCUMENT } from '@angular/common'
import { DOCUMENT } from '@angular/core'
import { TestBed } from '@angular/core/testing'
import { isInputElement } from './is-input-element.function'

Expand Down
2 changes: 1 addition & 1 deletion libs/core/src/lib/ui-events/ui-event.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DOCUMENT } from '@angular/common'
import { TestBed } from '@angular/core/testing'
import { firstValueFrom, Observable } from 'rxjs'
import { UIEventService } from './ui-event.service'
import { DOCUMENT } from '@angular/core'

class CustomEvent extends Event {
static readonly TYPE = 'custom'
Expand Down
3 changes: 1 addition & 2 deletions libs/core/src/lib/ui-events/ui-event.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DOCUMENT } from '@angular/common'
import { Inject, Injectable } from '@angular/core'
import { Inject, Injectable, DOCUMENT } from '@angular/core'
import { fromEvent, merge, Observable } from 'rxjs'
import { filter, finalize } from 'rxjs/operators'
import { WindowRef } from '../window/window-ref.service'
Expand Down
6 changes: 1 addition & 5 deletions libs/core/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"extends": "../tsconfig.lib.json",
"compilerOptions": {
"types": [
"../../ng-dev-mode"
]
}
"compilerOptions": { }
}
3 changes: 1 addition & 2 deletions libs/core/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"compilerOptions": {
"types": [
"jest",
"node",
"../../ng-dev-mode"
"node"
]
}
}
2 changes: 0 additions & 2 deletions ng-dev-mode.d.ts

This file was deleted.

Loading