Browse Source

Merge pull request #296 from Tresjs/deps/update-14-06-23

chore: update deps and fix some type issues
Alvaro Saburido 1 year ago
parent
commit
a575563ea6
4 changed files with 421 additions and 169 deletions
  1. 1 0
      .eslintrc.cjs
  2. 22 22
      package.json
  3. 395 144
      pnpm-lock.yaml
  4. 3 3
      src/core/nodeOps.ts

+ 1 - 0
.eslintrc.cjs

@@ -25,6 +25,7 @@ module.exports = {
     'no-invalid-this': 0,
     'import/no-absolute-path': 'off',
     '@typescript-eslint/no-explicit-any': 'off',
+    '@typescript-eslint/no-empty-interface': 'off',
     'vue/no-deprecated-slot-attribute': 'off',
     'vue/require-default-prop': 'off',
     'vue/html-self-closing': 'off',

+ 22 - 22
package.json

@@ -70,38 +70,38 @@
     "@huntersofbook/plausible-vue": "^1.0.0",
     "@release-it/conventional-changelog": "^5.1.1",
     "@stackblitz/sdk": "^1.9.0",
-    "@tresjs/cientos": "2.0.0",
-    "@types/three": "^0.152.0",
-    "@typescript-eslint/eslint-plugin": "^5.59.7",
-    "@typescript-eslint/parser": "^5.59.7",
+    "@tresjs/cientos": "2.1.3",
+    "@types/three": "^0.152.1",
+    "@typescript-eslint/eslint-plugin": "^5.59.11",
+    "@typescript-eslint/parser": "^5.59.11",
     "@vitejs/plugin-vue": "^4.2.3",
-    "@vitest/coverage-c8": "^0.31.1",
-    "@vitest/ui": "^0.31.1",
+    "@vitest/coverage-c8": "^0.32.0",
+    "@vitest/ui": "^0.32.0",
     "@vue/test-utils": "^2.3.2",
-    "eslint": "^8.41.0",
+    "eslint": "^8.42.0",
     "eslint-config-prettier": "^8.8.0",
-    "eslint-plugin-vue": "^9.14.0",
-    "gsap": "^3.11.5",
-    "jsdom": "^22.0.0",
+    "eslint-plugin-vue": "^9.14.1",
+    "gsap": "^3.12.1",
+    "jsdom": "^22.1.0",
     "kolorist": "^1.8.0",
-    "pathe": "^1.1.0",
+    "pathe": "^1.1.1",
     "prettier": "^2.8.8",
-    "release-it": "^15.10.3",
+    "release-it": "^15.11.0",
     "rollup-plugin-analyzer": "^4.0.0",
     "rollup-plugin-copy": "^3.4.0",
-    "rollup-plugin-visualizer": "^5.9.0",
-    "three": "^0.152.2",
-    "unocss": "^0.52.1",
+    "rollup-plugin-visualizer": "^5.9.2",
+    "three": "^0.153.0",
+    "unocss": "^0.53.1",
     "unplugin": "^1.3.1",
-    "unplugin-vue-components": "^0.24.1",
-    "vite": "^4.3.8",
+    "unplugin-vue-components": "^0.25.1",
+    "vite": "^4.3.9",
     "vite-plugin-banner": "^0.7.0",
     "vite-plugin-dts": "2.3.0",
-    "vite-plugin-inspect": "^0.7.26",
-    "vite-plugin-require-transform": "^1.0.12",
+    "vite-plugin-inspect": "^0.7.28",
+    "vite-plugin-require-transform": "^1.0.17",
     "vite-svg-loader": "^4.0.0",
-    "vitepress": "1.0.0-alpha.75",
-    "vitest": "^0.31.1",
-    "vue-demi": "^0.14.4"
+    "vitepress": "1.0.0-beta.2",
+    "vitest": "^0.32.0",
+    "vue-demi": "^0.14.5"
   }
 }

File diff suppressed because it is too large
+ 395 - 144
pnpm-lock.yaml


+ 3 - 3
src/core/nodeOps.ts

@@ -1,5 +1,5 @@
 import { RendererOptions } from 'vue'
-import { BufferAttribute, BufferGeometry, Material } from 'three'
+import { BufferAttribute, BufferGeometry, Material, Scene } from 'three'
 import { useCamera, useLogger } from '../composables'
 import { isFunction } from '@alvarosabu/utils'
 import { catalogue } from './catalogue'
@@ -79,7 +79,7 @@ export const nodeOps: RendererOptions<TresObject, TresObject> = {
     return instance
   },
   insert(child, parent) {
-    if (parent && parent.isScene) scene = parent
+    if (parent && parent.isScene) scene = parent as unknown as Scene
     if (
       (child?.__vnode?.type === 'TresGroup' || child?.__vnode?.type === 'TresObject3D') &&
       parent === null &&
@@ -88,7 +88,7 @@ export const nodeOps: RendererOptions<TresObject, TresObject> = {
       fallback = child
       return
     } else if (child?.__vnode?.type.includes('Controls') && parent === null) {
-      fallback = scene
+      fallback = scene as unknown as TresObject
     }
 
     if (!parent) parent = fallback as TresObject

Some files were not shown because too many files changed in this diff