{"_id":"server-dom-shim","_rev":"5-6275cabff97c2b90414781492b8a9ac7","name":"server-dom-shim","dist-tags":{"latest":"1.1.0"},"versions":{"0.0.0":{"name":"server-dom-shim","version":"0.0.0","keywords":[],"author":{"name":"ocavue","email":"ocavue@gmail.com"},"license":"MIT","_id":"server-dom-shim@0.0.0","maintainers":[{"name":"ocavue","email":"ocavue@gmail.com"}],"homepage":"https://github.com/ocavue/server-dom-shim#readme","bugs":{"url":"https://github.com/ocavue/server-dom-shim/issues"},"dist":{"shasum":"f13d5a278515ce8ce44d03fb3b8359a41a69ef60","tarball":"https://registry.npmjs.org/server-dom-shim/-/server-dom-shim-0.0.0.tgz","fileCount":6,"integrity":"sha512-nyaeWv8ZKTlcBcxLAkL6JIabo4KDy0EnMd4oEFzVNqj0P25/QAXkE7yRNoq75aUSjjEAjN/PjB5q+xmWKNsYnw==","signatures":[{"sig":"MEYCIQDsCYUVFp5E4ZLU3f+WkPeIsOIxPBAK5XhN+LuxvpDS1AIhALZJ9jU8X2en+gbpkoRDYZRZi6MMIUYDsKL5dTuhmjEn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3960},"main":"./lib/server-dom-shim.browser.js","type":"module","_from":"file:server-dom-shim-0.0.0.tgz","types":"./lib/server-dom-shim.d.ts","module":"./lib/server-dom-shim.browser.js","exports":{".":{"node":"./lib/server-dom-shim.node.js","types":"./lib/server-dom-shim.d.ts","import":"./lib/server-dom-shim.browser.js"}},"funding":"https://github.com/sponsors/ocavue","scripts":{"fix":"eslint --fix . && prettier --write .","lint":"eslint .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"ocavue","email":"ocavue@gmail.com"},"renovate":{"extends":["github>ocavue/config-renovate"]},"_resolved":"/private/var/folders/00/y54gq_b567l2cd0qtqqqlysm0000gn/T/b07114613a3a001be74f56965b01d747/server-dom-shim-0.0.0.tgz","_integrity":"sha512-nyaeWv8ZKTlcBcxLAkL6JIabo4KDy0EnMd4oEFzVNqj0P25/QAXkE7yRNoq75aUSjjEAjN/PjB5q+xmWKNsYnw==","repository":{"url":"git+https://github.com/ocavue/server-dom-shim.git","type":"git"},"_npmVersion":"10.2.3","description":"[![NPM version](https://img.shields.io/npm/v/server-dom-shim?color=a1b858&label=)](https://www.npmjs.com/package/server-dom-shim)","directories":{},"sideEffects":false,"_nodeVersion":"18.19.0","dependencies":{"@lit-labs/ssr-dom-shim":"^1.2.0"},"typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"_hasShrinkwrap":false,"packageManager":"pnpm@8.15.8","devDependencies":{"eslint":"^8.57.0","prettier":"^3.2.5","typescript":"^5.4.5","@types/node":"^20.12.8","@ocavue/eslint-config":"^1.5.0"},"_npmOperationalInternal":{"tmp":"tmp/server-dom-shim_0.0.0_1714670157181_0.29950509583358786","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"server-dom-shim","version":"1.0.0","keywords":["ssr","html","custom-elements","web-components","node","browser"],"author":{"name":"ocavue","email":"ocavue@gmail.com"},"license":"MIT","_id":"server-dom-shim@1.0.0","maintainers":[{"name":"ocavue","email":"ocavue@gmail.com"}],"homepage":"https://github.com/ocavue/server-dom-shim#readme","bugs":{"url":"https://github.com/ocavue/server-dom-shim/issues"},"dist":{"shasum":"e379d506f0181b728cf7cc057336aea8768a7807","tarball":"https://registry.npmjs.org/server-dom-shim/-/server-dom-shim-1.0.0.tgz","fileCount":6,"integrity":"sha512-k07tISarzrQmBwOTOJv2ac9oyFrBzjW6zptVXZHzWJBklXzt4Ggh3NHgmAPfFrt4CYk+KmAzGiksZWI5mVmVbw==","signatures":[{"sig":"MEYCIQDheZcKoE9H+6CJfMvkU/IymCINMPidjNTXc7BX3A+eeAIhAMTrfr6D3l8R003bqR6gWgwMkTdVVFr7vsOqwlihtWRi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4727},"main":"./lib/server-dom-shim.browser.js","type":"module","_from":"file:server-dom-shim-1.0.0.tgz","types":"./lib/server-dom-shim.d.ts","module":"./lib/server-dom-shim.browser.js","exports":{".":{"node":"./lib/server-dom-shim.node.js","types":"./lib/server-dom-shim.d.ts","import":"./lib/server-dom-shim.browser.js"}},"funding":"https://github.com/sponsors/ocavue","scripts":{"fix":"eslint --fix . && prettier --write .","lint":"eslint .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"ocavue","email":"ocavue@gmail.com"},"renovate":{"extends":["github>ocavue/config-renovate"]},"_resolved":"/tmp/bc74d0be69bb5482682369f29ad9de85/server-dom-shim-1.0.0.tgz","_integrity":"sha512-k07tISarzrQmBwOTOJv2ac9oyFrBzjW6zptVXZHzWJBklXzt4Ggh3NHgmAPfFrt4CYk+KmAzGiksZWI5mVmVbw==","repository":{"url":"git+https://github.com/ocavue/server-dom-shim.git","type":"git"},"_npmVersion":"10.5.0","description":"A simple shim for the server-side DOM API","directories":{},"sideEffects":false,"_nodeVersion":"18.20.2","dependencies":{"@lit-labs/ssr-dom-shim":"^1.2.0"},"typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"_hasShrinkwrap":false,"packageManager":"pnpm@8.15.8","devDependencies":{"eslint":"^8.57.0","prettier":"^3.2.5","typescript":"^5.4.5","@types/node":"^20.12.8","@ocavue/eslint-config":"^1.5.0"},"_npmOperationalInternal":{"tmp":"tmp/server-dom-shim_1.0.0_1714670843786_0.9525466015501904","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"server-dom-shim","version":"1.0.1","keywords":["ssr","html","custom-elements","web-components","node","browser"],"author":{"name":"ocavue","email":"ocavue@gmail.com"},"license":"MIT","_id":"server-dom-shim@1.0.1","maintainers":[{"name":"ocavue","email":"ocavue@gmail.com"}],"homepage":"https://github.com/ocavue/server-dom-shim#readme","bugs":{"url":"https://github.com/ocavue/server-dom-shim/issues"},"dist":{"shasum":"9d807a294a43d8aa7dea5ebfe93e53a8347f3122","tarball":"https://registry.npmjs.org/server-dom-shim/-/server-dom-shim-1.0.1.tgz","fileCount":6,"integrity":"sha512-dG1dmREu7DlIkyPbVHW0FOvYDX/vgp4RHufjtQpPx/WZMa5V8BhgoC5tlSUjeEPXMJMYd5avvAWZC/Q1taqB5g==","signatures":[{"sig":"MEYCIQCTZsysAvKd4FOmOxl+QlKx1jeLuMsi8p52ACal+pK8HwIhAMtLNCIvZJatPTrlO1zIHP3Z/kKJVqtXx/0yI/XRQGGv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4678},"main":"./lib/server-dom-shim.browser.js","type":"module","_from":"file:server-dom-shim-1.0.1.tgz","types":"./lib/server-dom-shim.d.ts","module":"./lib/server-dom-shim.browser.js","exports":{".":{"node":"./lib/server-dom-shim.node.js","types":"./lib/server-dom-shim.d.ts","import":"./lib/server-dom-shim.browser.js"}},"funding":"https://github.com/sponsors/ocavue","scripts":{"fix":"eslint --fix . && prettier --write .","lint":"eslint .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"ocavue","email":"ocavue@gmail.com"},"renovate":{"extends":["github>ocavue/config-renovate"]},"_resolved":"/tmp/a170af50a5961fb476c7e87dd7544439/server-dom-shim-1.0.1.tgz","_integrity":"sha512-dG1dmREu7DlIkyPbVHW0FOvYDX/vgp4RHufjtQpPx/WZMa5V8BhgoC5tlSUjeEPXMJMYd5avvAWZC/Q1taqB5g==","repository":{"url":"git+https://github.com/ocavue/server-dom-shim.git","type":"git"},"_npmVersion":"10.5.0","description":"A simple shim for the server-side DOM API","directories":{},"sideEffects":false,"_nodeVersion":"18.20.2","dependencies":{"@lit-labs/ssr-dom-shim":"^1.2.0"},"typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"_hasShrinkwrap":false,"packageManager":"pnpm@8.15.8","devDependencies":{"eslint":"^8.57.0","prettier":"^3.2.5","typescript":"^5.4.5","@types/node":"^20.12.8","@ocavue/eslint-config":"^1.5.0"},"_npmOperationalInternal":{"tmp":"tmp/server-dom-shim_1.0.1_1714672193526_0.8487648638178662","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"server-dom-shim","version":"1.0.2","keywords":["ssr","html","custom-elements","web-components","node","browser"],"author":{"name":"ocavue","email":"ocavue@gmail.com"},"license":"MIT","_id":"server-dom-shim@1.0.2","maintainers":[{"name":"ocavue","email":"ocavue@gmail.com"}],"homepage":"https://github.com/ocavue/server-dom-shim#readme","bugs":{"url":"https://github.com/ocavue/server-dom-shim/issues"},"dist":{"shasum":"456fae8bb94f3ed4fbf54beb07d2174cda240cbf","tarball":"https://registry.npmjs.org/server-dom-shim/-/server-dom-shim-1.0.2.tgz","fileCount":6,"integrity":"sha512-6MTS2ouF/fXZMUdPzAzPOXgeuIwj3wNianF4BYEmFC5XdCLIAkNkUSxHk0kW58nObQnyHc6wp4wL7xdt3m7X+Q==","signatures":[{"sig":"MEUCIQDwQ57WS28FbEjQtxKc68cCCPpEa7sx4H8U6aj410NWZAIgPzTouSxv/aILtmpyPL2gJniaRi/vALeCjjAc5uXO53o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4911},"main":"./lib/server-dom-shim.browser.js","type":"module","_from":"file:server-dom-shim-1.0.2.tgz","types":"./lib/server-dom-shim.d.ts","module":"./lib/server-dom-shim.browser.js","exports":{".":{"node":"./lib/server-dom-shim.node.js","types":"./lib/server-dom-shim.d.ts","import":"./lib/server-dom-shim.browser.js"}},"funding":"https://github.com/sponsors/ocavue","scripts":{"fix":"eslint --fix . && prettier --write .","lint":"eslint .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"ocavue","email":"ocavue@gmail.com"},"renovate":{"extends":["github>ocavue/config-renovate"]},"_resolved":"/tmp/ef05d9bf86f924ccd31acfe8d7b036ec/server-dom-shim-1.0.2.tgz","_integrity":"sha512-6MTS2ouF/fXZMUdPzAzPOXgeuIwj3wNianF4BYEmFC5XdCLIAkNkUSxHk0kW58nObQnyHc6wp4wL7xdt3m7X+Q==","repository":{"url":"git+https://github.com/ocavue/server-dom-shim.git","type":"git"},"_npmVersion":"10.5.0","description":"A simple shim for the server-side DOM API","directories":{},"sideEffects":false,"_nodeVersion":"18.20.2","dependencies":{"@lit-labs/ssr-dom-shim":"^1.2.0"},"typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"_hasShrinkwrap":false,"packageManager":"pnpm@8.15.8","devDependencies":{"eslint":"^8.57.0","prettier":"^3.2.5","typescript":"^5.4.5","@types/node":"^20.12.8","@ocavue/eslint-config":"^1.5.0"},"_npmOperationalInternal":{"tmp":"tmp/server-dom-shim_1.0.2_1714674904069_0.7994422390675644","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"server-dom-shim","type":"module","version":"1.1.0","description":"A simple shim for the server-side DOM API","author":{"name":"ocavue","email":"ocavue@gmail.com"},"license":"MIT","funding":"https://github.com/sponsors/ocavue","homepage":"https://github.com/ocavue/server-dom-shim#readme","repository":{"type":"git","url":"git+https://github.com/ocavue/server-dom-shim.git"},"bugs":{"url":"https://github.com/ocavue/server-dom-shim/issues"},"keywords":["ssr","html","custom-elements","web-components","node","browser"],"sideEffects":false,"main":"./lib/server-dom-shim.browser.js","module":"./lib/server-dom-shim.browser.js","types":"./lib/server-dom-shim.d.ts","exports":{".":{"types":"./lib/server-dom-shim.d.ts","node":"./lib/server-dom-shim.node.js","import":"./lib/server-dom-shim.browser.js"}},"typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"dependencies":{"@lit-labs/ssr-dom-shim":"^1.5.0"},"devDependencies":{"@ocavue/eslint-config":"^3.8.0","@ocavue/tsconfig":"^0.6.2","@types/node":"^22.0.0","eslint":"^9.39.2","prettier":"^3.7.4","typescript":"^5.9.3"},"scripts":{"lint":"eslint .","fix":"eslint --fix . && prettier --write .","typecheck":"tsc --noEmit"},"_id":"server-dom-shim@1.1.0","_integrity":"sha512-oyKhBZtkr/SGB9YE2r0VtQxQCxaVx/Ix1fMz0XMd6K4T1/TMfDs9K2GR9QjpUtD+siyeLXr+3CzzGSvhTI1sEw==","_resolved":"/tmp/29810d7860dbe915904a40a27b24c81d/server-dom-shim-1.1.0.tgz","_from":"file:server-dom-shim-1.1.0.tgz","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-oyKhBZtkr/SGB9YE2r0VtQxQCxaVx/Ix1fMz0XMd6K4T1/TMfDs9K2GR9QjpUtD+siyeLXr+3CzzGSvhTI1sEw==","shasum":"b7f0ef7b4e6802b0574f0565648a8ac9c6078dab","tarball":"https://registry.npmjs.org/server-dom-shim/-/server-dom-shim-1.1.0.tgz","fileCount":6,"unpackedSize":6336,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/server-dom-shim@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBlwEd9DAGmD8GD8lcVIT8Ybupq+kqojOIK5s2B0HP2zAiEA+OKnbPyL4COyHGIs6XM9vELC+ZM94pYgpiCXNV2rYgE="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b4121caf-6898-4587-a110-cfe0281d0b08"}},"directories":{},"maintainers":[{"name":"ocavue","email":"ocavue@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/server-dom-shim_1.1.0_1766628843166_0.6844727703517448"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-02T17:15:57.180Z","modified":"2025-12-25T02:14:03.682Z","0.0.0":"2024-05-02T17:15:57.356Z","1.0.0":"2024-05-02T17:27:23.928Z","1.0.1":"2024-05-02T17:49:53.718Z","1.0.2":"2024-05-02T18:35:04.258Z","1.1.0":"2025-12-25T02:14:03.314Z"},"bugs":{"url":"https://github.com/ocavue/server-dom-shim/issues"},"author":{"name":"ocavue","email":"ocavue@gmail.com"},"license":"MIT","homepage":"https://github.com/ocavue/server-dom-shim#readme","keywords":["ssr","html","custom-elements","web-components","node","browser"],"repository":{"type":"git","url":"git+https://github.com/ocavue/server-dom-shim.git"},"description":"A simple shim for the server-side DOM API","maintainers":[{"name":"ocavue","email":"ocavue@gmail.com"}],"readme":"# server-dom-shim\n\n[![NPM version](https://img.shields.io/npm/v/server-dom-shim?color=a1b858&label=)](https://www.npmjs.com/package/server-dom-shim)\n\nA simple shim for the server-side DOM API. No more `HTMLElement is not defined` error during server-side rendering.\n\n```ts\nimport {\n  EventTarget,\n  Element,\n  HTMLElement,\n  CustomElementRegistry,\n  customElements,\n  Event,\n  CustomEvent,\n  MediaList,\n  StyleSheet,\n  CSSRule,\n  CSSRuleList,\n  CSSStyleSheet,\n} from 'server-dom-shim'\n```\n\nThis package uses [Node.js conditional exports](https://nodejs.org/docs/latest-v20.x/api/packages.html#conditional-exports) to export different versions of the DOM API depending on the environment.\n\nIn Node.js environments, this package exports [`@lit-labs/ssr-dom-shim`](https://www.npmjs.com/package/@lit-labs/ssr-dom-shim) package. In browser environments, this package exports native DOM API.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}