Skip to content

Commit 4cf73c6

Browse files
committed
build: upgrade to angular 20
BREAKING CHANGE: angular 20 or higher is now required to use this package
1 parent ce7c1a5 commit 4cf73c6

13 files changed

Lines changed: 1587 additions & 3787 deletions

File tree

README.md

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ https://mattlewis92.github.io/angular-resizable-element/
2020

2121
## About
2222

23-
An angular 15.0+ directive that allows an element to be dragged and resized
23+
An angular 20.0+ directive that allows an element to be dragged and resized
2424

2525
## Installation
2626

@@ -92,32 +92,11 @@ import { ResizeEvent } from 'angular-resizable-element';
9292
`,
9393
],
9494
template: `
95-
<div
96-
class="rectangle"
97-
mwlResizable
98-
[enableGhostResize]="true"
99-
(resizeEnd)="onResizeEnd($event)"
100-
>
101-
<div
102-
class="resize-handle-top"
103-
mwlResizeHandle
104-
[resizeEdges]="{ top: true }"
105-
></div>
106-
<div
107-
class="resize-handle-left"
108-
mwlResizeHandle
109-
[resizeEdges]="{ left: true }"
110-
></div>
111-
<div
112-
class="resize-handle-right"
113-
mwlResizeHandle
114-
[resizeEdges]="{ right: true }"
115-
></div>
116-
<div
117-
class="resize-handle-bottom"
118-
mwlResizeHandle
119-
[resizeEdges]="{ bottom: true }"
120-
></div>
95+
<div class="rectangle" mwlResizable [enableGhostResize]="true" (resizeEnd)="onResizeEnd($event)">
96+
<div class="resize-handle-top" mwlResizeHandle [resizeEdges]="{ top: true }"></div>
97+
<div class="resize-handle-left" mwlResizeHandle [resizeEdges]="{ left: true }"></div>
98+
<div class="resize-handle-right" mwlResizeHandle [resizeEdges]="{ right: true }"></div>
99+
<div class="resize-handle-bottom" mwlResizeHandle [resizeEdges]="{ bottom: true }"></div>
121100
</div>
122101
`,
123102
})

angular.json

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"prefix": "mwl",
1919
"architect": {
2020
"build": {
21-
"builder": "@angular-devkit/build-angular:application",
21+
"builder": "@angular/build:application",
2222
"options": {
2323
"outputPath": {
2424
"base": "dist/demo"
@@ -71,7 +71,7 @@
7171
"defaultConfiguration": "production"
7272
},
7373
"serve": {
74-
"builder": "@angular-devkit/build-angular:dev-server",
74+
"builder": "@angular/build:dev-server",
7575
"configurations": {
7676
"production": {
7777
"buildTarget": "demo:build:production"
@@ -107,7 +107,7 @@
107107
"prefix": "lib",
108108
"architect": {
109109
"build": {
110-
"builder": "@angular-devkit/build-angular:ng-packagr",
110+
"builder": "@angular/build:ng-packagr",
111111
"options": {
112112
"project": "projects/angular-resizable-element/ng-package.json"
113113
},
@@ -122,7 +122,7 @@
122122
"defaultConfiguration": "production"
123123
},
124124
"test": {
125-
"builder": "@angular-devkit/build-angular:karma",
125+
"builder": "@angular/build:karma",
126126
"options": {
127127
"main": "projects/angular-resizable-element/src/test.ts",
128128
"tsConfig": "projects/angular-resizable-element/tsconfig.spec.json",
@@ -147,6 +147,30 @@
147147
},
148148
"@angular-eslint/schematics:library": {
149149
"setParserOptionsProject": true
150+
},
151+
"@schematics/angular:component": {
152+
"type": "component"
153+
},
154+
"@schematics/angular:directive": {
155+
"type": "directive"
156+
},
157+
"@schematics/angular:service": {
158+
"type": "service"
159+
},
160+
"@schematics/angular:guard": {
161+
"typeSeparator": "."
162+
},
163+
"@schematics/angular:interceptor": {
164+
"typeSeparator": "."
165+
},
166+
"@schematics/angular:module": {
167+
"typeSeparator": "."
168+
},
169+
"@schematics/angular:pipe": {
170+
"typeSeparator": "."
171+
},
172+
"@schematics/angular:resolver": {
173+
"typeSeparator": "."
150174
}
151175
}
152176
}

package.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-resizable-element",
33
"version": "7.0.2",
4-
"description": "An angular 15.0+ directive that allows an element to be dragged and resized",
4+
"description": "An angular 20.0+ directive that allows an element to be dragged and resized",
55
"scripts": {
66
"start": "concurrently --raw \"ng serve --open\" \"pnpm test:watch\"",
77
"build:demo": "ng build --configuration production",
@@ -37,48 +37,48 @@
3737
},
3838
"homepage": "https://github.com/mattlewis92/angular-resizable-element#readme",
3939
"devDependencies": {
40-
"@angular-devkit/build-angular": "^19.2.15",
41-
"@angular-eslint/builder": "19.8.1",
42-
"@angular-eslint/eslint-plugin": "19.8.1",
43-
"@angular-eslint/eslint-plugin-template": "19.8.1",
44-
"@angular-eslint/schematics": "19.8.1",
45-
"@angular-eslint/template-parser": "19.8.1",
46-
"@angular/animations": "^19.2.14",
47-
"@angular/cli": "^19.2.15",
48-
"@angular/common": "^19.2.14",
49-
"@angular/compiler": "^19.2.14",
50-
"@angular/compiler-cli": "^19.2.14",
51-
"@angular/core": "^19.2.14",
52-
"@angular/forms": "^19.2.14",
53-
"@angular/platform-browser": "^19.2.14",
54-
"@angular/platform-browser-dynamic": "^19.2.14",
55-
"@angular/router": "^19.2.14",
40+
"@angular-eslint/builder": "20.2.0",
41+
"@angular-eslint/eslint-plugin": "20.2.0",
42+
"@angular-eslint/eslint-plugin-template": "20.2.0",
43+
"@angular-eslint/schematics": "20.2.0",
44+
"@angular-eslint/template-parser": "20.2.0",
45+
"@angular/animations": "^20.2.1",
46+
"@angular/build": "^20.2.0",
47+
"@angular/cli": "^20.2.0",
48+
"@angular/common": "^20.2.1",
49+
"@angular/compiler": "^20.2.1",
50+
"@angular/compiler-cli": "^20.2.1",
51+
"@angular/core": "^20.2.1",
52+
"@angular/forms": "^20.2.1",
53+
"@angular/platform-browser": "^20.2.1",
54+
"@angular/platform-browser-dynamic": "^20.2.1",
55+
"@angular/router": "^20.2.1",
5656
"@commitlint/cli": "^17.3.0",
5757
"@commitlint/config-conventional": "^17.3.0",
5858
"@commitlint/prompt": "^17.3.0",
5959
"@compodoc/compodoc": "^1.1.19",
6060
"@types/chai": "^4.3.4",
6161
"@types/mocha": "^9.1.1",
62-
"@types/node": "^18.11.13",
62+
"@types/node": "^24.3.0",
6363
"@types/sinon": "^10.0.13",
6464
"@types/sinon-chai": "^3.2.9",
65-
"@typescript-eslint/eslint-plugin": "^8.40.0",
66-
"@typescript-eslint/parser": "^8.40.0",
65+
"@typescript-eslint/eslint-plugin": "^8.33.1",
66+
"@typescript-eslint/parser": "^8.33.1",
6767
"angular-cli-ghpages": "^1.0.5",
6868
"chai": "^4.3.7",
6969
"commitizen": "^4.2.6",
7070
"concurrently": "^7.6.0",
7171
"copyfiles": "^2.4.1",
72-
"eslint": "^8.57.0",
72+
"eslint": "^9.28.0",
7373
"husky": "^8.0.2",
7474
"karma": "^6.4.1",
7575
"karma-chrome-launcher": "^3.1.1",
7676
"karma-coverage": "^2.2.0",
7777
"karma-mocha": "^2.0.1",
7878
"mocha": "^10.2.0",
79-
"ng-packagr": "^19.2.2",
80-
"prettier": "^2.8.1",
81-
"pretty-quick": "^3.1.3",
79+
"ng-packagr": "^20.2.0",
80+
"prettier": "^3.6.2",
81+
"pretty-quick": "^4.2.2",
8282
"rxjs": "^7.6.0",
8383
"sinon": "^14.0.2",
8484
"sinon-chai": "^3.7.0",
@@ -89,7 +89,7 @@
8989
"zone.js": "^0.15.1"
9090
},
9191
"peerDependencies": {
92-
"@angular/core": ">=19.0.0"
92+
"@angular/core": ">=20.0.0"
9393
},
9494
"commitlint": {
9595
"extends": [

0 commit comments

Comments
 (0)