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
10 changes: 0 additions & 10 deletions .changeset/range-replacement-fixes.md

This file was deleted.

11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @monetizationos/proxy

## 1.8.1

### Patch Changes

- [#42](https://github.com/MonetizationOS/mos-proxy/pull/42) [`6d1d24f`](https://github.com/MonetizationOS/mos-proxy/commit/6d1d24fc4a40df2f3b5e437bea38330fce0461db) Thanks [@benney](https://github.com/benney)! - Range replacement fixes:

- Uses less CPU on pages with many void elements (`img`, `br`, `meta`, ...). Output is unchanged.
- A range container with no end tag (`img`, or a self-closing SVG element such as `<path/>`) is left as it is instead of failing the whole page transform.
- A range starts at the first start marker, so a start marker nested inside it no longer inserts the replacement a second time.
- A range applies to the outermost matching container. A container nested inside another one is part of the outer container's cut.

## 1.8.0

### Minor 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.0",
"version": "1.8.1",
"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.0'
export const MOS_PROXY_PACKAGE_VERSION = '1.8.1'

export const setMosProxyHeaders = (headers: Headers): void => {
headers.set(MOS_PROXY_VERSION_HEADER, MOS_PROXY_PACKAGE_VERSION)
Expand Down
Loading