From 5f135272929c300c93692ae07880c7ef3d6077af Mon Sep 17 00:00:00 2001 From: terrablue <102580937+terrablue@users.noreply.github.com> Date: Sat, 10 Aug 2024 12:37:49 +0200 Subject: [PATCH] html/htmx: move to @rcompat/html --- packages/html/package.json | 4 ++-- packages/html/src/private/build/server.js | 2 +- packages/html/src/public/escape.js | 2 +- packages/htmx/package.json | 4 ++-- packages/htmx/src/public/escape.js | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/html/package.json b/packages/html/package.json index 3983d324..77569ff7 100644 --- a/packages/html/package.json +++ b/packages/html/package.json @@ -1,6 +1,6 @@ { "name": "@primate/html", - "version": "0.10.2", + "version": "0.10.3", "description": "Primate HTML frontend", "homepage": "https://primatejs.com/modules/html", "bugs": "https://github.com/primatejs/primate/issues", @@ -16,7 +16,7 @@ }, "dependencies": { "@primate/frontend": "workspace:^", - "@rcompat/string": "^0.4.0" + "@rcompat/html": "^0.1.0" }, "peerDependencies": { "primate": "workspace:^" diff --git a/packages/html/src/private/build/server.js b/packages/html/src/private/build/server.js index e9aec654..8d09737a 100644 --- a/packages/html/src/private/build/server.js +++ b/packages/html/src/private/build/server.js @@ -1,4 +1,4 @@ -export default text => `import HTML from "@primate/html/escape"; +export default text => `import escape from "@primate/html/escape"; export default (props = {}, options) => { const encoded = JSON.parse(escape(JSON.stringify(props))); const keys = Object.keys(encoded); diff --git a/packages/html/src/public/escape.js b/packages/html/src/public/escape.js index ee2ef9c1..71032ac5 100644 --- a/packages/html/src/public/escape.js +++ b/packages/html/src/public/escape.js @@ -1 +1 @@ -export { default } from "@rcompat/string/HTML"; +export { default } from "@rcompat/html/escape"; diff --git a/packages/htmx/package.json b/packages/htmx/package.json index 5b040bbe..3f31cd94 100644 --- a/packages/htmx/package.json +++ b/packages/htmx/package.json @@ -1,6 +1,6 @@ { "name": "@primate/htmx", - "version": "0.19.3", + "version": "0.19.4", "description": "Primate HTMX frontend", "homepage": "https://primatejs.com/modules/htmx", "bugs": "https://github.com/primatejs/primate/issues", @@ -17,8 +17,8 @@ "dependencies": { "@primate/frontend": "workspace:^", "@primate/html": "workspace:^", + "@rcompat/html": "^0.1.0", "@rcompat/object": "^0.5.0", - "@rcompat/string": "^0.4.0", "htmx-esm": "^0.2.0" }, "peerDependencies": { diff --git a/packages/htmx/src/public/escape.js b/packages/htmx/src/public/escape.js index ee2ef9c1..71032ac5 100644 --- a/packages/htmx/src/public/escape.js +++ b/packages/htmx/src/public/escape.js @@ -1 +1 @@ -export { default } from "@rcompat/string/HTML"; +export { default } from "@rcompat/html/escape";