@intlayer/config 9.0.0-canary.10 → 9.0.0-canary.12

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.
Files changed (67) hide show
  1. package/dist/cjs/bundle/index.cjs +1 -1
  2. package/dist/cjs/callers/base.cjs +42 -0
  3. package/dist/cjs/callers/base.cjs.map +1 -0
  4. package/dist/cjs/callers/compat/i18next.cjs +27 -0
  5. package/dist/cjs/callers/compat/i18next.cjs.map +1 -0
  6. package/dist/cjs/callers/compat/lingui.cjs +82 -0
  7. package/dist/cjs/callers/compat/lingui.cjs.map +1 -0
  8. package/dist/cjs/callers/compat/nextIntl.cjs +44 -0
  9. package/dist/cjs/callers/compat/nextIntl.cjs.map +1 -0
  10. package/dist/cjs/callers/compat/reactI18next.cjs +50 -0
  11. package/dist/cjs/callers/compat/reactI18next.cjs.map +1 -0
  12. package/dist/cjs/callers/compat/reactIntl.cjs +31 -0
  13. package/dist/cjs/callers/compat/reactIntl.cjs.map +1 -0
  14. package/dist/cjs/callers/compat/useIntl.cjs +46 -0
  15. package/dist/cjs/callers/compat/useIntl.cjs.map +1 -0
  16. package/dist/cjs/callers/compat/vueI18n.cjs +26 -0
  17. package/dist/cjs/callers/compat/vueI18n.cjs.map +1 -0
  18. package/dist/cjs/callers/index.cjs +87 -0
  19. package/dist/cjs/callers/index.cjs.map +1 -0
  20. package/dist/cjs/callers/transform.cjs +46 -0
  21. package/dist/cjs/callers/transform.cjs.map +1 -0
  22. package/dist/cjs/callers/types.cjs +0 -0
  23. package/dist/esm/callers/base.mjs +40 -0
  24. package/dist/esm/callers/base.mjs.map +1 -0
  25. package/dist/esm/callers/compat/i18next.mjs +25 -0
  26. package/dist/esm/callers/compat/i18next.mjs.map +1 -0
  27. package/dist/esm/callers/compat/lingui.mjs +80 -0
  28. package/dist/esm/callers/compat/lingui.mjs.map +1 -0
  29. package/dist/esm/callers/compat/nextIntl.mjs +42 -0
  30. package/dist/esm/callers/compat/nextIntl.mjs.map +1 -0
  31. package/dist/esm/callers/compat/reactI18next.mjs +48 -0
  32. package/dist/esm/callers/compat/reactI18next.mjs.map +1 -0
  33. package/dist/esm/callers/compat/reactIntl.mjs +29 -0
  34. package/dist/esm/callers/compat/reactIntl.mjs.map +1 -0
  35. package/dist/esm/callers/compat/useIntl.mjs +44 -0
  36. package/dist/esm/callers/compat/useIntl.mjs.map +1 -0
  37. package/dist/esm/callers/compat/vueI18n.mjs +24 -0
  38. package/dist/esm/callers/compat/vueI18n.mjs.map +1 -0
  39. package/dist/esm/callers/index.mjs +72 -0
  40. package/dist/esm/callers/index.mjs.map +1 -0
  41. package/dist/esm/callers/transform.mjs +43 -0
  42. package/dist/esm/callers/transform.mjs.map +1 -0
  43. package/dist/esm/callers/types.mjs +0 -0
  44. package/dist/types/callers/base.d.ts +14 -0
  45. package/dist/types/callers/base.d.ts.map +1 -0
  46. package/dist/types/callers/compat/i18next.d.ts +12 -0
  47. package/dist/types/callers/compat/i18next.d.ts.map +1 -0
  48. package/dist/types/callers/compat/lingui.d.ts +7 -0
  49. package/dist/types/callers/compat/lingui.d.ts.map +1 -0
  50. package/dist/types/callers/compat/nextIntl.d.ts +13 -0
  51. package/dist/types/callers/compat/nextIntl.d.ts.map +1 -0
  52. package/dist/types/callers/compat/reactI18next.d.ts +15 -0
  53. package/dist/types/callers/compat/reactI18next.d.ts.map +1 -0
  54. package/dist/types/callers/compat/reactIntl.d.ts +16 -0
  55. package/dist/types/callers/compat/reactIntl.d.ts.map +1 -0
  56. package/dist/types/callers/compat/useIntl.d.ts +12 -0
  57. package/dist/types/callers/compat/useIntl.d.ts.map +1 -0
  58. package/dist/types/callers/compat/vueI18n.d.ts +12 -0
  59. package/dist/types/callers/compat/vueI18n.d.ts.map +1 -0
  60. package/dist/types/callers/index.d.ts +49 -0
  61. package/dist/types/callers/index.d.ts.map +1 -0
  62. package/dist/types/callers/transform.d.ts +57 -0
  63. package/dist/types/callers/transform.d.ts.map +1 -0
  64. package/dist/types/callers/types.d.ts +152 -0
  65. package/dist/types/callers/types.d.ts.map +1 -0
  66. package/dist/types/configFile/configurationSchema.d.ts +7 -7
  67. package/package.json +7 -2
