silgi 0.7.26 → 0.7.28

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.26";
1
+ const version = "0.7.28";
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
- "@fastify/deepmerge": {
580
+ "silgi/runtime/internal/deepmerge": {
581
581
  import: [
582
582
  {
583
- name: "deepmerge"
583
+ name: "deepMerge"
584
584
  }
585
585
  ],
586
- from: "@fastify/deepmerge"
586
+ from: "silgi/runtime/internal/deepmerge"
587
587
  }
588
588
  };
589
589
  importItems = { ...data._importItems, ...importItems };
@@ -652,8 +652,6 @@ async function silgiCoreFile(data, frameworkContext, silgi) {
652
652
  ""
653
653
  ];
654
654
  const importData = [
655
- "",
656
- "const mergeDeep = deepmerge({ all: true })",
657
655
  "",
658
656
  "export const uris = {}",
659
657
  "",
@@ -695,7 +693,7 @@ async function silgiCoreFile(data, frameworkContext, silgi) {
695
693
  ` plugins: [${plugins.join(", ")}],`,
696
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 ")},` : "",
697
695
  " ...buildOptions,",
698
- " options: mergeDeep({",
696
+ " options: deepMerge({",
699
697
  ` present: '${silgi.options.preset}',`,
700
698
  " ...moduleOptions,",
701
699
  " ..._silgiOptions",
@@ -561,7 +561,7 @@ async function createSilgi(config) {
561
561
  plugins: config.plugins ?? [],
562
562
  framework: config.framework ?? void 0,
563
563
  storage: config.storage ?? void 0,
564
- options: config.options,
564
+ options: config.options ?? {},
565
565
  hooks,
566
566
  callHook: hooks.callHook,
567
567
  addHooks: hooks.addHooks,
@@ -570,7 +570,7 @@ async function createSilgi(config) {
570
570
  return hooks.callHook("ready", silgi);
571
571
  },
572
572
  close: () => hooks.callHook("close", silgi),
573
- logger: createConsola(defu(config.options.consolaOptions, {
573
+ logger: createConsola(defu(config.options?.consolaOptions ?? {}, {
574
574
  tag: "silgi"
575
575
  })).withTag("silgi"),
576
576
  captureError: config.captureError ?? (() => {
@@ -1,3 +1,3 @@
1
- const version = "0.7.26";
1
+ const version = "0.7.28";
2
2
 
3
3
  export { version };
@@ -1,3 +1,3 @@
1
- const version = "0.7.26";
1
+ const version = "0.7.28";
2
2
 
3
3
  export { version };
@@ -0,0 +1 @@
1
+ export declare const deepMerge: import("@fastify/deepmerge").DeepMergeFn;
@@ -0,0 +1,2 @@
1
+ import { deepmerge } from "@fastify/deepmerge";
2
+ export const deepMerge = deepmerge();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.7.26",
4
+ "version": "0.7.28",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {