Skip to content

Commit

Permalink
html/htmx: move to @rcompat/html
Browse files Browse the repository at this point in the history
  • Loading branch information
terrablue committed Aug 10, 2024
1 parent 10fb455 commit 5f13527
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/html/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -16,7 +16,7 @@
},
"dependencies": {
"@primate/frontend": "workspace:^",
"@rcompat/string": "^0.4.0"
"@rcompat/html": "^0.1.0"
},
"peerDependencies": {
"primate": "workspace:^"
Expand Down
2 changes: 1 addition & 1 deletion packages/html/src/private/build/server.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
2 changes: 1 addition & 1 deletion packages/html/src/public/escape.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from "@rcompat/string/HTML";
export { default } from "@rcompat/html/escape";
4 changes: 2 additions & 2 deletions packages/htmx/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/htmx/src/public/escape.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from "@rcompat/string/HTML";
export { default } from "@rcompat/html/escape";

0 comments on commit 5f13527

Please sign in to comment.