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/range-wrapper-cut.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/range-wrapper-more-shapes.md

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
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.8.1",
"version": "1.9.0",
Comment thread
benney marked this conversation as resolved.
Resolved
"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.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)
Expand Down