@scaleway/configuration-loader 2.3.0 → 2.4.1

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,8 +1,8 @@
1
1
 
2
- > @scaleway/configuration-loader@2.2.0 build /home/runner/work/scaleway-sdk-js/scaleway-sdk-js/packages/configuration-loader
2
+ > @scaleway/configuration-loader@2.4.0 build /home/runner/work/scaleway-sdk-js/scaleway-sdk-js/packages/configuration-loader
3
3
  > vite build --config ../../vite.config.ts && pnpm run type:generate
4
4
 
5
- vite v8.0.1 building ssr environment for production...
5
+ vite v8.0.8 building ssr environment for production...
6
6
  
7
7
  rendering chunks...
8
8
  computing gzip size...
@@ -16,8 +16,8 @@ dist/yml-loader.js 2.78 kB │ gzip: 1.09 kB
16
16
  dist/__tests__/config-loader.test.js 3.08 kB │ gzip: 1.04 kB
17
17
  dist/config-loader.js 4.34 kB │ gzip: 0.95 kB
18
18
 
19
- ✓ built in 32ms
19
+ ✓ built in 34ms
20
20
 
21
- > @scaleway/configuration-loader@2.2.0 type:generate /home/runner/work/scaleway-sdk-js/scaleway-sdk-js/packages/configuration-loader
22
- > tsc --declaration -p tsconfig.build.json
21
+ > @scaleway/configuration-loader@2.4.0 type:generate /home/runner/work/scaleway-sdk-js/scaleway-sdk-js/packages/configuration-loader
22
+ > tsgo --declaration -p tsconfig.build.json
23
23
 
package/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
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)
7
+
8
+ **Note:** Version bump only for package @scaleway/configuration-loader
9
+
10
+
11
+
12
+
13
+
14
+ # 2.4.0 (2026-04-17)
15
+
16
+ ### Features
17
+
18
+ - **sdk:** unify tools ([#2903](https://github.com/scaleway/scaleway-sdk-js/issues/2903)) ([e0b99e4](https://github.com/scaleway/scaleway-sdk-js/commit/e0b99e47da92c514e06aef2a6c739b9653c9ba45))
19
+
6
20
  # 2.3.0 (2026-04-02)
7
21
 
8
22
  ### Features
package/biome.jsonc CHANGED
@@ -3,11 +3,11 @@
3
3
  "assist": {
4
4
  "actions": {
5
5
  "source": {
6
- "organizeImports": "on"
7
- }
6
+ "organizeImports": "on",
7
+ },
8
8
  },
9
- "enabled": true
9
+ "enabled": true,
10
10
  },
11
11
  "extends": "//",
12
- "root": false
12
+ "root": false,
13
13
  }
@@ -18,7 +18,7 @@ export declare const loadProfileFromEnvironmentValues: () => Profile;
18
18
  *
19
19
  * @public
20
20
  */
21
- export declare const loadAllProfilesFromConfigurationFile: (params?: Readonly<AllProfilesFromFileParams>) => Record<string, Profile>;
21
+ export declare const loadAllProfilesFromConfigurationFile: (params?: Readonly<AllProfilesFromFileParams> | undefined) => 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>) => Profile;
34
+ export declare const loadProfileFromConfigurationFile: (params?: Readonly<ProfileFromFileParams> | undefined) => 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>) => Promise<Record<string, Profile>>;
48
+ export declare const loadAllProfilesFromConfigurationFileAsync: (params?: Readonly<AllProfilesFromFileParams> | undefined) => 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>) => Promise<Profile>;
63
+ export declare const loadProfileFromConfigurationFileAsync: (params?: Readonly<ProfileFromFileParams> | undefined) => Promise<Profile>;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { loadAllProfilesFromConfigurationFile, loadAllProfilesFromConfigurationFileAsync, loadProfileFromConfigurationFile, loadProfileFromConfigurationFileAsync, loadProfileFromEnvironmentValues, } from './config-loader.js';
2
- export type { AllProfilesFromFileParams, Profile, ProfileFromFileParams, } from './types.js';
2
+ export type { AllProfilesFromFileParams, Profile, ProfileFromFileParams } from './types.js';
3
3
  export { hasSecureFilePermissions } from './yml-loader.js';
package/package.json CHANGED
@@ -1,19 +1,13 @@
1
1
  {
2
2
  "name": "@scaleway/configuration-loader",
3
- "version": "2.3.0",
4
- "license": "Apache-2.0",
3
+ "version": "2.4.1",
5
4
  "description": "Load configuration via file or environment for NodeJS.",
6
- "publishConfig": {
7
- "access": "public"
8
- },
5
+ "license": "Apache-2.0",
9
6
  "repository": {
10
7
  "type": "git",
11
8
  "url": "git+https://github.com/scaleway/scaleway-sdk-js",
12
9
  "directory": "packages/configuration-loader"
13
10
  },
14
- "engines": {
15
- "node": ">=20.19.6"
16
- },
17
11
  "type": "module",
18
12
  "exports": {
19
13
  ".": {
@@ -21,12 +15,19 @@
21
15
  "default": "./dist/index.js"
22
16
  }
23
17
  },
18
+ "publishConfig": {
19
+ "access": "public"
20
+ },
24
21
  "devDependencies": {
25
- "@types/node": "20.19.35"
22
+ "@types/node": "20.19.35",
23
+ "@repo/configs": "^0.1.1"
24
+ },
25
+ "engines": {
26
+ "node": ">=20.19.6"
26
27
  },
27
28
  "scripts": {
28
- "typecheck": "tsc --noEmit",
29
- "type:generate": "tsc --declaration -p tsconfig.build.json",
29
+ "typecheck": "tsgo --noEmit",
30
+ "type:generate": "tsgo --declaration -p tsconfig.build.json",
30
31
  "build": "vite build --config ../../vite.config.ts && pnpm run type:generate",
31
32
  "build:profile": "npx vite-bundle-visualizer -c ../../vite.config.ts"
32
33
  }
@@ -7,12 +7,5 @@
7
7
  "outDir": "dist",
8
8
  "skipLibCheck": true
9
9
  },
10
- "exclude": [
11
- "dist/*",
12
- "*.config.ts",
13
- "*.setup.ts",
14
- "**/__tests__",
15
- "**/__mocks__",
16
- "src/**/*.test.tsx"
17
- ]
10
+ "exclude": ["dist/*", "*.config.ts", "*.setup.ts", "**/__tests__", "**/__mocks__", "src/**/*.test.tsx"]
18
11
  }
package/tsconfig.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "extends": "../../tsconfig.json",
2
+ "extends": "@repo/configs/tsconfig/generated",
3
3
  "include": ["src/**/*.ts", "src/**/*.tsx", "*.config.ts"]
4
4
  }
package/vite.config.ts ADDED
@@ -0,0 +1,12 @@
1
+ import { viteConfig } from '@repo/configs'
2
+ import { defineConfig, mergeConfig } from 'vite'
3
+
4
+ const newConfig = defineConfig({
5
+ build: {
6
+ lib: {
7
+ entry: 'src/index.gen.ts',
8
+ },
9
+ },
10
+ })
11
+
12
+ export default mergeConfig(viteConfig, newConfig)