Skip to content

Commit 79039bd

Browse files
authored
feat: add support for angular v16 (#1346)
Release-As: 16.0.0-rc.0
1 parent 92ef31b commit 79039bd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+6860
-4859
lines changed

angular.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"version": 1,
44
"newProjectRoot": "projects",
5-
"defaultProject": "demo",
65
"projects": {
76
"ng-in-viewport": {
87
"projectType": "library",
@@ -48,7 +47,7 @@
4847
"prefix": "invp",
4948
"architect": {
5049
"build": {
51-
"builder": "@angular-devkit/build-angular:browser",
50+
"builder": "@angular-devkit/build-angular:browser-esbuild",
5251
"options": {
5352
"outputPath": "dist/demo",
5453
"index": "projects/demo/src/index.html",
@@ -131,7 +130,7 @@
131130
"prefix": "invp-ex",
132131
"architect": {
133132
"build": {
134-
"builder": "@angular-devkit/build-angular:browser",
133+
"builder": "@angular-devkit/build-angular:browser-esbuild",
135134
"options": {
136135
"outputPath": "dist/example",
137136
"index": "projects/example/src/index.html",
@@ -211,7 +210,6 @@
211210
},
212211
"cli": {
213212
"packageManager": "npm",
214-
"defaultCollection": "@ngneat/spectator",
215213
"schematicCollections": ["@ngneat/spectator", "@angular-eslint/schematics"]
216214
},
217215
"schematics": {

jest-global-mocks.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
Object.defineProperty(window, 'crypto', {
2+
value: {
3+
randomUUID: () => {
4+
let dt = new Date().getTime();
5+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
6+
const r = (dt + Math.random() * 16) % 16 | 0;
7+
dt = Math.floor(dt / 16);
8+
return (c == 'x' ? r : (r & 0x3) | 0x8).toString(16);
9+
});
10+
},
11+
},
12+
});
13+
114
Object.defineProperty(window, 'CSS', { value: null });
215

316
Object.defineProperty(document, 'doctype', {

0 commit comments

Comments
 (0)