@@ -0,0 +1,49 @@
1
+ import { CallerDescriptor, CallerResultShape, CallerValueSource } from "./types.js";
2
+ import { BASE_CALLERS } from "./base.js";
3
+ import { I18NEXT_CALLERS } from "./compat/i18next.js";
4
+ import { LINGUI_CALLERS } from "./compat/lingui.js";
5
+ import { NEXT_INTL_CALLERS } from "./compat/nextIntl.js";
6
+ import { REACT_I18NEXT_CALLERS } from "./compat/reactI18next.js";
7
+ import { REACT_INTL_CALLERS } from "./compat/reactIntl.js";
8
+ import { USE_INTL_CALLERS } from "./compat/useIntl.js";
9
+ import { VUE_I18N_CALLERS } from "./compat/vueI18n.js";
10
+ import { SwcExtraCallerConfig, getRewritableCallers, toSwcExtraCallers } from "./transform.js";
11
+
12
+ //#region src/callers/index.d.ts
13
+ /**
14
+ * Compat-adapter callers, grouped in one list. Each compat package's bundler
15
+ * plugin injects its own slice (e.g. `REACT_I18NEXT_CALLERS`) into the build
16
+ * pipeline; this aggregate exists for consumers that need every syntax at
17
+ * once, such as the LSP.
18
+ */
19
+ declare const COMPAT_CALLERS: CallerDescriptor[];
20
+ /** Base + compat callers — the full registry the matchers run against. */
21
+ declare const ALL_CALLERS: CallerDescriptor[];
22
+ /**
23
+ * Descriptors indexed by caller name. A name can map to several descriptors
24
+ * (e.g. `Trans` exists in both react-i18next and lingui with different
25
+ * attributes); matchers try them in registry order.
26
+ */
27
+ declare const CALLERS_BY_NAME: Map<string, CallerDescriptor[]>;
28
+ /**
29
+ * Caller names whose dictionary key can appear as a positional string literal
30
+ * argument (`caller('key', …)` / `caller(locale, 'key', …)`). Used to build
31
+ * text-search regexes over project source files (find-references) and the
32
+ * completion trigger pattern. Callers whose key never appears positionally
33
+ * (fixed namespace, options object, JSX-only) are excluded on purpose.
34
+ */
35
+ declare const getPositionalKeyCallerNames: () => string[];
36
+ /**
37
+ * Returns `true` when the descriptor may participate in matching for a file
38
+ * importing from `importSources`. Descriptors flagged `requiresImport` only
39
+ * activate when the file imports from one of their declared modules;
40
+ * everything else is always active (results are still validated against the
41
+ * project's dictionaries downstream).
42
+ *
43
+ * @param descriptor - The caller descriptor to gate.
44
+ * @param fileImportSources - Module specifiers imported by the analysed file.
45
+ */
46
+ declare const isCallerActive: (descriptor: CallerDescriptor, fileImportSources: ReadonlySet<string>) => boolean;
47
+ //#endregion
48
+ export { ALL_CALLERS, BASE_CALLERS, CALLERS_BY_NAME, COMPAT_CALLERS, type CallerDescriptor, type CallerResultShape, type CallerValueSource, I18NEXT_CALLERS, LINGUI_CALLERS, NEXT_INTL_CALLERS, REACT_I18NEXT_CALLERS, REACT_INTL_CALLERS, type SwcExtraCallerConfig, USE_INTL_CALLERS, VUE_I18N_CALLERS, getPositionalKeyCallerNames, getRewritableCallers, isCallerActive, toSwcExtraCallers };
49
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/callers/index.ts"],"mappings":";;;;;;;;;;;;;AAmCA;;;;;cAAa,cAAA,EAAgB,gBAAA;;cAWhB,WAAA,EAAa,gBAAA;;;AAU1B;;;cAAa,eAAA,EAAiB,GAAA,SAAY,gBAAA;;AAuB1C;;;;;AAwBA;cAxBa,2BAAA;;;;;;;;;;;cAwBA,cAAA,GACX,UAAA,EAAY,gBAAA,EACZ,iBAAA,EAAmB,WAAA"}
@@ -0,0 +1,57 @@
1
+ import { CallerDescriptor } from "./types.js";
2
+
3
+ //#region src/callers/transform.d.ts
4
+ /**
5
+ * Wire format of an extra caller forwarded to the `@intlayer/swc` plugin.
6
+ *
7
+ * Field names mirror the serde attributes of `ExtraCallerConfig` in
8
+ * `packages/@intlayer/swc/src/lib.rs` — both sides must stay in sync.
9
+ */
10
+ type SwcExtraCallerConfig = {
11
+ /** The function name the user calls, e.g. `"useTranslation"`. */callerName: string; /** Module specifiers exporting the function (original + `@intlayer/*`). */
12
+ importSources: string[];
13
+ /**
14
+ * Zero-based index of the positional argument holding the namespace string.
15
+ * Omitted for fixed/option namespace callers.
16
+ */
17
+ namespaceArgIndex?: number;
18
+ /**
19
+ * Compile-time constant namespace — the dictionary ident is inserted as a
20
+ * new first argument (lingui's `useLingui()`).
21
+ */
22
+ fixedNamespace?: string;
23
+ /**
24
+ * Namespace read from a property of an options-object argument — the
25
+ * dictionary ident is inserted as a new first argument and the property is
26
+ * rewritten to the key-prefix remainder (vue-i18n's `useI18n({ namespace })`).
27
+ */
28
+ namespaceOption?: {
29
+ argumentIndex: number;
30
+ property: string;
31
+ }; /** Replacement function name for static import mode, e.g. `"useDictionary"`. */
32
+ staticReplacement: string; /** Replacement function name for dynamic/fetch mode, e.g. `"useDictionaryDynamic"`. */
33
+ dynamicReplacement: string;
34
+ };
35
+ /**
36
+ * Returns the callers of a registry slice that the optimize pass can rewrite
37
+ * at build time: plain imported functions carrying both replacement names.
38
+ *
39
+ * Method-matched callers (`i18n.getFixedT`) and JSX components are excluded —
40
+ * their call sites cannot be re-pointed through an import specifier rename.
41
+ */
42
+ declare const getRewritableCallers: (descriptors: CallerDescriptor[]) => CallerDescriptor[];
43
+ /**
44
+ * Serialises the rewritable callers of a registry slice into the
45
+ * `@intlayer/swc` plugin wire format (`extraCallers` option).
46
+ *
47
+ * Callers whose namespace can only be derived per-message id
48
+ * (`path-first-segment`) are skipped: the transform cannot bind a single
49
+ * dictionary to the call site.
50
+ *
51
+ * @param descriptors - Registry slice, e.g. `REACT_I18NEXT_CALLERS`.
52
+ * @returns Configs ready to pass as `swcExtraCallers` / `extraCallers`.
53
+ */
54
+ declare const toSwcExtraCallers: (descriptors: CallerDescriptor[]) => SwcExtraCallerConfig[];
55
+ //#endregion
56
+ export { SwcExtraCallerConfig, getRewritableCallers, toSwcExtraCallers };
57
+ //# sourceMappingURL=transform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transform.d.ts","names":[],"sources":["../../../src/callers/transform.ts"],"mappings":";;;;;AAQA;;;;KAAY,oBAAA;EAIV,iEAFA,UAAA,UAYA;EAVA,aAAA;EAgBoB;;;;EAXpB,iBAAA;EAekB;AAUpB;;;EApBE,cAAA;EAqBa;;;;;EAfb,eAAA;IAAoB,aAAA;IAAuB,QAAA;EAAA,GA8C9B;EA5Cb,iBAAA,UA6CC;EA3CD,kBAAA;AAAA;;;;;;;;cAUW,oBAAA,GACX,WAAA,EAAa,gBAAA,OACZ,gBAAA;;;;;;;;;;;;cA6BU,iBAAA,GACX,WAAA,EAAa,gBAAA,OACZ,oBAAA"}
@@ -0,0 +1,152 @@
1
+ //#region src/callers/types.d.ts
2
+ /**
3
+ * Shared caller-descriptor model.
4
+ *
5
+ * A "caller" is any function or JSX component through which application code
6
+ * reads intlayer content: the base getters (`useIntlayer`, `getIntlayer`) and
7
+ * every compat-adapter entry point (`useTranslation`, `useTranslations`,
8
+ * `formatMessage`, lingui's `t`/`_`, …).
9
+ *
10
+ * This registry is the single source of truth consumed by:
11
+ * - `@intlayer/babel` — field-usage analysis (purge/minify) and the optimize
12
+ * pass that rewrites caller invocations to `useDictionary(...)` /
13
+ * `useDictionaryDynamic(...)` with pre-imported dictionaries.
14
+ * - `@intlayer/swc` — the same optimize pass for Next.js builds; descriptors
15
+ * are serialised to the plugin's wire format via `toSwcExtraCallers`.
16
+ * - `@intlayer/lsp` and the VS Code extension — AST/regex matchers powering
17
+ * go-to-definition, references and completion.
18
+ * - Each compat package's bundler plugin — injects its library's descriptors
19
+ * into the pipelines above, so no compat-specific name is hard-coded in the
20
+ * core packages.
21
+ */
22
+ /**
23
+ * Where a value (namespace/dictionary key, or key prefix) is read from a call
24
+ * expression.
25
+ */
26
+ type CallerValueSource = /** Positional argument holding a string literal, e.g. `useTranslations('ns')`. */{
27
+ from: 'argument';
28
+ index: number;
29
+ } /** Property of an options-object argument, e.g. `useI18n({ namespace: 'ns' })`. */ | {
30
+ from: 'option';
31
+ argumentIndex: number;
32
+ property: string;
33
+ }
34
+ /**
35
+ * Compile-time constant — every call site reads the same dictionary.
36
+ * Used by single-catalog libraries such as lingui (`messages`).
37
+ */
38
+ | {
39
+ from: 'fixed';
40
+ value: string;
41
+ }
42
+ /**
43
+ * The first dot-segment of the message id passed to the call itself.
44
+ * Used by react-intl where `formatMessage({ id: 'home.title' })` encodes
45
+ * both the dictionary key (`home`) and the field path (`title`).
46
+ */
47
+ | {
48
+ from: 'path-first-segment';
49
+ };
50
+ /**
51
+ * How translated content is obtained from the caller's result.
52
+ *
53
+ * - `'content'` — returns the dictionary content object; fields are
54
+ * read through member access or destructuring
55
+ * (`useIntlayer`, `getIntlayer`).
56
+ * - `'return-value'` — returns the translation function directly:
57
+ * `const t = useTranslations('ns'); t('key')`.
58
+ * - `'destructured-t'` — returns an object holding `t`:
59
+ * `const { t } = useTranslation('ns'); t('key')`.
60
+ * - `'self'` — the caller IS the translation call; the message id is
61
+ * one of its own arguments (`formatMessage`, `i18n._`).
62
+ * - `'all'` — field-level analysis is impossible; the whole
63
+ * dictionary is marked as used (Angular templates,
64
+ * lingui hashed ids).
65
+ */
66
+ type CallerResultShape = 'content' | 'return-value' | 'destructured-t' | 'self' | 'all';
67
+ /**
68
+ * Full description of a single caller.
69
+ */
70
+ type CallerDescriptor = {
71
+ /** Function or JSX component name, e.g. `'useTranslation'`, `'FormattedMessage'`. */callerName: string; /** Library identifier grouping related callers, e.g. `'react-i18next'`. */
72
+ library: string;
73
+ /**
74
+ * Module specifiers the caller may be imported from. Includes both the
75
+ * original library names and the `@intlayer/*` adapter equivalents, because
76
+ * bundler aliasing keeps user imports on the original names.
77
+ */
78
+ importSources: string[];
79
+ /**
80
+ * When `true`, the caller only participates in matching when the analysed
81
+ * file imports from one of `importSources`. Used for generic names such as
82
+ * lingui's `t` / `_` that would otherwise produce false positives.
83
+ */
84
+ requiresImport?: boolean;
85
+ /**
86
+ * When `true`, the caller is also matched as a method on any object
87
+ * (`i18n.getFixedT(...)`, `intl.formatMessage(...)`) in addition to the
88
+ * bare-identifier form.
89
+ */
90
+ matchAsMethod?: boolean; /** When `true`, also match the tagged-template form, e.g. lingui's ``t`…` ``. */
91
+ matchAsTaggedTemplate?: boolean;
92
+ /**
93
+ * When set, the caller is also matched as a JSX element whose attribute of
94
+ * this name holds the message id, e.g. `<FormattedMessage id="home.title" />`
95
+ * or `<Trans i18nKey="richText" />`.
96
+ */
97
+ jsxIdAttribute?: string;
98
+ /**
99
+ * Optional JSX attribute carrying the namespace (dictionary key), e.g.
100
+ * react-i18next's `<Trans ns="home" i18nKey="title" />`.
101
+ */
102
+ jsxNamespaceAttribute?: string;
103
+ /**
104
+ * Where the dictionary key is read from, tried in declaration order.
105
+ * The first source that yields a static string wins.
106
+ */
107
+ namespaceSources: CallerValueSource[];
108
+ /**
109
+ * Optional key prefix prepended to every message path resolved through the
110
+ * returned translation function, e.g. `getFixedT(lng, ns, keyPrefix)` or
111
+ * `useTranslation(ns, { keyPrefix })`.
112
+ */
113
+ keyPrefixSources?: CallerValueSource[];
114
+ /**
115
+ * When `true`, a dotted namespace is split at the first `.`: the first
116
+ * segment is the dictionary key and the rest becomes a key prefix.
117
+ * next-intl semantics: `useTranslations('about.counter')` reads the
118
+ * `about` dictionary with every `t()` path prefixed by `counter`.
119
+ */
120
+ nestedNamespace?: boolean;
121
+ /**
122
+ * When `true`, the caller may be invoked without any namespace
123
+ * (`useTranslations()` root scope) — the dictionary key is then the first
124
+ * dot-segment of each message id passed to the returned `t()`.
125
+ */
126
+ allowRootScope?: boolean; /** How translated content is obtained from the caller's result. */
127
+ translationFunction: CallerResultShape;
128
+ /**
129
+ * When `true`, the message id is a *flat* dictionary field that itself may
130
+ * contain dots (lingui catalogs). When unset, dotted ids map onto nested
131
+ * dictionary objects and are split into a field path.
132
+ */
133
+ flatKey?: boolean;
134
+ /**
135
+ * Name of the dictionary-accepting replacement used by the optimize pass in
136
+ * static import mode, e.g. `'useDictionary'`. The replacement must be
137
+ * exported from every module in `importSources` (the compat package exports
138
+ * it; original-library specifiers are bundler-aliased to the compat package).
139
+ *
140
+ * Only callers with both replacements set — and matched as plain imported
141
+ * functions (not `matchAsMethod` / JSX) — are rewritten at build time.
142
+ */
143
+ staticReplacement?: string;
144
+ /**
145
+ * Name of the dictionary-accepting replacement used by the optimize pass in
146
+ * dynamic/fetch import mode, e.g. `'useDictionaryDynamic'`.
147
+ */
148
+ dynamicReplacement?: string;
149
+ };
150
+ //#endregion
151
+ export { CallerDescriptor, CallerResultShape, CallerValueSource };
152
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/callers/types.ts"],"mappings":";;AAyBA;;;;;;;;;;;;;;AAiCA;;;;;AAUA;;;;AAAA,KA3CY,iBAAA;EAEN,IAAA;EAAkB,KAAA;AAAA;EAElB,IAAA;EAAgB,aAAA;EAAuB,QAAA;AAAA;;;;;;EAKvC,IAAA;EAAe,KAAA;AAAA;;;;;;;EAMf,IAAA;AAAA;;;;;;;;;;;;;;;;;KAkBM,iBAAA;;;;KAUA,gBAAA;uFAEV,UAAA;EAEA,OAAA;;;;;;EAMA,aAAA;;;;;;EAMA,cAAA;;;;;;EAMA,aAAA;EAEA,qBAAA;;;;;;EAMA,cAAA;;;;;EAKA,qBAAA;;;;;EAKA,gBAAA,EAAkB,iBAAA;;;;;;EAMlB,gBAAA,GAAmB,iBAAA;;;;;;;EAOnB,eAAA;;;;;;EAMA,cAAA;EAEA,mBAAA,EAAqB,iBAAA;;;;;;EAMrB,OAAA;;;;;;;;;;EAUA,iBAAA;;;;;EAKA,kBAAA;AAAA"}
@@ -20,9 +20,9 @@ declare const cookiesAttributesSchema: z.ZodObject<{
20
20
  secure: z.ZodOptional<z.ZodBoolean>;
21
21
  httpOnly: z.ZodOptional<z.ZodBoolean>;
22
22
  sameSite: z.ZodOptional<z.ZodEnum<{
23
+ none: "none";
23
24
  strict: "strict";
24
25
  lax: "lax";
25
- none: "none";
26
26
  }>>;
27
27
  expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Date, Date>, z.ZodNumber, z.ZodString]>>;
