github Sitecore/jss v20.0.0
20.0.0

latest releases: v22.10.0-canary.5, v22.10.0-canary.4, v22.10.0-canary.3...
3 years ago

20.0.0

New Features & Improvements

[create-sitecore-jss]

  • New package containing initializers / templates for JSS sample applications (#881), (#883), (#882), (#880), (#879), (#878), (#876)
  • This replaces previous jss create method to create new JSS applications
  • You can now create an application with guided prompts using initializer command of choice (npx create-sitecore-jss, npm init sitecore-jss, yarn create sitecore-jss) 🎉🎉🎉

[template/nextjs]

  • Remove withSitecoreContext HOC from Layout.tsx (#887)
  • Component props auto-injection by Placeholder (#884)
  • Plugins for next.config.js (#867)
  • Refactor sitemap-fetcher to make it extendable (#865)
  • Upgrade to Next.js 12 (#860), (#948)
  • Refactor PagePropsFactory to make it extendable (#857)
  • Remove locale variants from default rewrites (#832)

[template/angular] Language is not preserved when navigating to another page (#793)

[template/nextjs] [template/react] [template/angular] [template/vue]

  • Use the app name as the prefix value for templates (#800), (#811), (#813), (#814)
  • Throw error when run jss start using FETCH_WITH=GraphQL (#920)
  • Bring environment variable support to config generation (#911, #commit)
  • Change the classname of ContentBlock from display-4 to contentTitle (#908)
  • Hidden renderings do not have implementation and result in console error message (#834)
  • Use the app name as the prefix value for placeholders (#830)

[sitecore-jss-nextjs] [sitecore-jss-react] Handle Sitecore querystring property in Link component (#929)

[Maintenance] Generate API reference docs (#840)

[sitecore-jss-manifest] [template/nextjs] Allow component manifest definitions to define a template name (#810)

Bug Fixes

[template/*]

  • Highlight error message for fetchWith=GraphQL (#930)
  • Fix peer dependency errors (#910)

[template/nextjs]

  • graphql-let error when bootstrapping empty Nextjs app (#942)
  • Use more focused paths for Sitecore rewrites (#921
  • Add .babelrc to Next.js template to disable SWC compilation (#918)
  • Can't start app in disconnected mode, throws webpack fallback option error (#913)
  • Add .gitattributes to Next.js sample app with CRLF line endings (#855)
  • [Horizon] Custom components cannot be added (#807)
  • Add gitignore (#988)

[template/angular]

  • [10.3] "Edit related item" button redirects to home (#944)
  • Update angular-devkit/build-angular to fix deprecation error (#917)
  • Convert language to the sitecore compatible format (#906)
  • Fix issues with Angular in disconnected mode (incorrect componentName + reverts changes (#commit)
  • Opt out of angular telemetry by default (#commit)
  • Fix handling of not found layout service requests in Angular sample (#809)
  • Console error when /graphql requested in EE, localhost or horizon (#803)

[template/vue]

  • The page is redirected to the home page of the website after clicking the "Change associated content" button in the Experience Editor (#907)
  • Cannot add a new rendering to the newly created (#903)
  • [Horizon] Cannot add a new rendering or highlight existing (#895)
  • [Authoring] 'Add here' modal does not show allowed items on placeholder (#859)
  • Server error for Vue + --fetchWith GraphQL + node-headless-SSR-Experience-Edge (#812)
  • Fix Vue sample RestLayoutService config (use 'apiHost', not 'endpoint') (#804)

[template/react] Set changeOrigin: true for proxied Sitecore requests in connected mode (#808)

[template/vue] [template/react] Exception while rendering GraphQL page (#900)

[template/react] [template/angular] [template/vue] Fix Template id for styleguide-explanatory-component-template & vue graphql fragment data (#816)

[template/react] [template/angular] [template/vue] jss graphql:update throws errors (#806)

[template/react] [template/angular] [template/vue] Include Sitecore server URL in media URLs by default (#802)

[sitecore-jss]

  • TypeError: Only absolute URLs are supported (#826)

[sitecore-jss-vue]

  • Experience Editor controls does not work until hard reload is done (#950)
  • Styleguide-Layout-Reuse breaks EE (#938)

[sitecore-jss-nextjs]

  • Prevent passing internalLinkMatcher prop (#847)
  • Preview Mode doesn't work with fallback: false on Vercel (#846)
  • [caching] Make tmpDir a configurable parameter (#839)

[node-headless-ssr-proxy] [node-headless-ssr-experience-edge] Added submodules import (#916)

[sitecore-jss-nextjs] [sitecore-jss-react] Attributes of an empty placeholder are applied to the next sibling <div> tag in Experience Editor of JSS item (#833)

[sitecore-jss-dev-tools] Fix circular dependencies (#843)

[sitecore-jss-cli]

  • Ignore pdf and images when replacing or stripping prefix (#818)
  • Handle underscores in app name when replacing prefix (#817)

[Maintenance]

  • Upgrade security vulnerable packages (#866)
  • Node 16 upgrade (#863)
  • Resolve deprecated dependencies in sitecore-jss-cli package (#864)
  • The page is redirected to the home page of the website after clicking the "Change associated content" button in the Experience Editor in angular application (#835)
  • *scRouterLink breaks link generation (#815)

Breaking Changes

[samples/sitecore-embedded-jss-app] Removed sample (migrated to https://github.com/Sitecore/headless-examples) (#845)

[samples/sitecore-javascript-renderings] Removed sample (deprecated) (#845)

[samples] Retire remaining samples (moved to initializer templates) (#891)

[sitecore-jss/*] Consolidated packages together into sitecore-jss package submodules. (#824, #commit, #commit). See upgrade guide for more details.

[sitecore-jss-cli] Error handling for someone trying to run jss create (#893)

[template/nextjs] [template/react] Strongly typed SitecoreContext value (#841)

Don't miss a new jss release

NewReleases is sending notifications on new releases.