Releases: Sitecore/jss
21.4.0
21.4.0
🎉 New Features & Improvements
-
[templates/nextjs-sxa]
[sitecore-jss-react]
[sitecore-jss-nextjs]
"Bring Your Own Code" (BYOC) feature is introduced. This allows developers and editors more flexibility when developing and working with new components, i.e.:- Avoid the jss deploy process for components, and use FEAAS registration instead
- Put components anywhere in the project,
- Use any prop type, without dependence on Layout Service data
Check the BYOC documentation for more info. (#1568) (#1603)(#1605)
-
[templates/nextjs-sxa]
Scaffolding components for BYOC is added. Use '--byoc' flag at the end ofjss scaffold
command to create a boilerplate component for BYOC (#1572) -
[sitecore-jss-nextjs]
Stylesheet loading via page head links for FEAAS and BYOC is implemented. This allows stylesheets to be loaded during SSR and avoid extra calls on client. (#1587) -
[templates/nextjs]
Scaffold new components outside of 'src/components' folder by specifying a path with src in it, i.e.jss scaffold src/new-folder/NewComponent
(#1572) -
[sitecore-jss]
[sitecore-jss-nextjs]
[templates/nextjs]
Introduce performance metrics for debug logging (#1555) -
[templates/nextjs]
[templates/react]
[templates/vue]
[templates/angular]
Introduce layout service REST configuration name environment variable (#1543) -
[templates/nextjs]
[sitecore-jss-nextjs]
Support for out-of-process editing data caches was added. Vercel KV or a custom Redis cache can be used to improve editing in Pages and Experience Editor when using Vercel deployment as editing/rendering host (#1530) -
[sitecore-jss-react]
Built-in MissingComponent component can now accept "errorOverride" text in props - to be displayed in the yellow frame as a custom error message. (#1568) -
[templates/nextjs]
[sitecore-jss-nextjs]
Better error handling for component-level data fetching (#1586) -
[sitecore-jss-react]
Fetch Data for FEaaS Components as part of Component SSR/SSG (#1586) -
[sitecore-jss-dev-tools]
[templates/nextjs]
[templates/react]
Introduce "components" configuration for ComponentBuilder (#1598) -
[sitecore-jss-react]
[sitecore-jss-nextjs]
Component level data fetching(SSR/SSG) for BYOC (#1610) (#1621) -
[sitecore-jss-nextjs]
Reduce the amount of Edge API calls during fetch getStaticPaths (#1612) -
[sitecore-jss]
[templates/nextjs] [templates/nextjs-sxa]
GraphQL Layout and Dictionary services in base remplate, and ErrorPages service in nextjs-sxa can handle endpoint rate limits through retryer functionality in GraphQLClient. To prevent SSG builds from failing and enable multiple retries, set retry amount in lib/dictionary-service-factory and lib/layout-service-factory (#1618 #1619) -
[templates/nextjs]
[sitecore-jss-nextjs]
Upgrade Nextjs to 13.4.16(#1616)
🧹 Chores
- Automatically create a Jira Issue once a github issue/doc request/PR is created (#1573)
- Use exact canary version instead of range (#1553)
🐛 Bug Fixes
[tempaltes/nextjs]
[templates/nextjs-sxa]
[sitecore-jss-nexjts]
Redirects don't work when file extensions present in a route (#1566)[templates/vue]
"lint" command is failing due to bug introduced by eslint-plugin-prettier (#1563)[sitecore-jss-react]
[FEaaS] Prevent extra components client-side requests for SSR (1541)[sitecore-jss-react]
Remove use of reactDom/server from React Image (1544)[sitecore-jss-nextjs]
Referrer is not captured by Personalize middleware (#1542)[sitecore.jss-react]
Fix double placeholder in Experience Editor in production mode (#1557)[sitecore-jss-nextjs]
Fix of redirects middleware. Add possible to use tokens like $1, $2, $3, etc. (#1547) (#1559) (#1561) (#1562)[templates/nextjs-sxa]
Change Content-Type of robots.txt response (text/html;charset=utf-8
➡text/plain
).[templates/nextjs-sxa]
Fix styles of Image component for Banner variant when we try to edit image in EE for Basic Site (#1588) (#1596)[templates/nextjs-sxa]
Fix style for main layout(horizontal scrollbar). (#1589)[templates/nextjs-sxa]
Don't let Image component wrap with tag when TargetUrl is not configured. (#1593)[templates/nextjs]
Next config header plugin for CORS. (#1597)[templates/nextjs]
Ensure dictionary data is only fetched when layout data is present for a route (#1608)[sitecore-jss-react-forms]
Form should be blocked while submit is in progress to avoid submit spam (#1611 #1614)[templates/nextjs]
Fix linting errors, fix type error by upgrading @react/types to v18.2.22 (#1613)
21.3.1
21.3.1
We've had some stowaways that shouldn't be there sneak into JSS templates. These have now been dealt with. Our apologies for inconvenience!
🐛 Bug Fixes
[create-sitecore-jss]
This is a maintenance release to fix package versioning in JSS templates.
21.3.0
21.3.0
🎉 New Features & Improvements
[sitecore-jss-nextjs]
Support for public URL resolution in Netlify (#1585)
🛠 Breaking Changes
[sitecore-jss-angular]
[sitecore-jss-angular-schematics]
[templates/angular]
Angular is updated to v15. This update includes the below major version upgrades and changes. Please make sure your codebase is updated to accomodate the changes in the above dependencies. (#1604 #1607)- Angular update: https://github.com/angular/angular/releases/tag/15.0.0
- Angular CLI: https://github.com/angular/angular-cli/releases/tag/15.0.0
- Angular ESLint: https://github.com/angular-eslint/angular-eslint/releases/tag/v15.0.0
- rxjs: https://rxjs.dev/6-to-7-change-summary
- Angular sample has been updated to use ES2022.
21.2.4
21.2.4
🎉 New Features & Improvements
[templates]
Add JSS_APP_NAME to .env files (#1571)
🐛 Bug Fixes
[sitecore-jss]
GraphQLSiteInfoService does not fetch more than 10 sites (#1569)[sitecore-jss-vue]
Link component renders link description even when children are provided (#1570)[sitecore-jss-dev-tools]
Fix line endings for component builder (#1580)[templates/nextjs-sxa]
Fix font awesome - added CDN instead of using node_modules(problem with CORS) (#1536)[templates/nextjs-sxa]
Fix menu component of third-level menu. (#1540)
21.2.3
21.2.2
21.2.1
21.2.0
21.2.0
🎉 New Features & Improvements
[templates/nexts]
[sitecore-jss-dev-tools]
[sitecore-jss-nextjs]
Move template related script to the base package (#1520):[sitecore-jss-nextjs]
:- Introduced ComponentBuilder class for generating component factories and module factories.
- ComponentPropsService componentModule property renamed to moduleFactory.
- Adjusted ComponentModule definition:
- renamed to ModuleFactory.
- Module type besides the initial limited set of props now can also include any React component. React.Component is replaced by React.ComponentType.
[sitecore-jss-dev-tools]
:- Introduced nextjs submodule, which contains component builder generation functionality.
[templates/nextjs]
:- Introduced plugins architecture for component builder and scaffold component generation processes.
- Reused new utils added to sitecore-jss-dev-tools.
[templates/react]
[sitecore-jss-dev-tools]
Refactoring for react template (#1506)(#1515):[templates/react]
:- Introduced plugins architecture for boostrap, config and component builder generation process
- Updated components tree to represent the structure: fields, styleguide, graphql folders.
[sitecore-jss-react]
Introduced ComponentBuilder class for generating component factories[sitecore-jss-dev-tools]
:- Introduced react submodule, which contains component builder generation functionality
- Added common utils for plugins, file generation
[templates/nextjs-personalize]
Disable page view tracking event in development (#1414)[templates/nextjs-sxa]
Add custom template for jss scaffold (#1420)[sitecore-jss-react]
[sitecore-jss-nextjs]
FEaaS component will render 'staged' variant for editing and preview and 'published' variant for live site by default, unless variant is overriden via rendering parameters. (#1433)[templates/nextjs]
[templates/angular]
[templates/react]
[templates/vue]
Pre-push hook for lint check (#1427) (#1442) (#1444) (#1468) (#1472)[sitecore-jss-nextjs]
Add a new handling for token $siteLang(context site language) in middleware redirect (#1454)[sitecore-jss]
[templates/nextjs-sxa]
Rewrite logic of handling custom error pages. The error pages rewrite page with error(it's saving status code) instead of redirected (#1469) (#1476)[templates/nextjs]
Remove .babelrc to (re)enable SWC compilation by default (#1483)[sitecore-jss]
Handle null items in graphql layout service. (#1492)[templates/nextjs-personalize]
[sitecore-jss]
Update the default personalize middleware, personalize/cdp service timeout values to 400 (#1507)[templates/react]
[templates/angular]
[templates/vue]
Remove persisted query link since APQ(Automatic Persisted Queries) is not supported on Sitecore Experience Edge Delivery (#1420)[sitecore-jss]
[templates/nextjs-personalize]
Introduced optional personalize scope identifier to isolate embedded personalization data among XM Cloud Environments that are sharing a Personalize tenant (#1494)[sitecore-jss-nextjs]
Add prefetchLinks paramter to the RichText component to allow prefetching of links to be enabled/disabled (#1517)
🧹 Chores
- Automated API doc generation and added packages/samples filter (#1470)(#1474)
- Revisit and update github ISSUE_TEMPLATE (#1445)
- Configure the recommended VSCode extensions for the starters (#1437)
[templates/nextjs]
[templates/nextjs-styleguide-tracking]
Move remaining Styleguide-Tracking artifacts from the base template (#1422)- Fix API Doc generation (#1464)
- Update Sitecore logos (#1467)
- Fix security vulnerabilities (#1381)
[templates/nextjs-sxa]
Move some dependencies to devDependencies (#1489)[templates/nextjs-sxa]
Clarify rootItemId usage for Dictionary Service in SXA sites (#1409)
🐛 Bug Fixes
[templates/angular]
[templates/vue]
Link component does not add anchor to the internal links (#1511)[templates/react]
[React]
Cannot find package '@babel/plugin-proposal-export-namespace-from' (#1510)[templates/angular]
[templates/vue]
Sitecore service endpoint is not proxied in Connected mode (#1465)[templates/nextjs]
Healthz shows page not found for multisite setup (#1443)[sitecore-jss-react]
Hydration error when render Link in Edit mode (#1432)[sitecore-jss-nextjs]
Fix for Link component which throws error if field is undefined (#1425)[templates/react]
Fix compilation error when developing react template in monorepo (#1428) (#1451)[sitecore-jss-nextjs]
Fix regex for middleware redirects (#1431)[sitecore-jss-angular]
Fix memory leak in image and link components (#1435)[templates/nextjs-multisite]
Fix skipped site info fetch (#1434)[angular]
Fix app build errors. Webpack version is locked at 5.78 due to webpack/webpack#16981 (#1448)[sitecore-jss-nextjs]
Fix middleware redirect when the target use regexp with querystring (#1449) (#1460)[templates/nextjs]
Fix incorrectly named .gitignore file \scripts\temp.npmignore (#1463)[angular]
Avoid sending two dictionary service calls when switching language and refreshing the page (#1473)- Fix installed sitecore-jss-* dependency version (#1478)
[node-headless-ssr-experience-edge]
Add helper comment for rootItemId (#1491)[templates/nextjs-sxa]
Add condition DISABLE_SSG_FETCH for 404/500 pages to enable full ISR (Incremental Static Regeneration) flow (#1496)[templates/nextjs-sxa]
Fix class .indent for component which have column size 12 (#1505)[templates/nextjs-sxa]
Fix type(from Text to RichText) of editing text in value Text2 for Promo Component in WithText variant (#1504).[sitecore-jss-nextjs]
Fix RichText component to re-initialize links when content changes (#1503)[angular]
[react]
[vue]
[nextjs]
Prevent personalized component rendering errors when default variant is hidden (#1383)[vue]
Fix disconnected mode not starting in monorepo setup (#1418)[sitecore-jss-proxy]
The rewriteRequestPath function ignores query string parameters added in a middleware(#1373) (#1379)[templates/react]
[React]
Fix build error (#1505)[templates/vue]
[Vue]
Fix integrated mode error (#1505)
🛠 Breaking Changes
[templates/nexts]
[sitecore-jss-dev-tools]
[sitecore-jss-nextjs]
Move template related script to the base package (#1520):[sitecore-jss-nextjs]
:- ComponentPropsService fetchServerSideComponentProps, fetchStaticComponentProps methods accept params.moduleFactory instead of params.componentModule.
- Exports ModuleFactory instead of ComponentModule.
[sitecore-jss-react]
[sitecore-jss-nextjs]
[templates/nextjs-sxa]
FEaaS component is now server rendered. Prop type used FEaaSWrapper has been modified alongside with FEaaSWrapper implementation. Make sure you use the updated type and the updated wrapper. (#1413) (#1513)[sitecore-jss-rendering-host]
startDevServer is retired. startRenderingHostServer is the only w...