28
28
  maxAge: z.ZodOptional<z.ZodNumber>;
@@ -48,9 +48,9 @@ declare const storageSchema: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodEnum
48
48
  secure: z.ZodOptional<z.ZodBoolean>;
49
49
  httpOnly: z.ZodOptional<z.ZodBoolean>;
50
50
  sameSite: z.ZodOptional<z.ZodEnum<{
51
+ none: "none";
51
52
  strict: "strict";
52
53
  lax: "lax";
53
- none: "none";
54
54
  }>>;
55
55
  expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Date, Date>, z.ZodNumber, z.ZodString]>>;
56
56
  maxAge: z.ZodOptional<z.ZodNumber>;
@@ -74,9 +74,9 @@ declare const storageSchema: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodEnum
74
74
  secure: z.ZodOptional<z.ZodBoolean>;
75
75
  httpOnly: z.ZodOptional<z.ZodBoolean>;
76
76
  sameSite: z.ZodOptional<z.ZodEnum<{
77
+ none: "none";
77
78
  strict: "strict";
78
79
  lax: "lax";
79
- none: "none";
80
80
  }>>;
81
81
  expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Date, Date>, z.ZodNumber, z.ZodString]>>;
82
82
  maxAge: z.ZodOptional<z.ZodNumber>;
