silgi 0.19.7 → 0.19.9

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,10 +1,10 @@
1
- const version = "0.19.7";
1
+ const version = "0.19.9";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
5
5
  "@nuxt/schema": "^3.15.4",
6
6
  "@silgi/ecosystem": "^0.2.0",
7
- h3: "^1.14.0",
7
+ h3: "^1.15.1",
8
8
  nitropack: "^2.10.4",
9
9
  nuxt: "^3.15.3",
10
10
  typescript: "^5.7.3",
@@ -1,10 +1,10 @@
1
- const version = "0.19.7";
1
+ const version = "0.19.9";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
5
5
  "@nuxt/schema": "^3.15.4",
6
6
  "@silgi/ecosystem": "^0.2.0",
7
- h3: "^1.14.0",
7
+ h3: "^1.15.1",
8
8
  nitropack: "^2.10.4",
9
9
  nuxt: "^3.15.3",
10
10
  typescript: "^5.7.3",
@@ -1,10 +1,10 @@
1
- const version = "0.19.7";
1
+ const version = "0.19.9";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
5
5
  "@nuxt/schema": "^3.15.4",
6
6
  "@silgi/ecosystem": "^0.2.0",
7
- h3: "^1.14.0",
7
+ h3: "^1.15.1",
8
8
  nitropack: "^2.10.4",
9
9
  nuxt: "^3.15.3",
10
10
  typescript: "^5.7.3",
@@ -1,4 +1,5 @@
1
1
  import { defineSilgiPreset } from "silgi/kit";
2
+ import { peerDependencies } from "silgi/meta";
2
3
  const h3 = defineSilgiPreset(
3
4
  {
4
5
  static: true,
@@ -8,6 +9,14 @@ const h3 = defineSilgiPreset(
8
9
  },
9
10
  prerender: {
10
11
  crawlLinks: true
12
+ },
13
+ hooks: {
14
+ "prepare:installPackages": async (packages) => {
15
+ packages.dependencies = {
16
+ ...packages.dependencies,
17
+ h3: peerDependencies.h3
18
+ };
19
+ }
11
20
  }
12
21
  },
13
22
  {
@@ -1,4 +1,5 @@
1
1
  import { defineSilgiPreset } from "silgi/kit";
2
+ import { peerDependencies } from "silgi/meta";
2
3
  const nitro = defineSilgiPreset(
3
4
  {
4
5
  static: true,
@@ -24,6 +25,14 @@ const nitro = defineSilgiPreset(
24
25
  "!{{ silgi.serverDir }}/**"
25
26
  ]
26
27
  },
28
+ hooks: {
29
+ "prepare:installPackages": async (packages) => {
30
+ packages.dependencies = {
31
+ ...packages.dependencies,
32
+ h3: peerDependencies.h3
33
+ };
34
+ }
35
+ },
27
36
  storages: ["data", "/assets"]
28
37
  },
29
38
  {
@@ -1,4 +1,5 @@
1
1
  import { defineSilgiPreset } from "silgi/kit";
2
+ import { peerDependencies } from "silgi/meta";
2
3
  const nuxt = defineSilgiPreset(
3
4
  {
4
5
  static: true,
@@ -25,6 +26,14 @@ const nuxt = defineSilgiPreset(
25
26
  "!{{ silgi.serverDir }}/**"
26
27
  ]
27
28
  },
29
+ hooks: {
30
+ "prepare:installPackages": async (packages) => {
31
+ packages.dependencies = {
32
+ ...packages.dependencies,
33
+ h3: peerDependencies.h3
34
+ };
35
+ }
36
+ },
28
37
  storages: ["data", "/assets"]
29
38
  },
30
39
  {
@@ -535,7 +535,7 @@ interface SilgiRouterTypes {
535
535
  type BaseSilgiMethodType = 'post' | 'delete' | 'put' | 'get' | keyof SilgiRuntimeMethods | (string & {});
536
536
  interface DefaultHooks {
537
537
  }
538
- type DeepPartial<T> = T extends void ? T : T extends Record<string, any> ? {
538
+ type DeepPartial<T> = T extends (...args: any[]) => any ? T : T extends Record<string, any> ? {
539
539
  [P in keyof T]?: DeepPartial<T[P]>;
540
540
  } : T;
541
541
  type Awaitable<T> = T | Promise<T>;
@@ -796,7 +796,7 @@ interface SilgiCLIOptions extends PresetOptions {
796
796
  /**
797
797
  * Silgi input config (silgi.config)
798
798
  */
799
- interface SilgiCLIConfig extends DeepPartial<Omit<SilgiCLIOptions, 'preset' | 'compatibilityDate'>>, C12InputConfig<SilgiCLIConfig>, Partial<SilgiModuleOptions> {
799
+ interface SilgiCLIConfig extends DeepPartial<Omit<SilgiCLIOptions, 'preset' | 'compatibilityDate' | '_config' | '_c12'>>, C12InputConfig<SilgiCLIConfig>, Partial<SilgiModuleOptions> {
800
800
  preset?: PresetNameInput;
801
801
  extends?: string | string[] | SilgiPreset;
802
802
  compatibilityDate?: CompatibilityDateSpec;
@@ -535,7 +535,7 @@ interface SilgiRouterTypes {
535
535
  type BaseSilgiMethodType = 'post' | 'delete' | 'put' | 'get' | keyof SilgiRuntimeMethods | (string & {});
536
536
  interface DefaultHooks {
537
537
  }
538
- type DeepPartial<T> = T extends void ? T : T extends Record<string, any> ? {
538
+ type DeepPartial<T> = T extends (...args: any[]) => any ? T : T extends Record<string, any> ? {
539
539
  [P in keyof T]?: DeepPartial<T[P]>;
540
540
  } : T;
541
541
  type Awaitable<T> = T | Promise<T>;
@@ -796,7 +796,7 @@ interface SilgiCLIOptions extends PresetOptions {
796
796
  /**
797
797
  * Silgi input config (silgi.config)
798
798
  */
799
- interface SilgiCLIConfig extends DeepPartial<Omit<SilgiCLIOptions, 'preset' | 'compatibilityDate'>>, C12InputConfig<SilgiCLIConfig>, Partial<SilgiModuleOptions> {
799
+ interface SilgiCLIConfig extends DeepPartial<Omit<SilgiCLIOptions, 'preset' | 'compatibilityDate' | '_config' | '_c12'>>, C12InputConfig<SilgiCLIConfig>, Partial<SilgiModuleOptions> {
800
800
  preset?: PresetNameInput;
801
801
  extends?: string | string[] | SilgiPreset;
802
802
  compatibilityDate?: CompatibilityDateSpec;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.19.7",
4
+ "version": "0.19.9",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {
@@ -80,7 +80,7 @@
80
80
  "@nuxt/kit": "^3.15.3",
81
81
  "@nuxt/schema": "^3.15.4",
82
82
  "@silgi/ecosystem": "^0.2.0",
83
- "h3": "^1.14.0",
83
+ "h3": "^1.15.1",
84
84
  "nitropack": "^2.10.4",
85
85
  "nuxt": "^3.15.3",
86
86
  "typescript": "^5.7.3",