diff --git a/.changeset/esm-node-resolution.md b/.changeset/esm-node-resolution.md deleted file mode 100644 index acbdcfdd..00000000 --- a/.changeset/esm-node-resolution.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@monetizationos/proxy': patch ---- - -Publish an ESM build Node resolves without a bundler. The emitted JavaScript and type declarations previously carried extensionless relative specifiers, so importing the package from plain Node failed with `ERR_UNSUPPORTED_DIR_IMPORT` and a consumer on `moduleResolution: NodeNext` could not resolve its types. Self-hosted Node integrations no longer need a build step. diff --git a/CHANGELOG.md b/CHANGELOG.md index c808e8b7..36ecc869 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # @monetizationos/proxy +## 1.5.3 + +### Patch Changes + +- [#32](https://github.com/MonetizationOS/mos-proxy/pull/32) [`b3dd7ab`](https://github.com/MonetizationOS/mos-proxy/commit/b3dd7ab07039f425a42f5ef027308742c250d012) Thanks [@jayfeng0625](https://github.com/jayfeng0625)! - Publish an ESM build Node resolves without a bundler. The emitted JavaScript and type declarations previously carried extensionless relative specifiers, so importing the package from plain Node failed with `ERR_UNSUPPORTED_DIR_IMPORT` and a consumer on `moduleResolution: NodeNext` could not resolve its types. Self-hosted Node integrations no longer need a build step. + ## 1.5.2 ### Patch Changes diff --git a/package.json b/package.json index 2111a9ed..f9bc80da 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@monetizationos/proxy", - "version": "1.5.2", + "version": "1.5.3", "description": "Platform-agnostic MonetizationOS proxy core", "license": "MIT", "type": "module", diff --git a/src/apiRequestHeaders.ts b/src/apiRequestHeaders.ts index 07a54301..99aa1bfa 100644 --- a/src/apiRequestHeaders.ts +++ b/src/apiRequestHeaders.ts @@ -2,7 +2,7 @@ import { formatClientRuntimeHeader } from './clientRuntime' export const MOS_PROXY_VERSION_HEADER = 'X-MOS-Proxy-Version' export const MOS_PROXY_CLIENT_HEADER = 'X-MOS-Proxy-Client' -export const MOS_PROXY_PACKAGE_VERSION = '1.5.2' +export const MOS_PROXY_PACKAGE_VERSION = '1.5.3' export const setMosProxyHeaders = (headers: Headers): void => { headers.set(MOS_PROXY_VERSION_HEADER, MOS_PROXY_PACKAGE_VERSION)