Skip to content

Commit ea03d42

Browse files
authored
Merge branch 'main' into v1.6994.0
2 parents 821dc77 + fadb9f4 commit ea03d42

File tree

112 files changed

+6225
-2158
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+6225
-2158
lines changed

examples/nodejs-minimal/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// Correct imports for Scaleway SDK v2.27.0+
2-
import * as http from 'http'
2+
33
import { loadProfileFromConfigurationFile } from '@scaleway/configuration-loader'
44
import { Registry } from '@scaleway/sdk'
55
import { createClient } from '@scaleway/sdk-client'
6+
import * as http from 'http'
67

78
const hostname = '127.0.0.1'
89
const port = 3000

examples/serverless-function-minimal/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { loadProfileFromEnvironmentValues } from '@scaleway/configuration-loader'
2-
import { Errors, Registry, createClient } from '@scaleway/sdk'
2+
import { createClient, Errors, Registry } from '@scaleway/sdk'
33

44
// Profile will be loade from the variables in your `.env` file.
55
const loadedProfile = loadProfileFromEnvironmentValues()

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"turbo": "2.5.6",
8585
"typedoc": "0.27.6",
8686
"typescript": "5.8.3",
87-
"vite": "6.3.5",
87+
"vite": "6.3.6",
8888
"vitest": "3.1.2"
8989
},
9090
"packageManager": "[email protected]"

packages/client/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## 1.3.1 (2025-09-10)
7+
8+
**Note:** Version bump only for package @scaleway/sdk-client
9+
610
# 1.3.0 (2025-06-18)
711

812
### Bug Fixes

