Skip to content
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

release/0.26.0 #956

Merged
merged 11 commits into from
Jul 27, 2022
Merged

release/0.26.0 #956

merged 11 commits into from
Jul 27, 2022

Conversation

thescientist13
Copy link
Member

@thescientist13 thescientist13 commented Jul 1, 2022

Related Issue

Summary of Changes

  1. Export a custom element as a page! 🤯 (default export)
  2. Support for HTMLElement (WCC) as default rendering option
  3. Add support for Declarative Shadow DOM to polyfill plugin
  4. Ability to export SSR routes as HTML

Alpha Release Test Plan

I think to be safe given the level of refactoring, would like to at least make sure this get tested with a few key repos

The plan would be to test against the following projects / workflows as alpha releases are iterated upon:

  1. thegreenhouse.io - upgrade greenwood v0.26.0 thegreenhouseio/www.thegreenhouse.io#275
  2. contributary.community - upgrade greenwood v0.26.0 ContributaryCommunity/www.contributary.community#113
  3. analogstudios.net - upgrade greenwood v0.26.0 AnalogStudiosRI/www.analogstudios.net#76
  4. projectevergreen.github.io - upgrade greenwood v0.26.0 projectevergreen.github.io#87
  5. greenwood-getting-started - upgrade greenwood v0.26.0 greenwood-getting-started#64
    • convert to WCC? - YES!
  6. greenwood-template-blog - upgrade greenwood v0.26.0 greenwood-template-blog#5
    • convert to WCC? - YES, we can mirror what we do for the getting starter repo
  7. greenwood-starter-presentation - upgrade greenwood v0.26.0 thescientist13/greenwood-starter-presentation#60
  8. npx / init (main test will be after alpha.1)
  9. Stackblitz

This PR should NOT be squashed merged when merging into master.

TODOs

  1. add Declarative Shadow DOM polyfill support to polyfill plugin #901
  2. Should have the ability to statically export server rendered routes as just HTML #879
  3. alpha.0
  4. puppeteer based renderer plugin and HTMLElement (WCC) as default renderer #954
  5. alpha.1
  6. Blog Post - v0.26.0 release blog post #963
    • Custom Elements as Pages
    • WCC
    • Puppeteer (breaking change)
  7. Review / Update website / Getting Started docs / guides / etc - Docs/v0.26.0 updates and revisions #965

Questions / New Issues

  1. Technically with WCC (compared to Puppeteer) the inline <style> blocks are now left "in place" as it were, in the generated HTML, as opposed to serialized into the <head> using ShadyCSS I believe. This is a mistake on my part since I probably shouldn't have been using Shadow DOM for static content anyway, but perhaps there is a way to retain that conventions since having as much of the global CSS in the <head> would be ideal.
  2. For Lit export default, should find a way to get the tag name automatically, or maybe we don't need it all?
  3. Add SSR support into include HTML plugin? Or maybe we can deprecate the custom elements option now that we have

* initial working local development example with wc-compiler for SSR native HTMLElement

* restore getTemplate to original location in SSR route worker

* bump latest version of wcc

* ensure passing of URLs to wcc

* upgrade WCC

* add support for prerendering SSR routes with default renderer WCC in favor of puppeteer

* document default export

* clean up console logging

* rollback premature static export feature

* use WCC to bundle SSR page routes
 automatically

* roll back native SSR auto hydration

* LitElement as SSR page with default export

* LitElement as a default export for pages

* clarify README example

* capture Lit exception for light DOM support
@thescientist13 thescientist13 added documentation Greenwood specific docs Plugins Greenwood Plugins CLI breaking SSR v0.26.0 labels Jul 1, 2022
@thescientist13 thescientist13 added this to the 1.0 milestone Jul 1, 2022
@thescientist13 thescientist13 self-assigned this Jul 1, 2022
@thescientist13 thescientist13 changed the title Feature/issue 935 native custom element ssr (#943) release/0.26.0 Jul 1, 2022
@thescientist13 thescientist13 linked an issue Jul 1, 2022 that may be closed by this pull request
5 tasks
* add DSD polyfill and refactor for options

* feature detect for DSD polyfill
@thescientist13 thescientist13 linked an issue Jul 1, 2022 that may be closed by this pull request
5 tasks
* working version of SSR static export

* update comment

* document static SSR export

* refactor and TODOs

* break pass by reference
@thescientist13 thescientist13 linked an issue Jul 11, 2022 that may be closed by this pull request
5 tasks
* puppeteer renderer plugin and migrate resource plugin

* introduce custom function option for renderer plugins and moved puppeteer logic into plugin

* made WCC default prerender

* stabilize specs

* upgrade latest version of puppeteer

* add specs for puppeteer renderer plugin

* clarify it block

* stablize all CLI specs

* fix spelling mistake

* comments for init specs

* restore graphql specs with dependency on puppeteer plugin when prerendering

* restore all specs and adjust thresholds

* misc PR cleanup

* fix lint and clean up package jsons

* fix lint and clean up package jsons

* upgrade latest version of WCC

* update docs to reflect prerendering with WCC and cross dependencies with Puppeteer

* fix and restore puppeteer based inline javascript execution specs

* fix typo in specs

* cross platform puppeteer intercepting support

* refactor preRenderCompilationWorker to be async Promise.all
@thescientist13 thescientist13 added bug Something isn't working alpha.0 alpha.1 labels Jul 16, 2022
* fixed import commonjs plugin named export

* fix misc spelling mistakes in comments
@thescientist13
Copy link
Member Author

OK, aside from documentation and blog post content, this technically ready and tested. 🙌

@thescientist13 thescientist13 marked this pull request as ready for review July 16, 2022 18:42
* update getting started guide and about sections with introduction of WCC

* move puppeteer specific caveats to puppeteer plugin README

* remove errant character

* misc grammar and editing
* first draft of v0.26.0 blog post

* quick grammar fix

* remove extraneous character

* misc edits and revisions
@thescientist13 thescientist13 linked an issue Jul 27, 2022 that may be closed by this pull request
9 tasks
@thescientist13 thescientist13 merged commit 3854a53 into master Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment