@smooai/config 2.1.1 → 2.1.3
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/nextjs/index.mjs +3 -3
- package/dist/vite/index.mjs +5 -5
- package/package.json +27 -2
package/dist/nextjs/index.mjs
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getConfig
|
|
3
|
-
} from "../chunk-FAF45VZA.mjs";
|
|
4
1
|
import {
|
|
5
2
|
useFeatureFlag,
|
|
6
3
|
usePublicConfig
|
|
@@ -8,6 +5,9 @@ import {
|
|
|
8
5
|
import {
|
|
9
6
|
ConfigContext
|
|
10
7
|
} from "../chunk-N6Z4AZZA.mjs";
|
|
8
|
+
import {
|
|
9
|
+
getConfig
|
|
10
|
+
} from "../chunk-FAF45VZA.mjs";
|
|
11
11
|
import {
|
|
12
12
|
ConfigClient
|
|
13
13
|
} from "../chunk-3B5SRHJ2.mjs";
|
package/dist/vite/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useFeatureFlag,
|
|
3
|
-
usePublicConfig,
|
|
4
|
-
useSecretConfig
|
|
5
|
-
} from "../chunk-VL7AIM2X.mjs";
|
|
6
1
|
import {
|
|
7
2
|
getPreloadedConfig,
|
|
8
3
|
preloadConfig,
|
|
9
4
|
resetPreload
|
|
10
5
|
} from "../chunk-VUYQFQ63.mjs";
|
|
6
|
+
import {
|
|
7
|
+
useFeatureFlag,
|
|
8
|
+
usePublicConfig,
|
|
9
|
+
useSecretConfig
|
|
10
|
+
} from "../chunk-VL7AIM2X.mjs";
|
|
11
11
|
import {
|
|
12
12
|
ConfigProvider,
|
|
13
13
|
useConfigClient
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smooai/config",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "Type-safe multi-language configuration management with schema validation, three-tier config (public, secret, feature flags), and runtime client support for TypeScript, Python, Rust, and Go.",
|
|
5
5
|
"homepage": "https://github.com/SmooAI/config#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -32,6 +32,31 @@
|
|
|
32
32
|
"require": "./dist/index.js",
|
|
33
33
|
"default": "./dist/index.js"
|
|
34
34
|
},
|
|
35
|
+
"./nextjs": {
|
|
36
|
+
"types": "./dist/nextjs/index.d.ts",
|
|
37
|
+
"import": "./dist/nextjs/index.mjs",
|
|
38
|
+
"require": "./dist/nextjs/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./react": {
|
|
41
|
+
"types": "./dist/react/index.d.ts",
|
|
42
|
+
"import": "./dist/react/index.mjs",
|
|
43
|
+
"require": "./dist/react/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./vite": {
|
|
46
|
+
"types": "./dist/vite/index.d.ts",
|
|
47
|
+
"import": "./dist/vite/index.mjs",
|
|
48
|
+
"require": "./dist/vite/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./config": {
|
|
51
|
+
"types": "./dist/config/index.d.ts",
|
|
52
|
+
"import": "./dist/config/index.mjs",
|
|
53
|
+
"require": "./dist/config/index.js"
|
|
54
|
+
},
|
|
55
|
+
"./utils": {
|
|
56
|
+
"types": "./dist/utils/index.d.ts",
|
|
57
|
+
"import": "./dist/utils/index.mjs",
|
|
58
|
+
"require": "./dist/utils/index.js"
|
|
59
|
+
},
|
|
35
60
|
"./*": {
|
|
36
61
|
"types": "./dist/*.d.ts",
|
|
37
62
|
"import": "./dist/*.mjs",
|
|
@@ -99,7 +124,7 @@
|
|
|
99
124
|
},
|
|
100
125
|
"scripts": {
|
|
101
126
|
"build": "pnpm build:lib && pnpm build:cli && pnpm run python:build && pnpm run rust:build && pnpm run go:build",
|
|
102
|
-
"build:lib": "pnpm
|
|
127
|
+
"build:lib": "pnpm tsup",
|
|
103
128
|
"build:cli": "tsup --config tsup.cli.config.ts",
|
|
104
129
|
"check-all": "pnpm run typecheck && pnpm run lint && pnpm run format:check && pnpm run test && pnpm run python:typecheck && pnpm run python:lint && pnpm run python:format:check && pnpm run rust:fmt:check && pnpm run rust:lint && pnpm run rust:test && pnpm run go:fmt:check && pnpm run go:lint && pnpm run go:test && pnpm run build",
|
|
105
130
|
"ci:publish": "pnpm build && pnpm changeset publish",
|