packages/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@scaleway/sdk-client",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"license": "Apache-2.0",
55
"description": "Scaleway SDK Client",
66
"keywords": [

packages/client/src/bridge.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
/** List all helpers required by APIs */
22
export { isJSONObject } from './helpers/json'
3-
export { waitForResource } from './internal/async/interval-retrier'
3+
export {
4+
resolveOneOf,
5+
unmarshalArrayOfObject,
6+
unmarshalDate,
7+
unmarshalMapOfObject,
8+
urlParams,
9+
validatePathParam,
10+
} from './helpers/marshalling'
411
export type { WaitForOptions } from './internal/async/interval-retrier'
12+
export { waitForResource } from './internal/async/interval-retrier'
513
export { API } from './scw/api'
614
export type { DefaultValues } from './scw/client-settings'
7-
export type {
8-
Money,
9-
ServiceInfo,
10-
ScwFile,
11-
TimeSeries,
12-
} from './scw/custom-types'
13-
export { Decimal } from './scw/custom-types'
1415
export {
15-
marshalScwFile,
16+
marshalBlobToScwFile,
17+
marshalDecimal,
1618
marshalMoney,
19+
marshalScwFile,
1720
marshalTimeSeries,
18-
marshalDecimal,
19-
marshalBlobToScwFile,
21+
unmarshalDecimal,
2022
unmarshalMoney,
2123
unmarshalScwFile,
2224
unmarshalServiceInfo,
2325
unmarshalTimeSeries,
2426
unmarshalTimeSeriesPoint,
25-
unmarshalDecimal,
2627
} from './scw/custom-marshalling'
28+
export type {
29+
Money,
30+
ScwFile,
31+
ServiceInfo,
32+
TimeSeries,
33+
} from './scw/custom-types'
34+
export { Decimal } from './scw/custom-types'
2735
export { enrichForPagination } from './scw/fetch/resource-paginator'
2836
export type { Region, Zone } from './scw/locality'
29-
export {
30-
resolveOneOf,
31-
unmarshalDate,
32-
unmarshalArrayOfObject,
33-
unmarshalMapOfObject,
34-
urlParams,
35-
validatePathParam,
36-
} from './helpers/marshalling'

packages/client/src/index.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ export type {
55
export type {
66
NetworkInterceptors,
77
RequestInterceptor,
8-
ResponseInterceptor,
98
ResponseErrorInterceptor,
9+
ResponseInterceptor,
1010
} from './internal/interceptors/types'
1111
export { enableConsoleLogger, setLogger } from './internal/logger'
1212
export type { Logger } from './internal/logger/logger'
13-
export { createClient, createAdvancedClient } from './scw/client'
14-
export { AUTH_HEADER_KEY, SESSION_HEADER_KEY } from './scw/constants'
13+
export * from './internals'
1514
export type { Client } from './scw/client'
16-
export type { Profile } from './scw/client-ini-profile'
17-
export type { Settings } from './scw/client-settings'
15+
export { createAdvancedClient, createClient } from './scw/client'
16+
export type { ClientConfig } from './scw/client-ini-factory'
1817
export {
1918
withAdditionalInterceptors,
2019
withDefaultPageSize,
@@ -23,11 +22,11 @@ export {
2322
withUserAgent,
2423
withUserAgentSuffix,
2524
} from './scw/client-ini-factory'
26-
export type { ClientConfig } from './scw/client-ini-factory'
27-
export { Decimal } from './scw/custom-types'
25+
export type { Profile } from './scw/client-ini-profile'
26+
export type { Settings } from './scw/client-settings'
27+
export { AUTH_HEADER_KEY, SESSION_HEADER_KEY } from './scw/constants'
2828
export type { Money, ScwFile, TimeSeries } from './scw/custom-types'
29+
export { Decimal } from './scw/custom-types'
2930
export * as Errors from './scw/errors/standard'
30-
export type { Region, Zone } from './scw/locality'
31-
export * from './internals'
31+
export type { ApiLocality, Region, Zone } from './scw/locality'
3232
export { toApiLocality } from './scw/locality'
33-
export type { ApiLocality } from './scw/locality'

packages/client/src/internal/logger/console-logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { LevelResolver, shouldLog } from './level-resolver'
21
import type { LogLevel } from './level-resolver'
2+
import { LevelResolver, shouldLog } from './level-resolver'
33
import type { Logger } from './logger'
44

55
/**

packages/client/src/internals.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
export { isJSONObject } from './helpers/json'
2+
export {
3+
resolveOneOf,
4+
unmarshalArrayOfObject,
5+
unmarshalDate,
6+
unmarshalMapOfObject,
7+
urlParams,
8+
validatePathParam,
9+
} from './helpers/marshalling'
210
export {
311
createExponentialBackoffStrategy,
412
tryAtIntervals,
513
waitForResource,
614
} from './internal/async/interval-retrier'
715
export { addAsyncHeaderInterceptor } from './internal/interceptors/helpers'
816
export { API } from './scw/api'
9-
1017
export { authenticateWithSessionToken } from './scw/auth'
11-
1218
export type { DefaultValues } from './scw/client-settings'
1319
export {
1420
marshalBlobToScwFile,
@@ -25,12 +31,4 @@ export {
2531
unmarshalTimeSeriesPoint,
2632
} from './scw/custom-marshalling'
2733
export type { ServiceInfo } from './scw/custom-types'
28-
export {
29-
resolveOneOf,
30-
unmarshalDate,
31-
unmarshalArrayOfObject,
32-
unmarshalMapOfObject,
33-
urlParams,
34-
validatePathParam,
35-
} from './helpers/marshalling'
3634
export { enrichForPagination } from './scw/fetch/resource-paginator'

packages/client/src/scw/__tests__/client.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, expect, it } from 'vitest'
22
import { createAdvancedClient, createClient } from '../client'
3-
import { withProfile } from '../client-ini-factory'
43
import type { ClientConfig } from '../client-ini-factory'
4+
import { withProfile } from '../client-ini-factory'
55
import type { Settings } from '../client-settings'
66

77
const withApiURL =

0 commit comments

Comments
 (0)