silgi 0.7.28 → 0.7.30

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.
@@ -1,4 +1,4 @@
1
- const version = "0.7.28";
1
+ const version = "0.7.30";
2
2
  const packageJson = {
3
3
  version: version};
4
4
 
@@ -577,13 +577,13 @@ async function silgiCoreFile(data, frameworkContext, silgi) {
577
577
  import: [],
578
578
  from: "./vfs"
579
579
  },
580
- "silgi/runtime/internal/deepmerge": {
580
+ "defu": {
581
581
  import: [
582
582
  {
583
- name: "deepMerge"
583
+ name: "defu"
584
584
  }
585
585
  ],
586
- from: "silgi/runtime/internal/deepmerge"
586
+ from: "defu"
587
587
  }
588
588
  };
589
589
  importItems = { ...data._importItems, ...importItems };
@@ -693,11 +693,13 @@ async function silgiCoreFile(data, frameworkContext, silgi) {
693
693
  ` plugins: [${plugins.join(", ")}],`,
694
694
  _silgiConfigs.length > 0 ? ` ${_silgiConfigs.map((config) => typeof config === "string" ? config : typeof config === "object" ? Object.entries(config).map(([key, value]) => `${key}: ${value}`).join(",\n ") : "").join(",\n ")},` : "",
695
695
  " ...buildOptions,",
696
- " options: deepMerge({",
697
- ` present: '${silgi.options.preset}',`,
698
- " ...moduleOptions,",
699
- " ..._silgiOptions",
700
- " }),",
696
+ " options: defu(",
697
+ " moduleOptions || {},",
698
+ " {",
699
+ ` present: '${silgi.options.preset}',`,
700
+ " ..._silgiOptions,",
701
+ " },",
702
+ " ) as any,",
701
703
  " })",
702
704
  "",
703
705
  ...frameworkContext,
@@ -1,3 +1,3 @@
1
- const version = "0.7.28";
1
+ const version = "0.7.30";
2
2
 
3
3
  export { version };
@@ -1,3 +1,3 @@
1
- const version = "0.7.28";
1
+ const version = "0.7.30";
2
2
 
3
3
  export { version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.7.28",
4
+ "version": "0.7.30",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {
@@ -109,7 +109,6 @@
109
109
  }
110
110
  },
111
111
  "dependencies": {
112
- "@fastify/deepmerge": "^2.0.2",
113
112
  "@oxc-parser/wasm": "^0.49.0",
114
113
  "@standard-schema/spec": "^1.0.0",
115
114
  "c12": "^2.0.1",
@@ -1 +0,0 @@
1
- export declare const deepMerge: import("@fastify/deepmerge").DeepMergeFn;
@@ -1,2 +0,0 @@
1
- import { deepmerge } from "@fastify/deepmerge";
2
- export const deepMerge = deepmerge();