@i18n-micro/types 1.0.15 → 1.1.0

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/dist/index.d.ts CHANGED
@@ -64,20 +64,20 @@ export interface ModuleOptions {
64
64
  plural?: string | PluralFunc;
65
65
  disablePageLocales?: boolean;
66
66
  fallbackLocale?: string;
67
- localeCookie?: string;
67
+ localeCookie?: string | null;
68
68
  debug?: boolean;
69
69
  globalLocaleRoutes?: GlobalLocaleRoutes;
70
70
  customRegexMatcher?: string | RegExp;
71
71
  noPrefixRedirect?: boolean;
72
72
  canonicalQueryWhitelist?: string[];
73
73
  excludePatterns?: (string | RegExp)[];
74
+ localizedRouteNamePrefix?: string;
74
75
  routeLocales?: Record<string, string[]>;
75
76
  routeDisableMeta?: Record<string, boolean | string[]>;
76
77
  missingWarn?: boolean;
77
- experimental?: {
78
- i18nPreviousPageFallback?: boolean;
79
- hmr?: boolean;
80
- };
78
+ previousPageFallback?: boolean;
79
+ hmr?: boolean;
80
+ experimental?: Record<string, unknown>;
81
81
  }
82
82
  export interface ModuleOptionsExtend extends ModuleOptions {
83
83
  dateBuild: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i18n-micro/types",
3
- "version": "1.0.15",
3
+ "version": "1.1.0",
4
4
  "description": "",
5
5
  "repository": "s00d/nuxt-i18n-micro",
6
6
  "license": "MIT",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "keywords": [],
24
24
  "devDependencies": {
25
- "vite-plugin-dts": "^4.3.0"
25
+ "vite-plugin-dts": "^4.5.4"
26
26
  },
27
27
  "scripts": {
28
28
  "build": "vite build",
package/src/index.ts CHANGED
@@ -87,20 +87,20 @@ export interface ModuleOptions {
87
87
  plural?: string | PluralFunc
88
88
  disablePageLocales?: boolean
89
89
  fallbackLocale?: string
90
- localeCookie?: string
90
+ localeCookie?: string | null
91
91
  debug?: boolean
92
92
  globalLocaleRoutes?: GlobalLocaleRoutes
93
93
  customRegexMatcher?: string | RegExp
94
94
  noPrefixRedirect?: boolean
95
95
  canonicalQueryWhitelist?: string[]
96
96
  excludePatterns?: (string | RegExp)[]
97
+ localizedRouteNamePrefix?: string
97
98
  routeLocales?: Record<string, string[]>
98
99
  routeDisableMeta?: Record<string, boolean | string[]>
99
100
  missingWarn?: boolean
100
- experimental?: {
101
- i18nPreviousPageFallback?: boolean
102
- hmr?: boolean
103
- }
101
+ previousPageFallback?: boolean
102
+ hmr?: boolean
103
+ experimental?: Record<string, unknown>
104
104
  }
105
105
 
106
106
  export interface ModuleOptionsExtend extends ModuleOptions {