@dyanet/nextjs-config-aws 1.0.0-beta.1 → 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/README.md +208 -173
- package/dist/cjs/client/env.js +9 -1
- package/dist/cjs/client/env.js.map +1 -1
- package/dist/cjs/components/public-env-script.js +4 -0
- package/dist/cjs/components/public-env-script.js.map +1 -1
- package/dist/cjs/index.js +54 -28
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react.js +50 -0
- package/dist/cjs/react.js.map +1 -0
- package/dist/cjs/server/get-config.js +74 -28
- package/dist/cjs/server/get-config.js.map +1 -1
- package/dist/cjs/server/index.js +7 -6
- package/dist/cjs/server/index.js.map +1 -1
- package/dist/cjs/server/internal/environment.js +38 -0
- package/dist/cjs/server/internal/environment.js.map +1 -0
- package/dist/cjs/server/internal/index.js +13 -0
- package/dist/cjs/server/internal/index.js.map +1 -0
- package/dist/cjs/server/internal/loader-factory.js +61 -0
- package/dist/cjs/server/internal/loader-factory.js.map +1 -0
- package/dist/esm/client/env.js +9 -1
- package/dist/esm/client/env.js.map +1 -1
- package/dist/esm/components/public-env-script.js +4 -0
- package/dist/esm/components/public-env-script.js.map +1 -1
- package/dist/esm/index.js +57 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/react.js +43 -0
- package/dist/esm/react.js.map +1 -0
- package/dist/esm/server/get-config.js +74 -28
- package/dist/esm/server/get-config.js.map +1 -1
- package/dist/esm/server/index.js +6 -1
- package/dist/esm/server/index.js.map +1 -1
- package/dist/esm/server/internal/environment.js +35 -0
- package/dist/esm/server/internal/environment.js.map +1 -0
- package/dist/esm/server/internal/index.js +8 -0
- package/dist/esm/server/internal/index.js.map +1 -0
- package/dist/esm/server/internal/loader-factory.js +58 -0
- package/dist/esm/server/internal/loader-factory.js.map +1 -0
- package/dist/types/client/env.d.ts +9 -1
- package/dist/types/client/env.d.ts.map +1 -1
- package/dist/types/components/public-env-script.d.ts +4 -0
- package/dist/types/components/public-env-script.d.ts.map +1 -1
- package/dist/types/index.d.ts +54 -7
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/react.d.ts +43 -0
- package/dist/types/react.d.ts.map +1 -0
- package/dist/types/server/get-config.d.ts +102 -24
- package/dist/types/server/get-config.d.ts.map +1 -1
- package/dist/types/server/index.d.ts +8 -1
- package/dist/types/server/index.d.ts.map +1 -1
- package/dist/types/server/internal/environment.d.ts +30 -0
- package/dist/types/server/internal/environment.d.ts.map +1 -0
- package/dist/types/server/internal/index.d.ts +8 -0
- package/dist/types/server/internal/index.d.ts.map +1 -0
- package/dist/types/server/internal/loader-factory.d.ts +51 -0
- package/dist/types/server/internal/loader-factory.d.ts.map +1 -0
- package/package.json +9 -4
|
@@ -1,35 +1,110 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Server-side configuration loading for Next.js applications.
|
|
3
3
|
* Provides a cached getConfig() function that uses ConfigManager from @dyanet/config-aws.
|
|
4
|
+
*
|
|
5
|
+
* This module provides a simplified, opinionated API that hides loader complexity.
|
|
6
|
+
* For advanced usage such as custom loaders, direct AWS SDK integration, or
|
|
7
|
+
* fine-grained control over configuration loading, import from `@dyanet/config-aws` directly:
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* // Advanced usage with custom loaders
|
|
12
|
+
* import {
|
|
13
|
+
* ConfigManager,
|
|
14
|
+
* EnvironmentLoader,
|
|
15
|
+
* SecretsManagerLoader,
|
|
16
|
+
* SSMParameterStoreLoader,
|
|
17
|
+
* } from '@dyanet/config-aws';
|
|
18
|
+
*
|
|
19
|
+
* const manager = new ConfigManager({
|
|
20
|
+
* loaders: [
|
|
21
|
+
* new EnvironmentLoader({ prefix: 'APP_' }),
|
|
22
|
+
* new SecretsManagerLoader({ secretName: '/my-app/config' }),
|
|
23
|
+
* ],
|
|
24
|
+
* schema: mySchema,
|
|
25
|
+
* });
|
|
26
|
+
* await manager.load();
|
|
27
|
+
* const config = manager.getAll();
|
|
28
|
+
* ```
|
|
4
29
|
*/
|
|
5
30
|
import type { ZodType } from 'zod';
|
|
6
|
-
import {
|
|
31
|
+
import { EnvironmentMode } from './internal/environment';
|
|
32
|
+
import { AwsOptions } from './internal/loader-factory';
|
|
7
33
|
/**
|
|
8
|
-
* Options for Next.js configuration loading
|
|
34
|
+
* Options for Next.js configuration loading.
|
|
35
|
+
*
|
|
36
|
+
* This interface provides a simplified, opinionated API that hides loader complexity
|
|
37
|
+
* and provides automatic environment detection.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```typescript
|
|
41
|
+
* // Minimal usage - just schema
|
|
42
|
+
* const config = await getConfig({ schema: mySchema });
|
|
43
|
+
*
|
|
44
|
+
* // With AWS Secrets Manager
|
|
45
|
+
* const config = await getConfig({
|
|
46
|
+
* schema: mySchema,
|
|
47
|
+
* aws: { secretName: '/myapp/config' }
|
|
48
|
+
* });
|
|
49
|
+
*
|
|
50
|
+
* // Force AWS in development
|
|
51
|
+
* const config = await getConfig({
|
|
52
|
+
* schema: mySchema,
|
|
53
|
+
* aws: { secretName: '/myapp/config' },
|
|
54
|
+
* forceAwsInDev: true
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
9
57
|
*/
|
|
10
58
|
export interface NextConfigOptions<T = Record<string, unknown>> {
|
|
11
59
|
/** Zod schema for validation */
|
|
12
60
|
schema?: ZodType<T>;
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
61
|
+
/**
|
|
62
|
+
* AWS configuration options.
|
|
63
|
+
* When provided, enables loading from AWS services based on environment.
|
|
64
|
+
*/
|
|
65
|
+
aws?: AwsOptions;
|
|
66
|
+
/**
|
|
67
|
+
* Override environment detection ('development' | 'production' | 'test').
|
|
68
|
+
* When provided, this takes precedence over NODE_ENV auto-detection.
|
|
69
|
+
*/
|
|
70
|
+
environment?: EnvironmentMode;
|
|
71
|
+
/**
|
|
72
|
+
* Force AWS loading even in development mode.
|
|
73
|
+
* By default, AWS sources are only loaded in production.
|
|
74
|
+
* @default false
|
|
75
|
+
*/
|
|
76
|
+
forceAwsInDev?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Enable caching.
|
|
79
|
+
* @default true
|
|
80
|
+
*/
|
|
18
81
|
cache?: boolean;
|
|
19
|
-
/**
|
|
82
|
+
/**
|
|
83
|
+
* Cache TTL in milliseconds.
|
|
84
|
+
* @default 60000 (1 minute)
|
|
85
|
+
*/
|
|
20
86
|
cacheTTL?: number;
|
|
21
|
-
/**
|
|
87
|
+
/**
|
|
88
|
+
* Enable logging.
|
|
89
|
+
* @default false
|
|
90
|
+
*/
|
|
22
91
|
enableLogging?: boolean;
|
|
23
92
|
}
|
|
24
93
|
/**
|
|
25
94
|
* Load configuration for Next.js server-side use.
|
|
26
95
|
*
|
|
27
|
-
* This function provides
|
|
28
|
-
*
|
|
96
|
+
* This function provides automatic environment detection and caching to avoid
|
|
97
|
+
* repeated AWS API calls during request handling. Configuration is cached based
|
|
98
|
+
* on the AWS options, environment, and forceAwsInDev setting.
|
|
99
|
+
*
|
|
100
|
+
* Environment Behavior:
|
|
101
|
+
* - development: env vars + .env.local/.env files, AWS only if forceAwsInDev
|
|
102
|
+
* - production: env vars + .env file + AWS sources (if configured)
|
|
103
|
+
* - test: env vars only (no file or AWS access)
|
|
29
104
|
*
|
|
30
105
|
* @example
|
|
31
106
|
* ```typescript
|
|
32
|
-
* import { getConfig
|
|
107
|
+
* import { getConfig } from '@dyanet/nextjs-config-aws';
|
|
33
108
|
* import { z } from 'zod';
|
|
34
109
|
*
|
|
35
110
|
* const schema = z.object({
|
|
@@ -37,23 +112,26 @@ export interface NextConfigOptions<T = Record<string, unknown>> {
|
|
|
37
112
|
* API_KEY: z.string(),
|
|
38
113
|
* });
|
|
39
114
|
*
|
|
40
|
-
* //
|
|
41
|
-
*
|
|
42
|
-
* const config = await getConfig({
|
|
43
|
-
* schema,
|
|
44
|
-
* loaders: [
|
|
45
|
-
* new EnvironmentLoader(),
|
|
46
|
-
* new SecretsManagerLoader({ secretName: '/my-app/config' }),
|
|
47
|
-
* ],
|
|
48
|
-
* precedence: 'aws-first',
|
|
49
|
-
* });
|
|
115
|
+
* // Minimal usage - auto-detects environment
|
|
116
|
+
* const config = await getConfig({ schema });
|
|
50
117
|
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
118
|
+
* // With AWS Secrets Manager (loaded in production)
|
|
119
|
+
* const config = await getConfig({
|
|
120
|
+
* schema,
|
|
121
|
+
* aws: { secretName: '/my-app/config', region: 'us-east-1' }
|
|
122
|
+
* });
|
|
123
|
+
*
|
|
124
|
+
* // Force AWS in development for testing
|
|
125
|
+
* const config = await getConfig({
|
|
126
|
+
* schema,
|
|
127
|
+
* aws: { secretName: '/my-app/config' },
|
|
128
|
+
* forceAwsInDev: true
|
|
129
|
+
* });
|
|
53
130
|
* ```
|
|
54
131
|
*
|
|
55
132
|
* @param options Configuration options
|
|
56
133
|
* @returns Promise resolving to the validated configuration object
|
|
134
|
+
* @throws {ValidationError} When schema validation fails (includes invalid key names)
|
|
57
135
|
*/
|
|
58
136
|
export declare function getConfig<T = Record<string, unknown>>(options?: NextConfigOptions<T>): Promise<T>;
|
|
59
137
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-config.d.ts","sourceRoot":"","sources":["../../../src/server/get-config.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"get-config.d.ts","sourceRoot":"","sources":["../../../src/server/get-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAMnC,OAAO,EAAqB,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAiB,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC5D,gCAAgC;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAEpB;;;OAGG;IACH,GAAG,CAAC,EAAE,UAAU,CAAC;IAEjB;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAE9B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AA6CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAsB,SAAS,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACzD,OAAO,GAAE,iBAAiB,CAAC,CAAC,CAAM,GACjC,OAAO,CAAC,CAAC,CAAC,CA6DZ;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,IAAI,CAIvE"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Server-side exports for Next.js configuration management.
|
|
3
|
+
*
|
|
4
|
+
* This module exports React-free configuration utilities that work in all
|
|
5
|
+
* server contexts including API routes, middleware, and server components.
|
|
6
|
+
*
|
|
7
|
+
* For React context providers (ConfigProvider, useConfig), import from
|
|
8
|
+
* '@dyanet/nextjs-config-aws/react' instead.
|
|
3
9
|
*/
|
|
4
10
|
export { getConfig, clearConfigCache, getConfigCacheSize, invalidateConfig, type NextConfigOptions, } from './get-config';
|
|
5
|
-
export {
|
|
11
|
+
export type { AwsOptions } from './internal/loader-factory';
|
|
12
|
+
export type { EnvironmentMode } from './internal/environment';
|
|
6
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,iBAAiB,GACvB,MAAM,cAAc,CAAC;AAGtB,YAAY,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Environment detection utilities for Next.js configuration.
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Supported environment modes for configuration loading.
|
|
7
|
+
*/
|
|
8
|
+
export type EnvironmentMode = 'development' | 'production' | 'test';
|
|
9
|
+
/**
|
|
10
|
+
* Detect the current environment mode based on NODE_ENV.
|
|
11
|
+
*
|
|
12
|
+
* @returns The detected environment mode:
|
|
13
|
+
* - 'production' if NODE_ENV is 'production'
|
|
14
|
+
* - 'test' if NODE_ENV is 'test'
|
|
15
|
+
* - 'development' for all other cases (including undefined)
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```typescript
|
|
19
|
+
* // NODE_ENV=production
|
|
20
|
+
* detectEnvironment(); // 'production'
|
|
21
|
+
*
|
|
22
|
+
* // NODE_ENV=test
|
|
23
|
+
* detectEnvironment(); // 'test'
|
|
24
|
+
*
|
|
25
|
+
* // NODE_ENV=development or undefined
|
|
26
|
+
* detectEnvironment(); // 'development'
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare function detectEnvironment(): EnvironmentMode;
|
|
30
|
+
//# sourceMappingURL=environment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../../src/server/internal/environment.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG,YAAY,GAAG,MAAM,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,iBAAiB,IAAI,eAAe,CAYnD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal utilities for Next.js configuration.
|
|
3
|
+
* These are not exported from the public API.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export { detectEnvironment, type EnvironmentMode } from './environment';
|
|
7
|
+
export { createLoaders, type LoaderFactoryOptions } from './loader-factory';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/server/internal/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal loader factory for Next.js configuration.
|
|
3
|
+
* Creates loaders based on environment and options.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
import { ConfigLoader } from '@dyanet/config-aws';
|
|
7
|
+
import { EnvironmentMode } from './environment';
|
|
8
|
+
/**
|
|
9
|
+
* AWS configuration options for the loader factory.
|
|
10
|
+
*/
|
|
11
|
+
export interface AwsOptions {
|
|
12
|
+
/** Secret name for AWS Secrets Manager */
|
|
13
|
+
secretName?: string;
|
|
14
|
+
/** Parameter path prefix for SSM Parameter Store */
|
|
15
|
+
ssmPrefix?: string;
|
|
16
|
+
/** AWS region (defaults to AWS_REGION env var) */
|
|
17
|
+
region?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Options for the loader factory.
|
|
21
|
+
*/
|
|
22
|
+
export interface LoaderFactoryOptions {
|
|
23
|
+
/** The environment mode to use for loader selection */
|
|
24
|
+
environment: EnvironmentMode;
|
|
25
|
+
/** AWS configuration options */
|
|
26
|
+
aws?: AwsOptions;
|
|
27
|
+
/** Force AWS loading even in development mode */
|
|
28
|
+
forceAwsInDev?: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Environment Behavior Matrix:
|
|
32
|
+
*
|
|
33
|
+
* | Environment | Env Vars | .env Files | AWS Sources |
|
|
34
|
+
* |-------------|----------|----------------------|-----------------------|
|
|
35
|
+
* | development | ✓ | .env.local, .env | Only if forceAwsInDev |
|
|
36
|
+
* | production | ✓ | .env | ✓ (if configured) |
|
|
37
|
+
* | test | ✓ | ✗ | ✗ |
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* Create loaders based on environment and options.
|
|
41
|
+
*
|
|
42
|
+
* This factory implements the environment behavior matrix:
|
|
43
|
+
* - development: env vars + .env.local/.env files, AWS only if forceAwsInDev
|
|
44
|
+
* - production: env vars + .env file + AWS sources (if configured)
|
|
45
|
+
* - test: env vars only (no file or AWS access)
|
|
46
|
+
*
|
|
47
|
+
* @param options - Factory options including environment and AWS config
|
|
48
|
+
* @returns Array of ConfigLoader instances
|
|
49
|
+
*/
|
|
50
|
+
export declare function createLoaders(options: LoaderFactoryOptions): ConfigLoader[];
|
|
51
|
+
//# sourceMappingURL=loader-factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader-factory.d.ts","sourceRoot":"","sources":["../../../../src/server/internal/loader-factory.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,YAAY,EAKb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,uDAAuD;IACvD,WAAW,EAAE,eAAe,CAAC;IAC7B,gCAAgC;IAChC,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB,iDAAiD;IACjD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;;;;;;GAQG;AAEH;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,YAAY,EAAE,CAmC3E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dyanet/nextjs-config-aws",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Next.js adapter for AWS configuration management with support for server components, runtime environment variables, and AWS services integration",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
"import": "./dist/esm/index.js",
|
|
11
11
|
"require": "./dist/cjs/index.js",
|
|
12
12
|
"types": "./dist/types/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./react": {
|
|
15
|
+
"import": "./dist/esm/react.js",
|
|
16
|
+
"require": "./dist/cjs/react.js",
|
|
17
|
+
"types": "./dist/types/react.d.ts"
|
|
13
18
|
}
|
|
14
19
|
},
|
|
15
20
|
"files": [
|
|
@@ -49,8 +54,8 @@
|
|
|
49
54
|
"author": "Dyanet",
|
|
50
55
|
"license": "MIT",
|
|
51
56
|
"engines": {
|
|
52
|
-
"node": ">=
|
|
53
|
-
"npm": ">=
|
|
57
|
+
"node": ">=20.0.0",
|
|
58
|
+
"npm": ">=10.0.0"
|
|
54
59
|
},
|
|
55
60
|
"publishConfig": {
|
|
56
61
|
"access": "public",
|
|
@@ -74,7 +79,7 @@
|
|
|
74
79
|
"jest": "^29.5.0",
|
|
75
80
|
"next": "^16.0.0",
|
|
76
81
|
"react": "^19.0.0",
|
|
77
|
-
"rimraf": "^
|
|
82
|
+
"rimraf": "^6.0.0",
|
|
78
83
|
"ts-jest": "^29.1.0",
|
|
79
84
|
"typescript": "^5.9.2",
|
|
80
85
|
"zod": "^3.22.0"
|