Skip to content

Commit 7dc4c06

Browse files
committed
deps: remove hammerjs dependency from angular-material package
fixes #2524
1 parent effb45c commit 7dc4c06

File tree

6 files changed

+12
-16
lines changed

6 files changed

+12
-16
lines changed

MIGRATION.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Migration guide
22

3+
## Migrating to JSON Forms 3.8
4+
5+
### Angular material removes hammerjs
6+
7+
The angular material package no longer depends or imports the `hammerjs` package.
8+
`hammerjs` is a deprecated package for touch gesture support that was last updated 10 years ago.
9+
Thus, it is not expected to be in use. However, if you notice sudden failures in reaction to touch gestures, check if you are still using this.
10+
311
## Migrating to JSON Forms 3.7
412

513
### Angular support now targets Angular 19 to 21

packages/angular-material/angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css"
2929
],
3030
"scripts": [],
31-
"allowedCommonJsDependencies": ["lodash", "hammerjs"],
31+
"allowedCommonJsDependencies": ["lodash"],
3232
"optimization": false,
3333
"buildOptimizer": false
3434
}

packages/angular-material/ng-package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"allowedNonPeerDependencies": [
55
"@jsonforms/angular",
66
"@jsonforms/core",
7-
"hammerjs",
87
"lodash"
98
]
10-
}
9+
}

packages/angular-material/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
"rxjs": "^6.6.0 || ^7.4.0"
7979
},
8080
"dependencies": {
81-
"hammerjs": "2.0.8",
8281
"lodash": "^4.17.21"
8382
},
8483
"devDependencies": {

packages/angular-material/src/library/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2323
THE SOFTWARE.
2424
*/
25-
import 'hammerjs';
2625
import { RankedTester } from '@jsonforms/core';
2726
export * from './module';
2827
import {

pnpm-lock.yaml

Lines changed: 2 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)