Skip to content

Commit

Permalink
Relocate @lit-labs/ssr to package dependency, import the experiment…
Browse files Browse the repository at this point in the history
…al hydrate module directly
  • Loading branch information
jaredcwhite committed May 15, 2022
1 parent 71157da commit a4fefca
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.0.0.beta3] - 2022-05-14

- Relocate `@lit-labs/ssr` to package dependency, import the experimental hydrate module directly

## [2.0.0.beta1] - 2022-05-14

- Various updates to the configuration flow, enhanced helper syntax, and a more robust sidecar infra
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Run this command to add this plugin to your site's Gemfile, along with Lit and S
```shell
$ bundle add bridgetown-lit-renderer -g bridgetown_plugins

$ yarn add bridgetown-lit-renderer lit @lit-labs/ssr
$ yarn add lit bridgetown-lit-renderer
```

Create a file in `config/lit-ssr.config.js` with the following:
Expand Down
1 change: 1 addition & 0 deletions frontend/javascript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import "bridgetown-lit-renderer" */

import "lit/experimental-hydrate-support.js"
import { hydrateShadowRoots } from '@webcomponents/template-shadowroot/template-shadowroot.js'

class HydrateRootElement extends HTMLElement {
Expand Down
2 changes: 1 addition & 1 deletion lib/bridgetown-lit-renderer/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module BridgetownLitRenderer
VERSION = "2.0.0.beta2"
VERSION = "2.0.0.beta3"
end
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bridgetown-lit-renderer",
"version": "2.0.0-beta2",
"version": "2.0.0-beta3",
"main": "frontend/javascript/index.js",
"exports": {
".": {
Expand Down Expand Up @@ -28,10 +28,7 @@
"@webcomponents/template-shadowroot": "^0.1.0",
"colors": "^1.4.0",
"esbuild": "^0.14",
"glob": "^7.2.0"
},
"devDependencies": {
"@lit-labs/ssr": "^2.1.0",
"lit": "^2.2.3"
"glob": "^7.2.0",
"@lit-labs/ssr": "^2.1.0"
}
}

0 comments on commit a4fefca

Please sign in to comment.