@@ -159,9 +159,9 @@ declare const routingSchema: z.ZodObject<{
159
159
  secure: z.ZodOptional<z.ZodBoolean>;
160
160
  httpOnly: z.ZodOptional<z.ZodBoolean>;
161
161
  sameSite: z.ZodOptional<z.ZodEnum<{
162
+ none: "none";
162
163
  strict: "strict";
163
164
  lax: "lax";
164
- none: "none";
165
165
  }>>;
166
166
  expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Date, Date>, z.ZodNumber, z.ZodString]>>;
167
167
  maxAge: z.ZodOptional<z.ZodNumber>;
@@ -185,9 +185,9 @@ declare const routingSchema: z.ZodObject<{
185
185
  secure: z.ZodOptional<z.ZodBoolean>;
186
186
  httpOnly: z.ZodOptional<z.ZodBoolean>;
187
187
  sameSite: z.ZodOptional<z.ZodEnum<{
188
+ none: "none";
188
189
  strict: "strict";
189
190
  lax: "lax";
190
- none: "none";
191
191
  }>>;
192
192
  expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Date, Date>, z.ZodNumber, z.ZodString]>>;
193
193
  maxAge: z.ZodOptional<z.ZodNumber>;
@@ -357,9 +357,9 @@ declare const intlayerConfigSchema: z.ZodObject<{
357
357
  secure: z.ZodOptional<z.ZodBoolean>;
358
358
  httpOnly: z.ZodOptional<z.ZodBoolean>;
359
359
  sameSite: z.ZodOptional<z.ZodEnum<{
360
+ none: "none";
360
361
  strict: "strict";
361
362
  lax: "lax";
362
- none: "none";
363
363
  }>>;
364
364
  expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Date, Date>, z.ZodNumber, z.ZodString]>>;
