ai-localize-config 1.0.1 → 2.0.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/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # ai-localize-config
2
+
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - versoion change
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - ai-localize-shared@2.0.0
package/dist/index.d.mts CHANGED
@@ -12,7 +12,7 @@ declare const LocalizationConfigSchema: z.ZodObject<{
12
12
  ignorePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
13
13
  incrementalCache: z.ZodDefault<z.ZodBoolean>;
14
14
  cacheDir: z.ZodDefault<z.ZodString>;
15
- aws: z.ZodOptional<z.ZodObject<{
15
+ aws: z.ZodNullable<z.ZodOptional<z.ZodObject<{
16
16
  region: z.ZodDefault<z.ZodString>;
17
17
  bucket: z.ZodString;
18
18
  distributionId: z.ZodString;
@@ -36,7 +36,7 @@ declare const LocalizationConfigSchema: z.ZodObject<{
36
36
  legacyCdnPattern?: string | undefined;
37
37
  assetsPrefix?: string | undefined;
38
38
  profile?: string | undefined;
39
- }>>;
39
+ }>>>;
40
40
  plugins: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  framework: "react" | "react-cra" | "react-vite" | "react-nextjs" | "angular" | "angular-ngx" | "angular-i18n" | "vue" | "vue-i18n" | "jquery" | "vanilla-js" | "jsp" | "unknown";
@@ -58,7 +58,7 @@ declare const LocalizationConfigSchema: z.ZodObject<{
58
58
  cdnBaseUrl?: string | undefined;
59
59
  legacyCdnPattern?: string | undefined;
60
60
  profile?: string | undefined;
61
- } | undefined;
61
+ } | null | undefined;
62
62
  }, {
63
63
  framework?: "react" | "react-cra" | "react-vite" | "react-nextjs" | "angular" | "angular-ngx" | "angular-i18n" | "vue" | "vue-i18n" | "jquery" | "vanilla-js" | "jsp" | "unknown" | undefined;
64
64
  defaultLanguage?: string | undefined;
@@ -78,7 +78,7 @@ declare const LocalizationConfigSchema: z.ZodObject<{
78
78
  legacyCdnPattern?: string | undefined;
79
79
  assetsPrefix?: string | undefined;
80
80
  profile?: string | undefined;
81
- } | undefined;
81
+ } | null | undefined;
82
82
  plugins?: string[] | undefined;
83
83
  }>;
84
84
  type LocalizationConfigInput = z.input<typeof LocalizationConfigSchema>;
package/dist/index.d.ts CHANGED
@@ -12,7 +12,7 @@ declare const LocalizationConfigSchema: z.ZodObject<{
12
12
  ignorePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
13
13
  incrementalCache: z.ZodDefault<z.ZodBoolean>;
14
14
  cacheDir: z.ZodDefault<z.ZodString>;
15
- aws: z.ZodOptional<z.ZodObject<{
15
+ aws: z.ZodNullable<z.ZodOptional<z.ZodObject<{
16
16
  region: z.ZodDefault<z.ZodString>;
17
17
  bucket: z.ZodString;
18
18
  distributionId: z.ZodString;
@@ -36,7 +36,7 @@ declare const LocalizationConfigSchema: z.ZodObject<{
36
36
  legacyCdnPattern?: string | undefined;
37
37
  assetsPrefix?: string | undefined;
38
38
  profile?: string | undefined;
39
- }>>;
39
+ }>>>;
40
40
  plugins: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  framework: "react" | "react-cra" | "react-vite" | "react-nextjs" | "angular" | "angular-ngx" | "angular-i18n" | "vue" | "vue-i18n" | "jquery" | "vanilla-js" | "jsp" | "unknown";
@@ -58,7 +58,7 @@ declare const LocalizationConfigSchema: z.ZodObject<{
58
58
  cdnBaseUrl?: string | undefined;
59
59
  legacyCdnPattern?: string | undefined;
60
60
  profile?: string | undefined;
61
- } | undefined;
61
+ } | null | undefined;
62
62
  }, {
63
63
  framework?: "react" | "react-cra" | "react-vite" | "react-nextjs" | "angular" | "angular-ngx" | "angular-i18n" | "vue" | "vue-i18n" | "jquery" | "vanilla-js" | "jsp" | "unknown" | undefined;
64
64
  defaultLanguage?: string | undefined;
@@ -78,7 +78,7 @@ declare const LocalizationConfigSchema: z.ZodObject<{
78
78
  legacyCdnPattern?: string | undefined;
79
79
  assetsPrefix?: string | undefined;
80
80
  profile?: string | undefined;
81
- } | undefined;
81
+ } | null | undefined;
82
82
  plugins?: string[] | undefined;
83
83
  }>;
84
84
  type LocalizationConfigInput = z.input<typeof LocalizationConfigSchema>;
package/dist/index.js CHANGED
@@ -74,7 +74,7 @@ var LocalizationConfigSchema = import_zod.z.object({
74
74
  ignorePatterns: import_zod.z.array(import_zod.z.string()).default(["node_modules", "dist", ".git", "coverage"]),
75
75
  incrementalCache: import_zod.z.boolean().default(true),
76
76
  cacheDir: import_zod.z.string().default(".ai-localize-cache"),
77
- aws: AwsConfigSchema.optional(),
77
+ aws: AwsConfigSchema.optional().nullable(),
78
78
  plugins: import_zod.z.array(import_zod.z.string()).default([])
79
79
  });
80
80
 
package/dist/index.mjs CHANGED
@@ -35,7 +35,7 @@ var LocalizationConfigSchema = z.object({
35
35
  ignorePatterns: z.array(z.string()).default(["node_modules", "dist", ".git", "coverage"]),
36
36
  incrementalCache: z.boolean().default(true),
37
37
  cacheDir: z.string().default(".ai-localize-cache"),
38
- aws: AwsConfigSchema.optional(),
38
+ aws: AwsConfigSchema.optional().nullable(),
39
39
  plugins: z.array(z.string()).default([])
40
40
  });
41
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-localize-config",
3
- "version": "1.0.1",
3
+ "version": "2.0.0",
4
4
  "description": "Configuration loader and schema validator for ai-localize-core",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -16,7 +16,7 @@
16
16
  "zod": "^3.22.4",
17
17
  "cosmiconfig": "^9.0.0",
18
18
  "dotenv": "^16.4.1",
19
- "ai-localize-shared": "1.0.1"
19
+ "ai-localize-shared": "2.0.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "tsup": "^8.0.1",
package/src/schema.ts CHANGED
@@ -39,7 +39,7 @@ export const LocalizationConfigSchema = z.object({
39
39
  .default(['node_modules', 'dist', '.git', 'coverage']),
40
40
  incrementalCache: z.boolean().default(true),
41
41
  cacheDir: z.string().default('.ai-localize-cache'),
42
- aws: AwsConfigSchema.optional(),
42
+ aws: AwsConfigSchema.optional().nullable(),
43
43
  plugins: z.array(z.string()).default([]),
44
44
  });
45
45