@scaleway/configuration-loader 2.4.1 → 2.4.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.
@@ -1,6 +1,6 @@
1
1
 
2
- > @scaleway/configuration-loader@2.4.0 build /home/runner/work/scaleway-sdk-js/scaleway-sdk-js/packages/configuration-loader
3
- > vite build --config ../../vite.config.ts && pnpm run type:generate
2
+ > @scaleway/configuration-loader@2.4.2 build /home/runner/work/scaleway-sdk-js/scaleway-sdk-js/packages/configuration-loader
3
+ > vite build --config ../../vite.config.ts && pnpm run type:generate && pnpm run copy-test-fixtures
4
4
 
5
5
  vite v8.0.8 building ssr environment for production...
6
6
  
@@ -13,11 +13,15 @@ dist/path-resolver.js 0.96 kB │ gzip: 0.41 kB
13
13
  dist/__tests__/path-resolver.test.js 1.50 kB │ gzip: 0.57 kB
14
14
  dist/__tests__/yml-loader.test.js 2.63 kB │ gzip: 0.81 kB
15
15
  dist/yml-loader.js 2.78 kB │ gzip: 1.09 kB
16
- dist/__tests__/config-loader.test.js 3.08 kB │ gzip: 1.04 kB
16
+ dist/__tests__/config-loader.test.js 3.05 kB │ gzip: 1.03 kB
17
17
  dist/config-loader.js 4.34 kB │ gzip: 0.95 kB
18
18
 
19
- ✓ built in 34ms
19
+ ✓ built in 27ms
20
20
 
21
- > @scaleway/configuration-loader@2.4.0 type:generate /home/runner/work/scaleway-sdk-js/scaleway-sdk-js/packages/configuration-loader
21
+ > @scaleway/configuration-loader@2.4.2 type:generate /home/runner/work/scaleway-sdk-js/scaleway-sdk-js/packages/configuration-loader
22
22
  > tsgo --declaration -p tsconfig.build.json
23
23
 
24
+
25
+ > @scaleway/configuration-loader@2.4.2 copy-test-fixtures /home/runner/work/scaleway-sdk-js/scaleway-sdk-js/packages/configuration-loader
26
+ > mkdir -p dist/__tests__/data && cp src/__tests__/data/*.yaml dist/__tests__/data/
27
+
package/CHANGELOG.md CHANGED
@@ -3,7 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## 2.4.1 (2026-04-18)
6
+ ## 2.4.3 (2026-06-08)
7
+
8
+ **Note:** Version bump only for package @scaleway/configuration-loader
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.4.2](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/configuration-loader@2.4.1...@scaleway/configuration-loader@2.4.2) (2026-06-02)
7
15
 
8
16
  **Note:** Version bump only for package @scaleway/configuration-loader
9
17
 
@@ -11,6 +19,10 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
19
 
12
20
 
13
21
 
22
+ ## 2.4.1 (2026-04-18)
23
+
24
+ **Note:** Version bump only for package @scaleway/configuration-loader
25
+
14
26
  # 2.4.0 (2026-04-17)
15
27
 
16
28
  ### Features
@@ -18,7 +18,7 @@ export declare const loadProfileFromEnvironmentValues: () => Profile;
18
18
  *
19
19
  * @public
20
20
  */
21
- export declare const loadAllProfilesFromConfigurationFile: (params?: Readonly<AllProfilesFromFileParams> | undefined) => Record<string, Profile>;
21
+ export declare const loadAllProfilesFromConfigurationFile: (params?: Readonly<AllProfilesFromFileParams>) => Record<string, Profile>;
22
22
  /**
23
23
  * Loads profile from configuration file.
24
24
  *
@@ -31,7 +31,7 @@ export declare const loadAllProfilesFromConfigurationFile: (params?: Readonly<Al
31
31
  *
32
32
  * @public
33
33
  */
34
- export declare const loadProfileFromConfigurationFile: (params?: Readonly<ProfileFromFileParams> | undefined) => Profile;
34
+ export declare const loadProfileFromConfigurationFile: (params?: Readonly<ProfileFromFileParams>) => Profile;
35
35
  /**
36
36
  * Loads all profiles from configuration file (asynchronous).
37
37
  *
@@ -45,7 +45,7 @@ export declare const loadProfileFromConfigurationFile: (params?: Readonly<Profil
45
45
  *
46
46
  * @public
47
47
  */
48
- export declare const loadAllProfilesFromConfigurationFileAsync: (params?: Readonly<AllProfilesFromFileParams> | undefined) => Promise<Record<string, Profile>>;
48
+ export declare const loadAllProfilesFromConfigurationFileAsync: (params?: Readonly<AllProfilesFromFileParams>) => Promise<Record<string, Profile>>;
49
49
  /**
50
50
  * Loads profile from configuration file (asynchronous).
51
51
  *
@@ -60,4 +60,4 @@ export declare const loadAllProfilesFromConfigurationFileAsync: (params?: Readon
60
60
  *
61
61
  * @public
62
62
  */
63
- export declare const loadProfileFromConfigurationFileAsync: (params?: Readonly<ProfileFromFileParams> | undefined) => Promise<Profile>;
63
+ export declare const loadProfileFromConfigurationFileAsync: (params?: Readonly<ProfileFromFileParams>) => Promise<Profile>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/configuration-loader",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
4
4
  "description": "Load configuration via file or environment for NodeJS.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -19,16 +19,17 @@
19
19
  "access": "public"
20
20
  },
21
21
  "devDependencies": {
22
- "@types/node": "20.19.35",
22
+ "@types/node": "20.19.41",
23
23
  "@repo/configs": "^0.1.1"
24
24
  },
25
25
  "engines": {
26
- "node": ">=20.19.6"
26
+ "node": ">=20.20.2"
27
27
  },
28
28
  "scripts": {
29
29
  "typecheck": "tsgo --noEmit",
30
30
  "type:generate": "tsgo --declaration -p tsconfig.build.json",
31
- "build": "vite build --config ../../vite.config.ts && pnpm run type:generate",
31
+ "build": "vite build --config ../../vite.config.ts && pnpm run type:generate && pnpm run copy-test-fixtures",
32
+ "copy-test-fixtures": "mkdir -p dist/__tests__/data && cp src/__tests__/data/*.yaml dist/__tests__/data/",
32
33
  "build:profile": "npx vite-bundle-visualizer -c ../../vite.config.ts"
33
34
  }
34
35
  }
@@ -5,7 +5,8 @@
5
5
  "emitDeclarationOnly": true,
6
6
  "rootDir": "src",
7
7
  "outDir": "dist",
8
- "skipLibCheck": true
8
+ "skipLibCheck": true,
9
+ "types": ["node"]
9
10
  },
10
11
  "exclude": ["dist/*", "*.config.ts", "*.setup.ts", "**/__tests__", "**/__mocks__", "src/**/*.test.tsx"]
11
12
  }