Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/esm-node-resolution.md

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/apiRequestHeaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down