@nuxt/kit 3.10.1 → 3.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -39,7 +39,7 @@ Simple, intuitive and powerful, Nuxt lets you write Vue components in a way that
39
39
  Example of an `app.vue`:
40
40
 
41
41
  ```vue
42
- <script setup>
42
+ <script setup lang="ts">
43
43
  useSeoMeta({
44
44
  title: 'Meet Nuxt',
45
45
  description: 'The Intuitive Vue Framework.'
package/dist/index.mjs CHANGED
@@ -2723,8 +2723,9 @@ async function addComponent(opts) {
2723
2723
  ...opts
2724
2724
  };
2725
2725
  nuxt.hook("components:extend", (components) => {
2726
- const existingComponent = components.find((c) => (c.pascalName === component.pascalName || c.kebabName === component.kebabName) && c.mode === component.mode);
2727
- if (existingComponent) {
2726
+ const existingComponentIndex = components.findIndex((c) => (c.pascalName === component.pascalName || c.kebabName === component.kebabName) && c.mode === component.mode);
2727
+ if (existingComponentIndex !== -1) {
2728
+ const existingComponent = components[existingComponentIndex];
2728
2729
  const existingPriority = existingComponent.priority ?? 0;
2729
2730
  const newPriority = component.priority ?? 0;
2730
2731
  if (newPriority < existingPriority) {
@@ -2734,7 +2735,7 @@ async function addComponent(opts) {
2734
2735
  const name = existingComponent.pascalName || existingComponent.kebabName;
2735
2736
  logger.warn(`Overriding ${name} component. You can specify a \`priority\` option when calling \`addComponent\` to avoid this warning.`);
2736
2737
  }
2737
- Object.assign(existingComponent, component);
2738
+ components.splice(existingComponentIndex, 1, component);
2738
2739
  } else {
2739
2740
  components.push(component);
2740
2741
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/kit",
3
- "version": "3.10.1",
3
+ "version": "3.10.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -23,10 +23,10 @@
23
23
  "dist"
24
24
  ],
25
25
  "dependencies": {
26
- "c12": "^1.6.1",
26
+ "c12": "^1.7.0",
27
27
  "consola": "^3.2.3",
28
28
  "defu": "^6.1.4",
29
- "globby": "^14.0.0",
29
+ "globby": "^14.0.1",
30
30
  "hash-sum": "^2.0.0",
31
31
  "ignore": "^5.3.1",
32
32
  "jiti": "^1.21.0",
@@ -34,22 +34,22 @@
34
34
  "mlly": "^1.5.0",
35
35
  "pathe": "^1.1.2",
36
36
  "pkg-types": "^1.0.3",
37
- "scule": "^1.2.0",
38
- "semver": "^7.5.4",
39
- "ufo": "^1.3.2",
37
+ "scule": "^1.3.0",
38
+ "semver": "^7.6.0",
39
+ "ufo": "^1.4.0",
40
40
  "unctx": "^2.3.1",
41
41
  "unimport": "^3.7.1",
42
42
  "untyped": "^1.4.2",
43
- "@nuxt/schema": "3.10.1"
43
+ "@nuxt/schema": "3.10.2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/hash-sum": "1.0.2",
47
47
  "@types/lodash-es": "4.17.12",
48
- "@types/semver": "7.5.6",
48
+ "@types/semver": "7.5.7",
49
49
  "lodash-es": "4.17.21",
50
50
  "nitropack": "2.8.1",
51
51
  "unbuild": "latest",
52
- "vite": "5.0.12",
52
+ "vite": "5.1.1",
53
53
  "vitest": "1.2.2",
54
54
  "webpack": "5.90.1"
55
55
  },