Skip to content

Commit 7d5e144

Browse files
committed
feat: up peer dep of threejs to 0.149
1 parent bd31975 commit 7d5e144

File tree

6 files changed

+14797
-20301
lines changed

6 files changed

+14797
-20301
lines changed

apps/demo/project.json

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,15 @@
77
"targets": {
88
"build": {
99
"executor": "@angular-devkit/build-angular:browser",
10-
"outputs": [
11-
"{options.outputPath}"
12-
],
10+
"outputs": ["{options.outputPath}"],
1311
"options": {
1412
"outputPath": "dist/apps/documentation/demo",
1513
"index": "apps/demo/src/index.html",
1614
"main": "apps/demo/src/main.ts",
17-
"polyfills": [
18-
"zone.js"
19-
],
15+
"polyfills": ["zone.js"],
2016
"tsConfig": "apps/demo/tsconfig.app.json",
21-
"assets": [
22-
"apps/demo/src/favicon.png",
23-
"apps/demo/src/assets"
24-
],
25-
"styles": [
26-
"apps/demo/src/styles.css"
27-
],
17+
"assets": ["apps/demo/src/favicon.png", "apps/demo/src/assets"],
18+
"styles": ["apps/demo/src/styles.css"],
2819
"scripts": []
2920
},
3021
"configurations": {
@@ -75,14 +66,9 @@
7566
},
7667
"lint": {
7768
"executor": "@nrwl/linter:eslint",
78-
"outputs": [
79-
"{options.outputFile}"
80-
],
69+
"outputs": ["{options.outputFile}"],
8170
"options": {
82-
"lintFilePatterns": [
83-
"apps/demo/**/*.ts",
84-
"apps/demo/**/*.html"
85-
]
71+
"lintFilePatterns": ["apps/demo/**/*.ts", "apps/demo/**/*.html"]
8672
}
8773
}
8874
},

libs/angular-three/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"peerDependencies": {
2424
"@angular/common": "^15.1.0",
2525
"@angular/core": "^15.1.0",
26-
"three": "^0.148.0"
26+
"three": "^0.148.0 || ^0.149.0"
2727
},
2828
"dependencies": {
2929
"ngx-resize": "^1.0.0",

libs/angular-three/src/lib/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ export interface NgtLoaderProto<T> extends THREE.Loader {
350350
onProgress?: (event: ProgressEvent) => void,
351351
onError?: (event: ErrorEvent) => void
352352
): unknown;
353+
loadAsync(url: string | string[], onProgress?: (event: ProgressEvent) => void): Promise<any>;
353354
}
354355

355356
export interface NgtLoaderExtensions<TLoader extends THREE.Loader = THREE.Loader> {

libs/plugin/src/generators/init/init.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { addDependenciesToPackageJson, installPackagesTask, logger, readJson, Tree, updateJson } from '@nrwl/devkit';
22

33
export const ANGULAR_THREE_VERSION = '^1.0.0';
4-
export const THREE_VERSION = '^0.148.0';
5-
export const THREE_TYPE_VERSION = '^0.148.0';
4+
export const THREE_VERSION = '^0.149.0';
5+
export const THREE_TYPE_VERSION = '^0.149.0';
66

7-
export default async function(tree: Tree) {
7+
export default async function (tree: Tree) {
88
logger.log('Initializing Angular Three...');
99

1010
const packageJson = readJson(tree, 'package.json');

package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
},
88
"private": true,
99
"devDependencies": {
10-
"@angular-devkit/build-angular": "~15.1.3",
10+
"@angular-devkit/build-angular": "~15.1.4",
1111
"@angular-eslint/eslint-plugin": "~15.2.0",
1212
"@angular-eslint/eslint-plugin-template": "~15.2.0",
1313
"@angular-eslint/template-parser": "~15.2.0",
14-
"@angular/cli": "~15.1.3",
15-
"@angular/compiler-cli": "~15.1.2",
16-
"@angular/language-service": "~15.1.2",
14+
"@angular/cli": "~15.1.4",
15+
"@angular/compiler-cli": "~15.1.3",
16+
"@angular/language-service": "~15.1.3",
1717
"@nrwl/angular": "15.6.3",
1818
"@nrwl/devkit": "15.6.3",
1919
"@nrwl/eslint-plugin-nx": "15.6.3",
@@ -26,15 +26,15 @@
2626
"@release-it/bumper": "^4.0.2",
2727
"@release-it/conventional-changelog": "^5.1.1",
2828
"@swc-node/register": "^1.5.5",
29-
"@swc/cli": "~0.1.59",
30-
"@swc/core": "^1.3.29",
29+
"@swc/cli": "~0.1.61",
30+
"@swc/core": "^1.3.32",
3131
"@types/jest": "28.1.1",
32-
"@types/node": "16.11.7",
33-
"@types/three": "^0.148.1",
34-
"@typescript-eslint/eslint-plugin": "^5.49.0",
35-
"@typescript-eslint/parser": "^5.49.0",
32+
"@types/node": "18.11.19",
33+
"@types/three": "^0.149.0",
34+
"@typescript-eslint/eslint-plugin": "^5.50.0",
35+
"@typescript-eslint/parser": "^5.50.0",
3636
"dotenv-cli": "^7.0.0",
37-
"eslint": "~8.32.0",
37+
"eslint": "~8.33.0",
3838
"eslint-config-prettier": "8.6.0",
3939
"jest": "28.1.1",
4040
"jest-environment-jsdom": "28.1.1",
@@ -44,32 +44,32 @@
4444
"nx": "15.6.3",
4545
"postcss": "^8.4.21",
4646
"postcss-import": "~15.1.0",
47-
"postcss-preset-env": "~8.0.0",
47+
"postcss-preset-env": "~8.0.1",
4848
"postcss-url": "~10.1.3",
4949
"prettier": "^2.8.3",
5050
"prettier-plugin-organize-imports": "^3.2.2",
5151
"release-it": "^15.6.0",
5252
"ts-jest": "28.0.5",
5353
"ts-node": "10.9.1",
54-
"typescript": "~4.9.4"
54+
"typescript": "~4.9.5"
5555
},
5656
"dependencies": {
57-
"@angular/animations": "~15.1.2",
58-
"@angular/cdk": "~15.1.2",
59-
"@angular/common": "~15.1.2",
60-
"@angular/compiler": "~15.1.2",
61-
"@angular/core": "~15.1.2",
62-
"@angular/forms": "~15.1.2",
63-
"@angular/platform-browser": "~15.1.2",
64-
"@angular/platform-browser-dynamic": "~15.1.2",
65-
"@angular/router": "~15.1.2",
57+
"@angular/animations": "~15.1.3",
58+
"@angular/cdk": "~15.1.3",
59+
"@angular/common": "~15.1.3",
60+
"@angular/compiler": "~15.1.3",
61+
"@angular/core": "~15.1.3",
62+
"@angular/forms": "~15.1.3",
63+
"@angular/platform-browser": "~15.1.3",
64+
"@angular/platform-browser-dynamic": "~15.1.3",
65+
"@angular/router": "~15.1.3",
6666
"@rx-angular/state": "^1.7.0",
6767
"@swc/helpers": "~0.4.14",
6868
"ngx-resize": "^1.0.5",
6969
"nice-color-palettes": "^3.0.0",
7070
"rxjs": "~7.8.0",
71-
"three": "^0.148.0",
72-
"three-stdlib": "^2.21.6",
71+
"three": "^0.149.0",
72+
"three-stdlib": "^2.21.8",
7373
"tslib": "^2.5.0",
7474
"zone.js": "~0.12.0"
7575
}

0 commit comments

Comments
 (0)