Skip to content

Commit

Permalink
feat: add support for angular v16 (#1346)
Browse files Browse the repository at this point in the history
Release-As: 16.0.0-rc.0
  • Loading branch information
k3nsei authored May 6, 2023
1 parent 92ef31b commit 79039bd
Show file tree
Hide file tree
Showing 41 changed files with 6,860 additions and 4,859 deletions.
6 changes: 2 additions & 4 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"defaultProject": "demo",
"projects": {
"ng-in-viewport": {
"projectType": "library",
Expand Down Expand Up @@ -48,7 +47,7 @@
"prefix": "invp",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:browser-esbuild",
"options": {
"outputPath": "dist/demo",
"index": "projects/demo/src/index.html",
Expand Down Expand Up @@ -131,7 +130,7 @@
"prefix": "invp-ex",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:browser-esbuild",
"options": {
"outputPath": "dist/example",
"index": "projects/example/src/index.html",
Expand Down Expand Up @@ -211,7 +210,6 @@
},
"cli": {
"packageManager": "npm",
"defaultCollection": "@ngneat/spectator",
"schematicCollections": ["@ngneat/spectator", "@angular-eslint/schematics"]
},
"schematics": {
Expand Down
13 changes: 13 additions & 0 deletions jest-global-mocks.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
Object.defineProperty(window, 'crypto', {
value: {
randomUUID: () => {
let dt = new Date().getTime();
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
const r = (dt + Math.random() * 16) % 16 | 0;
dt = Math.floor(dt / 16);
return (c == 'x' ? r : (r & 0x3) | 0x8).toString(16);
});
},
},
});

Object.defineProperty(window, 'CSS', { value: null });

Object.defineProperty(document, 'doctype', {
Expand Down
Loading

1 comment on commit 79039bd

@vercel
Copy link

@vercel vercel bot commented on 79039bd May 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ng-in-viewport – ./

ng-in-viewport-git-develop-k3nsei.vercel.app
ng-in-viewport-k3nsei.vercel.app
ng-in-viewport.vercel.app

Please sign in to comment.