@bstage-sdk/core 0.8.1 → 0.8.2

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/index.cjs CHANGED
@@ -174,7 +174,7 @@ var HttpTimeoutError = class extends Error {
174
174
  };
175
175
 
176
176
  // src/version.ts
177
- var VERSION = "0.8.1";
177
+ var VERSION = "0.8.2";
178
178
 
179
179
  // src/client/BstageClient.ts
180
180
  function resolveBaseUrl() {
package/dist/index.d.cts CHANGED
@@ -376,7 +376,7 @@ interface BstageI18nConfig {
376
376
  *
377
377
  * @example
378
378
  * ```ts
379
- * configureBstageI18n({ tier: 'mnetplus' })
379
+ * configureBstageI18n({ tier: 'my-tier' })
380
380
  * ```
381
381
  */
382
382
  declare function configureBstageI18n(config: BstageI18nConfig): void;
package/dist/index.d.ts CHANGED
@@ -376,7 +376,7 @@ interface BstageI18nConfig {
376
376
  *
377
377
  * @example
378
378
  * ```ts
379
- * configureBstageI18n({ tier: 'mnetplus' })
379
+ * configureBstageI18n({ tier: 'my-tier' })
380
380
  * ```
381
381
  */
382
382
  declare function configureBstageI18n(config: BstageI18nConfig): void;
package/dist/index.js CHANGED
@@ -119,7 +119,7 @@ var HttpTimeoutError = class extends Error {
119
119
  };
120
120
 
121
121
  // src/version.ts
122
- var VERSION = "0.8.1";
122
+ var VERSION = "0.8.2";
123
123
 
124
124
  // src/client/BstageClient.ts
125
125
  function resolveBaseUrl() {
package/docs/I18N.md CHANGED
@@ -147,7 +147,7 @@ cdn.static.bstage.in/static/i18n/{phase}/{system}[/{tier}]/latest.json
147
147
  ```ts
148
148
  import { configureBstageI18n } from '@bstage-sdk/core'
149
149
 
150
- configureBstageI18n({ tier: 'mnetplus' }) // origin·phase·system·tier·fetch 지정 가능
150
+ configureBstageI18n({ tier: 'my-tier' }) // origin·phase·system·tier·fetch 지정 가능
151
151
  ```
152
152
 
153
153
  > **미번역이면 폴백 사전을 본다** — 사전에는 키는 있고 **값만 빈 문자열**인 항목이 있다(어드민은 일부 로케일이 대부분 그렇다). 그런 키를 만나면 폴백 사전(`en` → `ko`)을 **그때 추가로 받아** 채운다. 번역이 다 있는 로케일에서는 추가 요청이 없다.
@@ -156,7 +156,7 @@ configureBstageI18n({ tier: 'mnetplus' }) // origin·phase·system·tier·fetch
156
156
 
157
157
  > **인증 fetch를 쓰지 않는다** — 번역 CDN은 공개 호스트다. 플랫폼이 주입하는 `__bstage_fetch__`는 URL을 가리지 않고 `Authorization`(+ dev/qa는 CF Access) 헤더를 붙이는데, 그러면 크로스 오리진 요청이 CORS preflight 대상이 되고 이 CDN은 `OPTIONS`에 403을 준다. 그래서 사전은 기본 `fetch`로 받는다(`BstageClient`는 게이트웨이를 부르므로 그쪽은 그대로 인증 fetch를 쓴다).
158
158
 
159
- > **알려진 오차** — `tier`는 런타임에 알 수 있는 신호가 없다(플랫폼은 서버에서 HTTP 헤더로 받는다). 그래서 기본 `inhouse`이며, hiand·flo·mnetplus 스페이스에 올라간 위젯은 위처럼 지정하지 않으면 inhouse 사전을 본다.
159
+ > **알려진 오차** — `tier`는 런타임에 알 수 있는 신호가 없다(플랫폼은 서버에서 HTTP 헤더로 받는다). 그래서 기본 `inhouse`이며, `inhouse`가 아닌 tier를 쓰는 스페이스에 올라간 위젯은 위처럼 지정하지 않으면 inhouse 사전을 본다. 그 스페이스의 tier 값은 운영자에게 확인한다.
160
160
 
161
161
  > **플랫폼 런타임과 독립이다** — 이 출처는 b.stage 플랫폼 앱이 자기 화면을 그릴 때 읽는 경로와 **의도적으로 분리**돼 있다. 지금은 같은 문구가 나오지만, TMS가 테넌트를 지원하면 갈라진다. "플랫폼과 다른 사전"은 버그가 아니다.
162
162
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bstage-sdk/core",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "bstage SDK core — HTTP client for b.stage API",
5
5
  "type": "module",
6
6
  "publishConfig": {