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

Make template lint use node glob to ensure consistent lint results across OS #1959

Closed
wants to merge 95 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
1db241a
Make template lint use node glob to ensure consistent lint results
Oct 24, 2024
d4f89b6
Updated changelong
Oct 24, 2024
1007859
[XM Cloud][Angular] Navigation component link forces full page reload…
illiakovalenko Oct 25, 2024
25f42e0
Update API docs [skip ci]
Oct 25, 2024
0c5ee0c
version v22.2.0-canary.78 [skip ci]
Oct 25, 2024
892e6d1
[angular][xmcloud] CDP page view component (#1957)
yavorsk Oct 29, 2024
b2113a9
Update API docs [skip ci]
Oct 29, 2024
c3625ae
version v22.2.0-canary.79 [skip ci]
Oct 29, 2024
531c82a
[angular][xmcloud] Do not initialize CloudSDK if we are in edit or pr…
yavorsk Oct 31, 2024
100d432
Update API docs [skip ci]
Oct 31, 2024
0ecca7f
version v22.2.0-canary.80 [skip ci]
Oct 31, 2024
0935408
[nextjs] Update Cloudsdk to v0.4 (#1933)
art-alexeyenko Oct 31, 2024
2f4f195
Update API docs [skip ci]
Oct 31, 2024
8b71087
version v22.2.0-canary.81 [skip ci]
Oct 31, 2024
c27405f
bump main canary to 22.3.0
art-alexeyenko Oct 31, 2024
85da252
Update API docs [skip ci]
Oct 31, 2024
204eb34
version v22.3.0-canary.1 [skip ci]
Oct 31, 2024
dcd70ff
[Chore] New Angular add-on's are not scaffolded within build pipeline…
illiakovalenko Nov 1, 2024
5741905
Update API docs [skip ci]
Nov 1, 2024
0065e93
version v22.3.0-canary.2 [skip ci]
Nov 1, 2024
2674d45
[nextjs][xmcloud] Introduce property `enablePersonalizeCookie` to Pe…
yavorsk Nov 4, 2024
a27764b
Update API docs [skip ci]
Nov 4, 2024
3de00d8
version v22.3.0-canary.3 [skip ci]
Nov 4, 2024
456b9df
[angular-xmcloud][xmcloud-proxy] Personalization support (#1964)
art-alexeyenko Nov 7, 2024
3ec9ca9
Update API docs [skip ci]
Nov 7, 2024
41544c7
version v22.3.0-canary.4 [skip ci]
Nov 7, 2024
f4f5c58
[BYOC] Form's submission is failing. Updated @sitecore-feaas/clientsi…
illiakovalenko Nov 12, 2024
be0d00c
Update API docs [skip ci]
Nov 12, 2024
a6348ad
version v22.3.0-canary.5 [skip ci]
Nov 12, 2024
3ea859f
Bumped @sitecore/components to 2.0.1
illiakovalenko Nov 13, 2024
9c808dd
Update API docs [skip ci]
Nov 13, 2024
a24d0e9
version v22.3.0-canary.6 [skip ci]
Nov 13, 2024
f6b2779
Updated CHANGELOG [skip ci]
illiakovalenko Nov 13, 2024
dc14814
[Chore][Vue] Upgrade to Vue 3.5 (#1970)
art-alexeyenko Nov 13, 2024
c4a0b91
Update API docs [skip ci]
Nov 13, 2024
1a21473
version v22.3.0-canary.7 [skip ci]
Nov 13, 2024
ff173d8
Add new file
Nov 14, 2024
3a8e0da
Update API docs [skip ci]
Nov 14, 2024
af8edb1
version v22.3.0-canary.8 [skip ci]
Nov 14, 2024
65bf40b
Add new file
Nov 14, 2024
6e1eef3
Add new file
Nov 14, 2024
bc70f71
Remove test files [skip ci]
illiakovalenko Nov 14, 2024
61a0c5a
[sitecore-jss-proxy] Ensure page variants can be switched in Pages (#…
art-alexeyenko Nov 14, 2024
ef3da02
Update API docs [skip ci]
Nov 14, 2024
80aab2e
version v22.3.0-canary.9 [skip ci]
Nov 14, 2024
ff6900f
[template/angular-xmcloud][template/xmcloud-proxy] Add README.md (#1965)
addy-pathania Nov 15, 2024
42d05fd
Update API docs [skip ci]
Nov 15, 2024
e3e3221
version v22.3.0-canary.10 [skip ci]
Nov 15, 2024
02c4c7d
[Angular] [Next.js] Support Editing Host protection by handling OPTIO…
illiakovalenko Nov 18, 2024
ed7aff8
Update API docs [skip ci]
Nov 18, 2024
0c8193a
version v22.3.0-canary.11 [skip ci]
Nov 18, 2024
da1ead1
[angular-xmcloud][xmcloud-proxy] Move PERSONALIZE_SCOPE to angular SP…
art-alexeyenko Nov 18, 2024
72c7ad0
Update API docs [skip ci]
Nov 18, 2024
5a151c7
version v22.3.0-canary.12 [skip ci]
Nov 18, 2024
ba1b7ea
[Chore] Update to nodejs v22 (#1975)
art-alexeyenko Nov 19, 2024
abc1827
Update API docs [skip ci]
Nov 19, 2024
3594160
version v22.3.0-canary.13 [skip ci]
Nov 19, 2024
03cfa5f
[sitecore-jss-proxy][sitecore-jss-nextjs] Fix for getCSPHeader functi…
yavorsk Nov 20, 2024
3b9164f
Update API docs [skip ci]
Nov 20, 2024
dd85f30
version v22.3.0-canary.14 [skip ci]
Nov 20, 2024
d6bdb5a
[templates/angular] Update angular template to support deployment to …
yavorsk Nov 20, 2024
1165d54
Update API docs [skip ci]
Nov 20, 2024
3b2f6e4
version v22.3.0-canary.15 [skip ci]
Nov 20, 2024
ff40046
[Chore] Update typedoc for compatibility with latest typescript (#1978)
art-alexeyenko Nov 20, 2024
0cabac2
Update API docs [skip ci]
Nov 20, 2024
950f632
version v22.3.0-canary.16 [skip ci]
Nov 20, 2024
b4e1e0a
Revert "[Chore] Update typedoc for compatibility with latest typescri…
art-alexeyenko Nov 20, 2024
b6f6d00
Update API docs [skip ci]
Nov 20, 2024
8f86fd3
version v22.3.0-canary.17 [skip ci]
Nov 20, 2024
975095c
v22.3.1-canary.0
illiakovalenko Nov 25, 2024
c711238
Updated templates
illiakovalenko Nov 25, 2024
d2161c7
Update API docs [skip ci]
Nov 25, 2024
1e8026b
version v22.3.1-canary.1 [skip ci]
Nov 25, 2024
d560625
[Chore] Manual typedoc update (#1982)
art-alexeyenko Nov 26, 2024
968c73a
Update API docs [skip ci]
Nov 26, 2024
5b35bbb
version v22.3.1-canary.2 [skip ci]
Nov 26, 2024
e846f48
[Chore] Release process, maintenance simplification (#1960)
illiakovalenko Nov 27, 2024
3f68337
Update API docs [skip ci]
Nov 27, 2024
58fdcde
version v22.3.1-canary.3 [skip ci]
Nov 27, 2024
196a36a
[Chore] Added .npmrc to gitignore [skip ci]
illiakovalenko Nov 27, 2024
991c8f5
update angular xmcloud and xmcloud proxy readmes (#1985)
yavorsk Nov 28, 2024
ce345fd
Update API docs [skip ci]
Nov 28, 2024
4c9c7a3
version v22.3.1-canary.4 [skip ci]
Nov 28, 2024
ae0d0d6
[sitecore-jss-angular] [template/angular] Integrate CloudSDK events f…
addy-pathania Nov 29, 2024
c640bed
Update API docs [skip ci]
Nov 29, 2024
12147b5
version v22.3.1-canary.5 [skip ci]
Nov 29, 2024
19bb664
[templates/angular] [templates/angular-sxp] [templates/angular-xmclou…
yavorsk Nov 29, 2024
1ea670d
Update API docs [skip ci]
Nov 29, 2024
8bced38
version v22.3.1-canary.6 [skip ci]
Nov 29, 2024
34f482a
Make template lint use node glob to ensure consistent lint results
Oct 24, 2024
c0beb97
Updated changelong
Oct 24, 2024
e8feb6c
Merge branch 'feature/template-node-glob' of https://github.com/Elyse…
Elyseum Nov 29, 2024
23c34b9
Revert "Updated changelong"
Elyseum Nov 29, 2024
13eb8fd
Revert "Make template lint use node glob to ensure consistent lint re…
Elyseum Nov 29, 2024
b6db5ac
Revert "Updated changelong"
Elyseum Nov 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
},
"plugins": [
"@typescript-eslint",
"@stylistic/ts",
"prettier",
"jsdoc"
],
Expand Down Expand Up @@ -63,6 +64,9 @@
"allowTernary": true
}
],
"no-unused-vars": [
"error"
],
"brace-style": "error",
"quotes": [
"error",
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ samples/

.idea
.next

.npmrc
48 changes: 46 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Our versioning strategy is as follows:

### 🐛 Bug Fixes

* `[templates/angular-xmcloud]` Navigation component link forces full page reload ([#1958](https://github.com/Sitecore/jss/pull/1958))
* `[sitecore-jss-nextjs]` Link component prefetches files ([#1956](https://github.com/Sitecore/jss/pull/1956))
* `[templates/nextjs]` `[templates/react]` `[templates/angular]` `[templates/vue]` Fixed an issue when environment variable is undefined (not present in .env), that produced an "undefined" value in generated config file ([#1875](https://github.com/Sitecore/jss/pull/1875))
* `[templates/nextjs]` Fix embedded personalization not rendering correctly after navigation through router links. ([#1911](https://github.com/Sitecore/jss/pull/1911))
Expand All @@ -22,6 +23,8 @@ Our versioning strategy is as follows:
* `[sitecore-jss-angular]` Fix nested dynamic placeholders not being displayed in Pages ([#1947](https://github.com/Sitecore/jss/pull/1947))
* `[sitecore-jss-dev-tools]` getMetadata() now uses `npm query` command to get the list and exact versions of packages. this solution works for monorepo setups ([#1949](https://github.com/Sitecore/jss/pull/1949))
* `[templates/nextjs-sxa]` Fix an alignment issue where components using both `me-auto` and `ms-md-auto` classes resulted in inconsistent alignment of elements. ([#1946](https://github.com/Sitecore/jss/pull/1946)) ([#1950](https://github.com/Sitecore/jss/pull/1950)) ([#1955](https://github.com/Sitecore/jss/pull/1955))
* `[sitecore-jss-proxy]``[sitecore-jss-nextjs]` Fix for getCSPHeader so that it returns proper value for the CSP header when JSS_ALLOWED_ORIGINS lists multiple origins delimited with comma. ([#1972](https://github.com/Sitecore/jss/pull/1972))
* `[sitecore-jss-proxy]` Support Editing Host protection by handling OPTIONS preflight requests ([#1976](https://github.com/Sitecore/jss/pull/1976))

### 🎉 New Features & Improvements

Expand All @@ -38,6 +41,7 @@ Our versioning strategy is as follows:
* `proxyAppDestination` arg can be passed into `create-sitecore-jss` command to define path for proxy to be installed in
* `[templates/angular]` `[templates/angular-xmcloud]` `[template/node-xmcloud-proxy]` `[sitecore-jss-proxy]` Introduced /api/editing/config endpoint ([#1903](https://github.com/Sitecore/jss/pull/1903))
* `[templates/angular]` `[templates/angular-xmcloud]` `[template/node-xmcloud-proxy]` `[sitecore-jss-proxy]` Introduced /api/editing/render endpoint ([#1908](https://github.com/Sitecore/jss/pull/1908))
* `[templates/angular-xmcloud]` `[template/node-xmcloud-proxy]` Personalization support ([#1964](https://github.com/Sitecore/jss/pull/1964)[#1971](https://github.com/Sitecore/jss/pull/1971)[#1973](https://github.com/Sitecore/jss/pull/1973))
* `[create-sitecore-jss]``[sitecore-jss-angular]``[template/angular-xmcloud]` Angular SXA components
* Angular placeholder now supports SXA components ([#1870](https://github.com/Sitecore/jss/pull/1870))
* Component styles ([#1917](https://github.com/Sitecore/jss/pull/1917))
Expand Down Expand Up @@ -71,8 +75,12 @@ Our versioning strategy is as follows:
* `[template/node-xmcloud-proxy]` `[sitecore-jss-proxy]` Introduced /api/healthz endpoint ([#1928](https://github.com/Sitecore/jss/pull/1928))
* `[sitecore-jss]` `[sitecore-jss-angular]` Render field metdata chromes in editMode metadata - in edit mode metadata in Pages, angular package field directives will render wrapping `code` elements with field metadata required for editing; ([#1926](https://github.com/Sitecore/jss/pull/1926))
* `[angular-xmcloud]``[sitecore-jss-angular]` Analytics and CloudSDK integration
* `[angular-xmcloud]` Add CloudSDK initialization on client side ([#1952](https://github.com/Sitecore/jss/pull/1952))

* `[angular-xmcloud]` Add CloudSDK initialization on client side ([#1952](https://github.com/Sitecore/jss/pull/1952))([#1957](https://github.com/Sitecore/jss/pull/1957))([#1961](https://github.com/Sitecore/jss/pull/1961))
* `[angular-xmcloud]``[sitecore-jss-angular]` Add CDP Page View component to Angular XM Cloud add-on ([#1957](https://github.com/Sitecore/jss/pull/1957))
* `[templates/vue]``[sitecore-jss-vue]` Vue version has been updated to 3.5
* `[templates/angular]` Update dependencies and proxy build path value to be unix style path to support xmcloud deployment and monorepo starter kit in xmcloud foundation head ([#1977](https://github.com/Sitecore/jss/pull/1977))
* `[templates/angular]``[templates/angular-sxp]``[templates/angular-xmcloud]` Updates for Angular XMC sample to work well with local containers and spa-starters monorepo in xmcloud-foundation ([#1983](https://github.com/Sitecore/jss/pull/1983))
* `[sitecore-jss-angular]``[templates/angular]` Integrate CloudSDK events firing ([#1984](https://github.com/Sitecore/jss/pull/1984))

### 🛠 Breaking Change

Expand All @@ -82,10 +90,46 @@ Our versioning strategy is as follows:
* `[sitecore-jss-proxy]` Updated exports of the module for better extensibility ([#1903](https://github.com/Sitecore/jss/pull/1903))
* `express@^4.19.2` dependency is marked as a peer dependency
* Default `scProxy` middleware export is replaced by `headlessProxy` object that contains the `middleware`, `ProxyConfig`, `ServerBundle` properties
* `[all packages][all samples]` Updated packages and apps to use nodejs 22.
* `[nextjs]`,`[react]``[angular]``[node-headless-ssr-proxy]` Updated `typescript` to latest version
* `[nextjs]` Updated `@typescript-eslint` to version 8

### 🧹 Chores

* `[templates/angular]``[templates/node-xmcloud-proxy]``[templates/node-headless-ssr-proxy]``[templates/node-headless-ssr-experience-edge]` Adjust out of box .gitignore rules
* New Angular add-on's are not scaffolded within build pipeline ([#1962](https://github.com/Sitecore/jss/pull/1962))
* Release process, maintenance simplification ([#1960](https://github.com/Sitecore/jss/pull/1960))
* `[template/angular-xmcloud]``[template/xmcloud-proxy]` Add README.md ([#1965](https://github.com/Sitecore/jss/pull/1965))

## 22.2.2

### 🐛 Bug Fixes

* `[sitecore-jss-nextjs]` Support Editing Host protection by handling OPTIONS preflight requests (#[TBD](TBD))

## 22.2.1

### 🐛 Bug Fixes

* `[sitecore-jss-react]` `[templates/nextjs-xmcloud]` [BYOC] Form's submission is failing ([#1966](https://github.com/Sitecore/jss/pull/1966)):
* Updated @sitecore-feaas/clientside to v0.5.19.
* Updated @sitecore/components to v2.0.1.
* Passed rendering data to FEAAS.ExternalComponent.

Make sure to update the relevant dependencies to be able to use the latest fixes.

* `[sitecore-jss-react]` `[templates/nextjs-xmcloud]` Updated @sitecore-cloudsdk to v0.4.1 ([#1966](https://github.com/Sitecore/jss/pull/1966))

## 22.2.0

### 🛠 Breaking Change

* `[templates/nextjs-xmcloud]` CloudSDK dependencies have been updated to 0.4.0 ([#1933](https://github.com/Sitecore/jss/pull/1933))
* `[templates/nextjs-xmcloud]` `@sitecore/components` dependency has been updated to 2.0.0 ([#1933](https://github.com/Sitecore/jss/pull/1933))
* `[templates/nextjs-xmcloud]` `lib/context` import has been removed. Values from `temp/config` can be used instead. ([#1933](https://github.com/Sitecore/jss/pull/1933))
* `[sitecore-jss-nextjs]` `Context` import and `@sitecore-jss/sitecore-jss-nextjs/context` submodule have been removed. ([#1933](https://github.com/Sitecore/jss/pull/1933))
* `[sitecore-jss-nextjs]` update personalize-middleware for CloudSDK 0.4.0 - pass `enablePersonalizeCookie` to CloudSDK.addPersonalize() function ([#1963](https://github.com/Sitecore/jss/pull/1963))


## 22.1.4

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Want to contribute to Sitecore JavaScript Services? There are a few things you n

## Pre-requisites:

- `node.js` (Use version `>= 18` or [Active LTS](https://nodejs.org/en/about/releases/)) installed (cmd `node -v` to test).
- `node.js` (Use an [Active LTS](https://nodejs.org/en/about/releases/) version (cmd `node -v` to test)).
- `npm` (`>= 9`) installed (cmd `npm -v` to test).

Install yarn globally:
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ To create a JSS project for an older version of JSS and Sitecore:

## Documentation and community resources

- [Official JSS documentation](https://doc.sitecore.com/xp/en/developers/hd/200/sitecore-headless-development/sitecore-javascript-rendering-sdks--jss-.html)
- Official JSS documentation:
- [XM Cloud](https://doc.sitecore.com/xmc/en/developers/jss/latest/jss-xmc/index-en.html)
- [XP](https://doc.sitecore.com/xp/en/developers/hd/latest/sitecore-headless-development/sitecore-javascript-rendering-sdks--jss-.html)
- [StackExchange](https://sitecore.stackexchange.com/)
- [Community Slack](https://sitecorechat.slack.com/messages/jss)
- [Sitecore Community Forum](https://community.sitecore.net/developers/f/40)
Expand Down
13 changes: 0 additions & 13 deletions UPGRADING.md

This file was deleted.

2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ variables:
steps:
- task: NodeTool@0
inputs:
versionSpec: '20.x'
versionSpec: '22.x'
- script: |
yarn cache clean --all && yarn install --immutable
displayName: 'yarn install - initial'
Expand Down
6 changes: 0 additions & 6 deletions docs/upgrades/21.x/21.6.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/upgrades/21.x/21.7.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/upgrades/21.x/21.8.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/upgrades/22.x/22.0.md

This file was deleted.

Loading