From 62fa04c2704c21e858cfc7e2e9398114d4a5253a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 6 Nov 2026 15:43:30 +0000 Subject: [PATCH] chore: release @monetizationos/proxy --- .changeset/range-wrapper-cut.md | 5 ----- .changeset/range-wrapper-more-shapes.md | 5 ----- CHANGELOG.md | 8 ++++++++ package.json | 2 +- src/apiRequestHeaders.ts | 2 +- 5 files changed, 10 insertions(+), 12 deletions(-) delete mode 100644 .changeset/range-wrapper-cut.md delete mode 100644 .changeset/range-wrapper-more-shapes.md diff --git a/.changeset/range-wrapper-cut.md b/.changeset/range-wrapper-cut.md deleted file mode 100644 index 3b43ad3d..00000000 --- a/.changeset/range-wrapper-cut.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@monetizationos/proxy": minor ---- - -Range replacement cuts the range with one callback instead of one per element when the start and end markers are direct children of the container. Other pages are cut element by element as before. `RewriterElement` now requires `removeAndKeepContent`, which lol-html and `HTMLRewriter` elements already implement. A page with a range is now buffered before it is rewritten, and HTML comments inside the cut range are removed with it. diff --git a/.changeset/range-wrapper-more-shapes.md b/.changeset/range-wrapper-more-shapes.md deleted file mode 100644 index b54aa969..00000000 --- a/.changeset/range-wrapper-more-shapes.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@monetizationos/proxy": minor ---- - -More pages use the one-callback range cut. Content other components insert inside the range is removed with it, whatever the component order, and a marker removed by another component still marks where the range starts or ends. A container holding raw text, such as `textarea` or `script`, is left alone, and only the outermost of nested containers is cut. Selector lists, several range components in one decision, and other content on the range component all use the one-callback path. Selector lists also apply per part when cutting element by element. A start marker nested inside its container now uses the one-callback path too, when its range is the only one in the decision. diff --git a/CHANGELOG.md b/CHANGELOG.md index dfa0d13e..263dfe10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # @monetizationos/proxy +## 1.9.0 + +### Minor Changes + +- [#43](https://github.com/MonetizationOS/mos-proxy/pull/43) [`f440059`](https://github.com/MonetizationOS/mos-proxy/commit/f440059bd2a09a3b0e67261aa10bcfb51d450133) Thanks [@benney](https://github.com/benney)! - Range replacement cuts the range with one callback instead of one per element when the start and end markers are direct children of the container. Other pages are cut element by element as before. `RewriterElement` now requires `removeAndKeepContent`, which lol-html and `HTMLRewriter` elements already implement. A page with a range is now buffered before it is rewritten, and HTML comments inside the cut range are removed with it. + +- [#45](https://github.com/MonetizationOS/mos-proxy/pull/45) [`74e9663`](https://github.com/MonetizationOS/mos-proxy/commit/74e96637385b01ea45e87338a52781b201eb4160) Thanks [@benney](https://github.com/benney)! - More pages use the one-callback range cut. Content other components insert inside the range is removed with it, whatever the component order, and a marker removed by another component still marks where the range starts or ends. A container holding raw text, such as `textarea` or `script`, is left alone, and only the outermost of nested containers is cut. Selector lists, several range components in one decision, and other content on the range component all use the one-callback path. Selector lists also apply per part when cutting element by element. A start marker nested inside its container now uses the one-callback path too, when its range is the only one in the decision. + ## 1.8.1 ### Patch Changes diff --git a/package.json b/package.json index 097b6096..c3ed3965 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@monetizationos/proxy", - "version": "1.8.1", + "version": "1.9.0", "description": "Platform-agnostic MonetizationOS proxy core", "license": "MIT", "type": "module", diff --git a/src/apiRequestHeaders.ts b/src/apiRequestHeaders.ts index f5d9473d..e178308d 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.8.1' +export const MOS_PROXY_PACKAGE_VERSION = '1.9.0' export const setMosProxyHeaders = (headers: Headers): void => { headers.set(MOS_PROXY_VERSION_HEADER, MOS_PROXY_PACKAGE_VERSION)