-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature/issue 1197 Lit v3 upgrade and SSR fixes and enhancements #1201
Merged
thescientist13
merged 12 commits into
release/0.30.0
from
feature/lit3-upgrade-and-ssr-fixes-and-enhancements
Mar 10, 2024
Merged
feature/issue 1197 Lit v3 upgrade and SSR fixes and enhancements #1201
thescientist13
merged 12 commits into
release/0.30.0
from
feature/lit3-upgrade-and-ssr-fixes-and-enhancements
Mar 10, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thescientist13
added
bug
Something isn't working
Plugins
Greenwood Plugins
CLI
feature
New feature or request
labels
Feb 1, 2024
thescientist13
changed the title
Feature/lit3 upgrade and ssr fixes and enhancements
Feature/issue 1197 lit3 upgrade and ssr fixes and enhancements
Feb 1, 2024
thescientist13
changed the title
Feature/issue 1197 lit3 upgrade and ssr fixes and enhancements
Feature/issue 1197 Lit v2 upgrade and SSR fixes and enhancements
Feb 1, 2024
thescientist13
changed the title
Feature/issue 1197 Lit v2 upgrade and SSR fixes and enhancements
Feature/issue 1197 Lit v3 upgrade and SSR fixes and enhancements
Feb 1, 2024
This was referenced Feb 11, 2024
thescientist13
changed the title
Feature/issue 1197 Lit v3 upgrade and SSR fixes and enhancements
enhancement/issue 1197 Lit v3 upgrade and SSR fixes and enhancements
Feb 27, 2024
thescientist13
changed the title
enhancement/issue 1197 Lit v3 upgrade and SSR fixes and enhancements
feature/issue 1197 Lit v3 upgrade and SSR fixes and enhancements
Feb 27, 2024
This was referenced Feb 27, 2024
thescientist13
force-pushed
the
feature/lit3-upgrade-and-ssr-fixes-and-enhancements
branch
from
February 27, 2024 23:25
1629fb6
to
200a40f
Compare
thescientist13
force-pushed
the
feature/lit3-upgrade-and-ssr-fixes-and-enhancements
branch
from
March 10, 2024 01:40
02dff52
to
236e43f
Compare
thescientist13
deleted the
feature/lit3-upgrade-and-ssr-fixes-and-enhancements
branch
March 10, 2024 02:19
thescientist13
added a commit
that referenced
this pull request
Jun 1, 2024
* initial upgrade for test cases * upgrade CLI and www to Lit v3 * revert static router test case change * all tests passing * patch escodegen for better ESM support * test for lit element hydration script * refactor rollup config * update Lit renderer README and apply conditional Lit script hydration * comments and TODOs cleanup * minor rebase patches * WCC v0.12.0 upgrade and removing patches directory * hydration default documentation and testing for Lit renderer plugin
thescientist13
added a commit
that referenced
this pull request
Jun 2, 2024
* initial upgrade for test cases * upgrade CLI and www to Lit v3 * revert static router test case change * all tests passing * patch escodegen for better ESM support * test for lit element hydration script * refactor rollup config * update Lit renderer README and apply conditional Lit script hydration * comments and TODOs cleanup * minor rebase patches * WCC v0.12.0 upgrade and removing patches directory * hydration default documentation and testing for Lit renderer plugin
thescientist13
added a commit
that referenced
this pull request
Jun 22, 2024
* initial upgrade for test cases * upgrade CLI and www to Lit v3 * revert static router test case change * all tests passing * patch escodegen for better ESM support * test for lit element hydration script * refactor rollup config * update Lit renderer README and apply conditional Lit script hydration * comments and TODOs cleanup * minor rebase patches * WCC v0.12.0 upgrade and removing patches directory * hydration default documentation and testing for Lit renderer plugin
thescientist13
added a commit
that referenced
this pull request
Jun 22, 2024
…ptimization (#1235) * feature/issue 1197 Lit v3 upgrade and SSR fixes and enhancements (#1201) * initial upgrade for test cases * upgrade CLI and www to Lit v3 * revert static router test case change * all tests passing * patch escodegen for better ESM support * test for lit element hydration script * refactor rollup config * update Lit renderer README and apply conditional Lit script hydration * comments and TODOs cleanup * minor rebase patches * WCC v0.12.0 upgrade and removing patches directory * hydration default documentation and testing for Lit renderer plugin * v0.30.0-alpha.1 * feature/issue 923 native import attributes for CSS and JSON (#1215) * intial draft of import attributes support for CSS and JSON * all test cases passing * need patch package * wcc patches for import attributes and CSSStylesheet shim * bump min NodeJS version for exp specs * temp disable ESLint * develop based import assertion specs * serve based import attributes specs * add preIntercept resource plugin lifecycle and refactor PostCSS to use it * all test cases passing for import attributes support * refactor built in CSS and JSON intercepting * demo code * raw plugin docs and package.json updates * update latest documentation for custom loaders support in NodeJS * update custom import docs * upgrade wcc v0.13.0 * only need Node 18 for github actions * css imports and raw plugin interop with test cases * lit renderer import attribute test cases and documentation * refactor matchers support for raw plugin instead of patching and add test cases * disable describe.only * update usage for custom resource plugins to showcase usage of import attributes * document preIntercept lifecycle and convert Babel to use it * restore ESLint * enable debug logging for failing specs * refactor theme pack specs * fix linting * remove CSS and JSON packages from being publishable * clean up console logs and comments * rename exp test cases to loadersnaming prefix * fix command in github actions * remove plugin-import-css callout from plugin-postcss README * remove demo code from website * refine PostCSS plugin intercepting * gracefully handle unresolvable assets during CSS optimization * refactor URL and fs usage * fix lint * missed rebase-a-ronis * missed rebase-a-ronis
thescientist13
added a commit
that referenced
this pull request
Nov 2, 2024
* initial upgrade for test cases * upgrade CLI and www to Lit v3 * revert static router test case change * all tests passing * patch escodegen for better ESM support * test for lit element hydration script * refactor rollup config * update Lit renderer README and apply conditional Lit script hydration * comments and TODOs cleanup * minor rebase patches * WCC v0.12.0 upgrade and removing patches directory * hydration default documentation and testing for Lit renderer plugin
thescientist13
added a commit
that referenced
this pull request
Nov 2, 2024
…ptimization (#1235) * feature/issue 1197 Lit v3 upgrade and SSR fixes and enhancements (#1201) * initial upgrade for test cases * upgrade CLI and www to Lit v3 * revert static router test case change * all tests passing * patch escodegen for better ESM support * test for lit element hydration script * refactor rollup config * update Lit renderer README and apply conditional Lit script hydration * comments and TODOs cleanup * minor rebase patches * WCC v0.12.0 upgrade and removing patches directory * hydration default documentation and testing for Lit renderer plugin * v0.30.0-alpha.1 * feature/issue 923 native import attributes for CSS and JSON (#1215) * intial draft of import attributes support for CSS and JSON * all test cases passing * need patch package * wcc patches for import attributes and CSSStylesheet shim * bump min NodeJS version for exp specs * temp disable ESLint * develop based import assertion specs * serve based import attributes specs * add preIntercept resource plugin lifecycle and refactor PostCSS to use it * all test cases passing for import attributes support * refactor built in CSS and JSON intercepting * demo code * raw plugin docs and package.json updates * update latest documentation for custom loaders support in NodeJS * update custom import docs * upgrade wcc v0.13.0 * only need Node 18 for github actions * css imports and raw plugin interop with test cases * lit renderer import attribute test cases and documentation * refactor matchers support for raw plugin instead of patching and add test cases * disable describe.only * update usage for custom resource plugins to showcase usage of import attributes * document preIntercept lifecycle and convert Babel to use it * restore ESLint * enable debug logging for failing specs * refactor theme pack specs * fix linting * remove CSS and JSON packages from being publishable * clean up console logs and comments * rename exp test cases to loadersnaming prefix * fix command in github actions * remove plugin-import-css callout from plugin-postcss README * remove demo code from website * refine PostCSS plugin intercepting * gracefully handle unresolvable assets during CSS optimization * refactor URL and fs usage * fix lint * missed rebase-a-ronis * missed rebase-a-ronis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
breaking
bug
Something isn't working
CLI
documentation
Greenwood specific docs
feature
New feature or request
needs upstream
Plugins
Greenwood Plugins
question
Further information is requested
SSR
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue
resolves #1197
Depends on the following PRs being merged first
Summary of Changes
exportConditions
for SSR pages and API routes to now includenode
(like used in Lit's SSR implementation)getBody
API)0.12.0
TODO
globalThis
for state?) #880 and custom response and constructor props for SSR pages #1177export const hydration = true
export const function loader() => { /* ... */ }
customElements.define
issue - feature/discussion 1117 Isolation Mode (v1) #1206greenwood serve
only)? - https://lit.dev/docs/ssr/server-usage/#running-ssr-in-a-vm-module-or-the-global-scopeexport
to bring Workers back in on an opt-in basis?tokTypes
ofacorn-jsx
will be differentTokenType
classes ifacorn
itself is loaded via ESM acornjs/acorn-jsx#133require
of _package.json_ complicates bundling estools/escodegen#455greenwoodJsonLoader
getBody
limitation for SSR pagespreferBuiltins
for Lit in our Rollup config anymore?postinstall
- https://github.com/ProjectEvergreen/wcc/releases/tag/0.12.0false
true
confirm import map snapshot changes- confirmed that this got moved to SSR client - [ssr-client] Move experimental hydrate modules lit/lit#3720window
Thoughts / Questions
exportConditions
are still needed after upgrade Rollup and all plugins to3.x
#1087node
- [node-resolve] Support conditional exports defined in package.json rollup/plugins#362 (comment)type="module-shim"
🤔shadowrootmode
thing?)