365
365
  maxAge: z.ZodOptional<z.ZodNumber>;
@@ -383,9 +383,9 @@ declare const intlayerConfigSchema: z.ZodObject<{
383
383
  secure: z.ZodOptional<z.ZodBoolean>;
384
384
  httpOnly: z.ZodOptional<z.ZodBoolean>;
385
385
  sameSite: z.ZodOptional<z.ZodEnum<{
386
+ none: "none";
386
387
  strict: "strict";
387
388
  lax: "lax";
388
- none: "none";
389
389
  }>>;
390
390
  expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Date, Date>, z.ZodNumber, z.ZodString]>>;
391
391
  maxAge: z.ZodOptional<z.ZodNumber>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/config",
3
- "version": "9.0.0-canary.10",
3
+ "version": "9.0.0-canary.12",
4
4
  "private": false,
5
5
  "description": "Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.",
6
6
  "keywords": [
@@ -53,6 +53,11 @@
53
53
  "require": "./dist/cjs/built.cjs",
54
54
  "import": "./dist/esm/built.mjs"
55
55
  },
56
+ "./callers": {
57
+ "types": "./dist/types/callers/index.d.ts",
58
+ "import": "./dist/esm/callers/index.mjs",
59
+ "require": "./dist/cjs/callers/index.cjs"
60
+ },
56
61
  "./utils": {
57
62
  "types": "./dist/types/utils/index.d.ts",
58
63
  "require": "./dist/cjs/utils/index.cjs",
@@ -160,7 +165,7 @@
160
165
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
161
166
  },
162
167
  "dependencies": {
163
- "@intlayer/types": "9.0.0-canary.10",
168
+ "@intlayer/types": "9.0.0-canary.12",
164
169
  "defu": "6.1.7",
165
170
  "dotenv": "17.4.2",
166
171
  "esbuild": "0.28.1",