diff --git a/.changeset/blue-meteors-fail.md b/.changeset/blue-meteors-fail.md deleted file mode 100644 index f3d099ddbf..0000000000 --- a/.changeset/blue-meteors-fail.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'create-content-sdk-app': patch ---- - -Resolve draft/preview before cached page lookup so Pages Editor works for non-default locales diff --git a/.changeset/cold-shoes-do.md b/.changeset/cold-shoes-do.md deleted file mode 100644 index d344fad3fb..0000000000 --- a/.changeset/cold-shoes-do.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@sitecore-content-sdk/content': patch -'@sitecore-content-sdk/nextjs': patch ---- - -[SXA Redirects] Refactor redirects logic to be reusable across frameworks diff --git a/.changeset/empty-years-spend.md b/.changeset/empty-years-spend.md deleted file mode 100644 index 25205f6298..0000000000 --- a/.changeset/empty-years-spend.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@sitecore-content-sdk/nextjs': patch -'create-content-sdk-app': patch ---- - -Add `redirects.localeInPath` so App Router redirect locale handling works when LocaleProxy is removed (`x-sc-locale` is optional). `true`/`false` control path prefixes; default `null` keeps the `x-sc-locale` header fallback (non-breaking). App Router templates set `true`. \ No newline at end of file diff --git a/.changeset/hip-meteors-bathe.md b/.changeset/hip-meteors-bathe.md deleted file mode 100644 index f68b6795c5..0000000000 --- a/.changeset/hip-meteors-bathe.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sitecore-content-sdk/angular': minor ---- - -Support optional `sc_previewTime` on the Angular editing render endpoint for time-based Edge preview. diff --git a/.changeset/humble-numbers-smile.md b/.changeset/humble-numbers-smile.md deleted file mode 100644 index b2324db370..0000000000 --- a/.changeset/humble-numbers-smile.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'create-content-sdk-app': patch -'@sitecore-content-sdk/angular': patch ---- - -[Chore] Cleanup demo code diff --git a/.changeset/itchy-books-rush.md b/.changeset/itchy-books-rush.md deleted file mode 100644 index e0fe9e417f..0000000000 --- a/.changeset/itchy-books-rush.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@sitecore-content-sdk/angular': minor -'create-content-sdk-app': patch ---- - -Bot tracking support for Angular - - Expose `createBotTrackingMiddleware` function that creates an Express middleware for identifying bot requests \ No newline at end of file diff --git a/.changeset/locales-ensure-noncase.md b/.changeset/locales-ensure-noncase.md deleted file mode 100644 index 8f89a49040..0000000000 --- a/.changeset/locales-ensure-noncase.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sitecore-content-sdk/nextjs': patch ---- - -[SXA Redirects] Ensure locales are compared case-insensitively diff --git a/.changeset/search-locale-facets.md b/.changeset/search-locale-facets.md deleted file mode 100644 index 7dcc006d93..0000000000 --- a/.changeset/search-locale-facets.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@sitecore-content-sdk/search': minor -'@sitecore-content-sdk/react': minor ---- - -Add locale and facet support to search package and React hooks - -- `SearchParameters` now accepts an optional `locale` field for multi-locale index configurations -- `SearchParameters` now accepts an optional `facet` field (`FacetRequest`) to request facet counts and filter by facet values -- `SearchResponse` now includes an optional `facets` field (`FacetResult[]`) with facet data when requested -- Six new public types exported from `@sitecore-content-sdk/search`: `FacetRequest`, `FacetField`, `FacetFilter`, `FacetFilterOperator`, `FacetValue`, `FacetResult` -- `useSearch` and `useInfiniteSearch` hooks in `@sitecore-content-sdk/react` updated to support the new `locale` and `facet` options and expose `facets` in the returned state diff --git a/.changeset/six-deer-grin.md b/.changeset/six-deer-grin.md deleted file mode 100644 index de9cfb16b7..0000000000 --- a/.changeset/six-deer-grin.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@sitecore-content-sdk/angular': minor -'create-content-sdk-app': patch ---- - -SXA Redirects support in Angular diff --git a/.changeset/tasty-pianos-eat.md b/.changeset/tasty-pianos-eat.md deleted file mode 100644 index 0488addb05..0000000000 --- a/.changeset/tasty-pianos-eat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sitecore-content-sdk/nextjs': patch ---- - -[App router] Locale always attached on redirect when `isLanguagePreserved` is true, request URL does not have locale prefix and redirect does not change locale diff --git a/.changeset/yummy-ends-retire.md b/.changeset/yummy-ends-retire.md deleted file mode 100644 index 38778ba406..0000000000 --- a/.changeset/yummy-ends-retire.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@sitecore-content-sdk/content': patch -'@sitecore-content-sdk/nextjs': patch ---- - -Redirect Proxy not matching encoded URLs with unicode characters in Redirect Map diff --git a/packages/angular/CHANGELOG.md b/packages/angular/CHANGELOG.md index 67ecfa073c..05f67e3189 100644 --- a/packages/angular/CHANGELOG.md +++ b/packages/angular/CHANGELOG.md @@ -1,5 +1,18 @@ # @sitecore-content-sdk/angular +## 0.2.0 + +### Minor Changes + +- Support optional `sc_previewTime` on the Angular editing render endpoint for time-based Edge preview. ([8b18c6e](https://github.com/sitecore/content-sdk/commit/8b18c6e6c2cc3546028f5408655ca263435d7507)) +- Bot tracking support for Angular ([4c907d5](https://github.com/sitecore/content-sdk/commit/4c907d5f6aac9870a7c40fd993f1f70ddce4802f)) + - Expose `createBotTrackingMiddleware` function that creates an Express middleware for identifying bot requests +- SXA Redirects support in Angular ([07c6169](https://github.com/sitecore/content-sdk/commit/07c6169d94098a2bc2f491ef61de4d253b52b098)) + +### Patch Changes + +- [Chore] Cleanup demo code ([758194c](https://github.com/sitecore/content-sdk/commit/758194c5352b02735bc7dfd29f021597ce763889)) + ## 0.1.0 ### Minor Changes diff --git a/packages/angular/package.json b/packages/angular/package.json index ab1a091462..bf25383226 100644 --- a/packages/angular/package.json +++ b/packages/angular/package.json @@ -1,6 +1,6 @@ { "name": "@sitecore-content-sdk/angular", - "version": "0.1.0", + "version": "0.2.0", "installConfig": { "hoistingLimits": "none" }, @@ -67,7 +67,7 @@ "dependencies": { "@ngx-translate/core": "^17.0.0", "@sitecore-content-sdk/analytics-core": "^2.1.1", - "@sitecore-content-sdk/content": "^2.2.1", + "@sitecore-content-sdk/content": "^2.2.2", "@sitecore-content-sdk/core": "^2.1.2", "@sitecore-content-sdk/events": "^2.1.1", "@sitecore-content-sdk/personalize": "^2.1.0", diff --git a/packages/content/CHANGELOG.md b/packages/content/CHANGELOG.md index 151efbd5d3..2858d49153 100644 --- a/packages/content/CHANGELOG.md +++ b/packages/content/CHANGELOG.md @@ -1,5 +1,12 @@ # @sitecore-content-sdk/content +## 2.2.2 + +### Patch Changes + +- [SXA Redirects] Refactor redirects logic to be reusable across frameworks ([6f8e423](https://github.com/sitecore/content-sdk/commit/6f8e423028bdf8a74a2fc4b8cb084961d755b73f)) +- Redirect Proxy not matching encoded URLs with unicode characters in Redirect Map ([6563736](https://github.com/sitecore/content-sdk/commit/6563736fb3fdcd5885f88fcfe20c15d0800efbd7)) + ## 2.2.1 ### Patch Changes diff --git a/packages/content/package.json b/packages/content/package.json index 1152b4c906..ebdba49b82 100644 --- a/packages/content/package.json +++ b/packages/content/package.json @@ -1,6 +1,6 @@ { "name": "@sitecore-content-sdk/content", - "version": "2.2.1", + "version": "2.2.2", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "sideEffects": false, diff --git a/packages/create-content-sdk-app/CHANGELOG.md b/packages/create-content-sdk-app/CHANGELOG.md index c96dec3b45..33b0cd69cb 100644 --- a/packages/create-content-sdk-app/CHANGELOG.md +++ b/packages/create-content-sdk-app/CHANGELOG.md @@ -1,5 +1,40 @@ # create-content-sdk-app +## 2.3.1 + +### Patch Changes + +- Resolve draft/preview before cached page lookup so Pages Editor works for non-default locales ([3a21c12](https://github.com/sitecore/content-sdk/commit/3a21c1285ac924b2e5a0de164e3e0443e587c7f7)) +- Add `redirects.localeInPath` so App Router redirect locale handling works when LocaleProxy is removed (`x-sc-locale` is optional). `true`/`false` control path prefixes; default `null` keeps the `x-sc-locale` header fallback (non-breaking). App Router templates set `true`. ([e2bac91](https://github.com/sitecore/content-sdk/commit/e2bac910e40a6a22e8fa9fcb73f79f143a5fcf46)) +- [Chore] Cleanup demo code ([758194c](https://github.com/sitecore/content-sdk/commit/758194c5352b02735bc7dfd29f021597ce763889)) +- Bot tracking support for Angular ([4c907d5](https://github.com/sitecore/content-sdk/commit/4c907d5f6aac9870a7c40fd993f1f70ddce4802f)) + - Expose `createBotTrackingMiddleware` function that creates an Express middleware for identifying bot requests +- SXA Redirects support in Angular ([07c6169](https://github.com/sitecore/content-sdk/commit/07c6169d94098a2bc2f491ef61de4d253b52b098)) +- minor `@sitecore-content-sdk/angular` dependency update: + - Support optional `sc_previewTime` on the Angular editing render endpoint for time-based Edge preview. ([8b18c6e](https://github.com/sitecore/content-sdk/commit/8b18c6e6c2cc3546028f5408655ca263435d7507)) + - Bot tracking support for Angular + - Expose `createBotTrackingMiddleware` function that creates an Express middleware for identifying bot requests ([4c907d5](https://github.com/sitecore/content-sdk/commit/4c907d5f6aac9870a7c40fd993f1f70ddce4802f)) + - SXA Redirects support in Angular ([07c6169](https://github.com/sitecore/content-sdk/commit/07c6169d94098a2bc2f491ef61de4d253b52b098)) +- minor `@sitecore-content-sdk/react` dependency update: + + - Add locale and facet support to search package and React hooks + + - `SearchParameters` now accepts an optional `locale` field for multi-locale index configurations + - `SearchParameters` now accepts an optional `facet` field (`FacetRequest`) to request facet counts and filter by facet values + - `SearchResponse` now includes an optional `facets` field (`FacetResult[]`) with facet data when requested + - Six new public types exported from `@sitecore-content-sdk/search`: `FacetRequest`, `FacetField`, `FacetFilter`, `FacetFilterOperator`, `FacetValue`, `FacetResult` + - `useSearch` and `useInfiniteSearch` hooks in `@sitecore-content-sdk/react` updated to support the new `locale` and `facet` options and expose `facets` in the returned state ([ce89722](https://github.com/sitecore/content-sdk/commit/ce897227369d7cdccf3cbb79b621c67585f7aff6)) + +- minor `@sitecore-content-sdk/search` dependency update: + + - Add locale and facet support to search package and React hooks + + - `SearchParameters` now accepts an optional `locale` field for multi-locale index configurations + - `SearchParameters` now accepts an optional `facet` field (`FacetRequest`) to request facet counts and filter by facet values + - `SearchResponse` now includes an optional `facets` field (`FacetResult[]`) with facet data when requested + - Six new public types exported from `@sitecore-content-sdk/search`: `FacetRequest`, `FacetField`, `FacetFilter`, `FacetFilterOperator`, `FacetValue`, `FacetResult` + - `useSearch` and `useInfiniteSearch` hooks in `@sitecore-content-sdk/react` updated to support the new `locale` and `facet` options and expose `facets` in the returned state ([ce89722](https://github.com/sitecore/content-sdk/commit/ce897227369d7cdccf3cbb79b621c67585f7aff6)) + ## 2.3.0 ### Minor Changes diff --git a/packages/create-content-sdk-app/package.json b/packages/create-content-sdk-app/package.json index 70af1572bf..4b8d5d80ee 100644 --- a/packages/create-content-sdk-app/package.json +++ b/packages/create-content-sdk-app/package.json @@ -1,6 +1,6 @@ { "name": "create-content-sdk-app", - "version": "2.3.0", + "version": "2.3.1", "description": "Sitecore Content SDK initializer", "bin": "./dist/index.js", "scripts": { @@ -39,10 +39,10 @@ }, "devDependencies": { "@sitecore-content-sdk/analytics-core": "^2.1.1", - "@sitecore-content-sdk/angular": "~0.1.0", + "@sitecore-content-sdk/angular": "~0.2.0", "@sitecore-content-sdk/cli": "^2.2.0", "@sitecore-content-sdk/events": "^2.1.1", - "@sitecore-content-sdk/nextjs": "^2.2.1", + "@sitecore-content-sdk/nextjs": "^2.3.0", "@sitecore-content-sdk/personalize": "^2.1.0", "@stylistic/eslint-plugin": "^5.2.2", "@types/chai": "^5.2.2", diff --git a/packages/nextjs/CHANGELOG.md b/packages/nextjs/CHANGELOG.md index 44a7ae430f..54dbb939bf 100644 --- a/packages/nextjs/CHANGELOG.md +++ b/packages/nextjs/CHANGELOG.md @@ -1,5 +1,37 @@ # @sitecore-content-sdk/nextjs +## 2.3.0 + +### Minor Changes + +- minor `@sitecore-content-sdk/react` dependency update: + + - Add locale and facet support to search package and React hooks + + - `SearchParameters` now accepts an optional `locale` field for multi-locale index configurations + - `SearchParameters` now accepts an optional `facet` field (`FacetRequest`) to request facet counts and filter by facet values + - `SearchResponse` now includes an optional `facets` field (`FacetResult[]`) with facet data when requested + - Six new public types exported from `@sitecore-content-sdk/search`: `FacetRequest`, `FacetField`, `FacetFilter`, `FacetFilterOperator`, `FacetValue`, `FacetResult` + - `useSearch` and `useInfiniteSearch` hooks in `@sitecore-content-sdk/react` updated to support the new `locale` and `facet` options and expose `facets` in the returned state ([ce89722](https://github.com/sitecore/content-sdk/commit/ce897227369d7cdccf3cbb79b621c67585f7aff6)) + +- minor `@sitecore-content-sdk/search` dependency update: + + - Add locale and facet support to search package and React hooks + + - `SearchParameters` now accepts an optional `locale` field for multi-locale index configurations + - `SearchParameters` now accepts an optional `facet` field (`FacetRequest`) to request facet counts and filter by facet values + - `SearchResponse` now includes an optional `facets` field (`FacetResult[]`) with facet data when requested + - Six new public types exported from `@sitecore-content-sdk/search`: `FacetRequest`, `FacetField`, `FacetFilter`, `FacetFilterOperator`, `FacetValue`, `FacetResult` + - `useSearch` and `useInfiniteSearch` hooks in `@sitecore-content-sdk/react` updated to support the new `locale` and `facet` options and expose `facets` in the returned state ([ce89722](https://github.com/sitecore/content-sdk/commit/ce897227369d7cdccf3cbb79b621c67585f7aff6)) + +### Patch Changes + +- [SXA Redirects] Refactor redirects logic to be reusable across frameworks ([6f8e423](https://github.com/sitecore/content-sdk/commit/6f8e423028bdf8a74a2fc4b8cb084961d755b73f)) +- Add `redirects.localeInPath` so App Router redirect locale handling works when LocaleProxy is removed (`x-sc-locale` is optional). `true`/`false` control path prefixes; default `null` keeps the `x-sc-locale` header fallback (non-breaking). App Router templates set `true`. ([e2bac91](https://github.com/sitecore/content-sdk/commit/e2bac910e40a6a22e8fa9fcb73f79f143a5fcf46)) +- [SXA Redirects] Ensure locales are compared case-insensitively ([6f8e423](https://github.com/sitecore/content-sdk/commit/6f8e423028bdf8a74a2fc4b8cb084961d755b73f)) +- [App router] Locale always attached on redirect when `isLanguagePreserved` is true, request URL does not have locale prefix and redirect does not change locale ([6563736](https://github.com/sitecore/content-sdk/commit/6563736fb3fdcd5885f88fcfe20c15d0800efbd7)) +- Redirect Proxy not matching encoded URLs with unicode characters in Redirect Map ([6563736](https://github.com/sitecore/content-sdk/commit/6563736fb3fdcd5885f88fcfe20c15d0800efbd7)) + ## 2.2.1 ### Patch Changes diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index ac2c8b3670..2286c0e5f1 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -1,6 +1,6 @@ { "name": "@sitecore-content-sdk/nextjs", - "version": "2.2.1", + "version": "2.3.0", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "sideEffects": false, @@ -90,10 +90,10 @@ }, "dependencies": { "@babel/parser": "^7.27.2", - "@sitecore-content-sdk/content": "^2.2.1", + "@sitecore-content-sdk/content": "^2.2.2", "@sitecore-content-sdk/core": "^2.1.2", "@sitecore-content-sdk/events": "^2.1.1", - "@sitecore-content-sdk/react": "^2.2.1", + "@sitecore-content-sdk/react": "^2.3.0", "recast": "^0.23.11", "regex-parser": "^2.3.1" }, diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 0b6f7d6206..5c638fe1bf 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,27 @@ # @sitecore-content-sdk/react +## 2.3.0 + +### Minor Changes + +- Add locale and facet support to search package and React hooks ([ce89722](https://github.com/sitecore/content-sdk/commit/ce897227369d7cdccf3cbb79b621c67585f7aff6)) + + - `SearchParameters` now accepts an optional `locale` field for multi-locale index configurations + - `SearchParameters` now accepts an optional `facet` field (`FacetRequest`) to request facet counts and filter by facet values + - `SearchResponse` now includes an optional `facets` field (`FacetResult[]`) with facet data when requested + - Six new public types exported from `@sitecore-content-sdk/search`: `FacetRequest`, `FacetField`, `FacetFilter`, `FacetFilterOperator`, `FacetValue`, `FacetResult` + - `useSearch` and `useInfiniteSearch` hooks in `@sitecore-content-sdk/react` updated to support the new `locale` and `facet` options and expose `facets` in the returned state + +- minor `@sitecore-content-sdk/search` dependency update: + + - Add locale and facet support to search package and React hooks + + - `SearchParameters` now accepts an optional `locale` field for multi-locale index configurations + - `SearchParameters` now accepts an optional `facet` field (`FacetRequest`) to request facet counts and filter by facet values + - `SearchResponse` now includes an optional `facets` field (`FacetResult[]`) with facet data when requested + - Six new public types exported from `@sitecore-content-sdk/search`: `FacetRequest`, `FacetField`, `FacetFilter`, `FacetFilterOperator`, `FacetValue`, `FacetResult` + - `useSearch` and `useInfiniteSearch` hooks in `@sitecore-content-sdk/react` updated to support the new `locale` and `facet` options and expose `facets` in the returned state ([ce89722](https://github.com/sitecore/content-sdk/commit/ce897227369d7cdccf3cbb79b621c67585f7aff6)) + ## 2.2.1 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index 7cfb36832a..5fb06b1555 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@sitecore-content-sdk/react", - "version": "2.2.1", + "version": "2.3.0", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "sideEffects": false, @@ -78,9 +78,9 @@ "react-dom": "^19.2.1" }, "dependencies": { - "@sitecore-content-sdk/content": "^2.2.1", + "@sitecore-content-sdk/content": "^2.2.2", "@sitecore-content-sdk/core": "^2.1.2", - "@sitecore-content-sdk/search": "^0.3.0", + "@sitecore-content-sdk/search": "^0.4.0", "fast-deep-equal": "^3.1.3" }, "description": "", diff --git a/packages/search/CHANGELOG.md b/packages/search/CHANGELOG.md new file mode 100644 index 0000000000..81f9fe8cf4 --- /dev/null +++ b/packages/search/CHANGELOG.md @@ -0,0 +1,13 @@ +# @sitecore-content-sdk/search + +## 0.4.0 + +### Minor Changes + +- Add locale and facet support to search package and React hooks ([ce89722](https://github.com/sitecore/content-sdk/commit/ce897227369d7cdccf3cbb79b621c67585f7aff6)) + + - `SearchParameters` now accepts an optional `locale` field for multi-locale index configurations + - `SearchParameters` now accepts an optional `facet` field (`FacetRequest`) to request facet counts and filter by facet values + - `SearchResponse` now includes an optional `facets` field (`FacetResult[]`) with facet data when requested + - Six new public types exported from `@sitecore-content-sdk/search`: `FacetRequest`, `FacetField`, `FacetFilter`, `FacetFilterOperator`, `FacetValue`, `FacetResult` + - `useSearch` and `useInfiniteSearch` hooks in `@sitecore-content-sdk/react` updated to support the new `locale` and `facet` options and expose `facets` in the returned state diff --git a/packages/search/package.json b/packages/search/package.json index ab0c2b61a4..7a201f967b 100644 --- a/packages/search/package.json +++ b/packages/search/package.json @@ -1,67 +1,67 @@ -{ - "name": "@sitecore-content-sdk/search", - "version": "0.3.0", - "main": "dist/cjs/index.js", - "module": "dist/esm/index.js", - "sideEffects": false, - "publishConfig": { - "access": "public", - "registry": "https://registry.npmjs.org/" - }, - "scripts": { - "build": "npm run clean && tsc -p tsconfig.json && tsc -p tsconfig-esm.json", - "clean": "del-cli dist types", - "lint": "eslint \"./src/**/*.ts\"", - "test": "mocha \"./src/**/*.test.ts\"", - "prepublishOnly": "npm run build", - "coverage": "nyc npm test", - "generate-docs": "npx typedoc --plugin typedoc-plugin-markdown --outputFileStrategy Members --parametersFormat table --readme none --out ../../ref-docs/search --entryPoints src/index.ts --githubPages false", - "api-extractor": "npm run build && api-extractor run --local --verbose", - "api-extractor:verify": "api-extractor run" - }, - "engines": { - "node": ">=24" - }, - "author": { - "name": "Sitecore Corporation", - "url": "https://doc.sitecore.com/xmc/en/developers/content-sdk/index.html" - }, - "repository": { - "type": "git", - "url": "https://github.com/Sitecore/content-sdk" - }, - "license": "Apache-2.0", - "homepage": "https://doc.sitecore.com/xmc/en/developers/content-sdk/index.html", - "bugs": { - "url": "https://github.com/sitecore/content-sdk/issues" - }, - "dependencies": { - "@sitecore-content-sdk/analytics-core": "^2.1.0", - "@sitecore-content-sdk/core": "^2.1.0" - }, - "devDependencies": { - "@types/chai": "^5.2.3", - "@types/mocha": "^10.0.10", - "@types/proxyquire": "^1.3.31", - "chai": "^6.2.1", - "del-cli": "^7.0.0", - "eslint": "^9.39.1", - "eslint-plugin-import": "^2.32.0", - "eslint-plugin-jsdoc": "^61.4.1", - "eslint-plugin-prettier": "^5.5.4", - "mocha": "^11.7.5", - "nock": "^14.0.10", - "nyc": "^17.1.0", - "proxyquire": "^2.1.3", - "tsx": "^4.20.6", - "typescript": "~5.8.3" - }, - "description": "", - "types": "types/index.d.ts", - "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b", - "files": [ - "dist", - "types", - "/*.d.ts" - ] -} +{ + "name": "@sitecore-content-sdk/search", + "version": "0.4.0", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.js", + "sideEffects": false, + "publishConfig": { + "access": "public", + "registry": "https://registry.npmjs.org/" + }, + "scripts": { + "build": "npm run clean && tsc -p tsconfig.json && tsc -p tsconfig-esm.json", + "clean": "del-cli dist types", + "lint": "eslint \"./src/**/*.ts\"", + "test": "mocha \"./src/**/*.test.ts\"", + "prepublishOnly": "npm run build", + "coverage": "nyc npm test", + "generate-docs": "npx typedoc --plugin typedoc-plugin-markdown --outputFileStrategy Members --parametersFormat table --readme none --out ../../ref-docs/search --entryPoints src/index.ts --githubPages false", + "api-extractor": "npm run build && api-extractor run --local --verbose", + "api-extractor:verify": "api-extractor run" + }, + "engines": { + "node": ">=24" + }, + "author": { + "name": "Sitecore Corporation", + "url": "https://doc.sitecore.com/xmc/en/developers/content-sdk/index.html" + }, + "repository": { + "type": "git", + "url": "https://github.com/Sitecore/content-sdk" + }, + "license": "Apache-2.0", + "homepage": "https://doc.sitecore.com/xmc/en/developers/content-sdk/index.html", + "bugs": { + "url": "https://github.com/sitecore/content-sdk/issues" + }, + "dependencies": { + "@sitecore-content-sdk/analytics-core": "^2.1.0", + "@sitecore-content-sdk/core": "^2.1.0" + }, + "devDependencies": { + "@types/chai": "^5.2.3", + "@types/mocha": "^10.0.10", + "@types/proxyquire": "^1.3.31", + "chai": "^6.2.1", + "del-cli": "^7.0.0", + "eslint": "^9.39.1", + "eslint-plugin-import": "^2.32.0", + "eslint-plugin-jsdoc": "^61.4.1", + "eslint-plugin-prettier": "^5.5.4", + "mocha": "^11.7.5", + "nock": "^14.0.10", + "nyc": "^17.1.0", + "proxyquire": "^2.1.3", + "tsx": "^4.20.6", + "typescript": "~5.8.3" + }, + "description": "", + "types": "types/index.d.ts", + "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b", + "files": [ + "dist", + "types", + "/*.d.ts" + ] +} diff --git a/yarn.lock b/yarn.lock index c0c57f4e8e..6db1419c7c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5172,7 +5172,7 @@ __metadata: languageName: unknown linkType: soft -"@sitecore-content-sdk/angular@npm:~0.1.0, @sitecore-content-sdk/angular@workspace:packages/angular": +"@sitecore-content-sdk/angular@npm:~0.2.0, @sitecore-content-sdk/angular@workspace:packages/angular": version: 0.0.0-use.local resolution: "@sitecore-content-sdk/angular@workspace:packages/angular" dependencies: @@ -5189,7 +5189,7 @@ __metadata: "@eslint/js": "npm:^9.32.0" "@ngx-translate/core": "npm:^17.0.0" "@sitecore-content-sdk/analytics-core": "npm:^2.1.1" - "@sitecore-content-sdk/content": "npm:^2.2.1" + "@sitecore-content-sdk/content": "npm:^2.2.2" "@sitecore-content-sdk/core": "npm:^2.1.2" "@sitecore-content-sdk/events": "npm:^2.1.1" "@sitecore-content-sdk/personalize": "npm:^2.1.0" @@ -5270,7 +5270,7 @@ __metadata: languageName: unknown linkType: soft -"@sitecore-content-sdk/content@npm:^2.2.0, @sitecore-content-sdk/content@npm:^2.2.1, @sitecore-content-sdk/content@workspace:packages/content": +"@sitecore-content-sdk/content@npm:^2.2.0, @sitecore-content-sdk/content@npm:^2.2.2, @sitecore-content-sdk/content@workspace:packages/content": version: 0.0.0-use.local resolution: "@sitecore-content-sdk/content@workspace:packages/content" dependencies: @@ -5388,17 +5388,17 @@ __metadata: languageName: unknown linkType: soft -"@sitecore-content-sdk/nextjs@npm:^2.2.1, @sitecore-content-sdk/nextjs@workspace:packages/nextjs": +"@sitecore-content-sdk/nextjs@npm:^2.3.0, @sitecore-content-sdk/nextjs@workspace:packages/nextjs": version: 0.0.0-use.local resolution: "@sitecore-content-sdk/nextjs@workspace:packages/nextjs" dependencies: "@babel/parser": "npm:^7.27.2" "@sitecore-content-sdk/analytics-core": "npm:^2.1.1" - "@sitecore-content-sdk/content": "npm:^2.2.1" + "@sitecore-content-sdk/content": "npm:^2.2.2" "@sitecore-content-sdk/core": "npm:^2.1.2" "@sitecore-content-sdk/events": "npm:^2.1.1" "@sitecore-content-sdk/personalize": "npm:^2.1.0" - "@sitecore-content-sdk/react": "npm:^2.2.1" + "@sitecore-content-sdk/react": "npm:^2.3.0" "@stylistic/eslint-plugin": "npm:^5.2.2" "@testing-library/dom": "npm:^10.4.0" "@testing-library/react": "npm:^16.3.0" @@ -5483,14 +5483,14 @@ __metadata: languageName: unknown linkType: soft -"@sitecore-content-sdk/react@npm:^2.2.1, @sitecore-content-sdk/react@workspace:packages/react": +"@sitecore-content-sdk/react@npm:^2.3.0, @sitecore-content-sdk/react@workspace:packages/react": version: 0.0.0-use.local resolution: "@sitecore-content-sdk/react@workspace:packages/react" dependencies: "@sitecore-content-sdk/analytics-core": "npm:^2.1.1" - "@sitecore-content-sdk/content": "npm:^2.2.1" + "@sitecore-content-sdk/content": "npm:^2.2.2" "@sitecore-content-sdk/core": "npm:^2.1.2" - "@sitecore-content-sdk/search": "npm:^0.3.0" + "@sitecore-content-sdk/search": "npm:^0.4.0" "@sitecore-feaas/clientside": "npm:^0.6.0" "@stylistic/eslint-plugin": "npm:^5.2.2" "@testing-library/dom": "npm:^10.4.0" @@ -5537,7 +5537,7 @@ __metadata: languageName: unknown linkType: soft -"@sitecore-content-sdk/search@npm:^0.3.0, @sitecore-content-sdk/search@workspace:packages/search": +"@sitecore-content-sdk/search@npm:^0.4.0, @sitecore-content-sdk/search@workspace:packages/search": version: 0.0.0-use.local resolution: "@sitecore-content-sdk/search@workspace:packages/search" dependencies: @@ -8689,10 +8689,10 @@ __metadata: resolution: "create-content-sdk-app@workspace:packages/create-content-sdk-app" dependencies: "@sitecore-content-sdk/analytics-core": "npm:^2.1.1" - "@sitecore-content-sdk/angular": "npm:~0.1.0" + "@sitecore-content-sdk/angular": "npm:~0.2.0" "@sitecore-content-sdk/cli": "npm:^2.2.0" "@sitecore-content-sdk/events": "npm:^2.1.1" - "@sitecore-content-sdk/nextjs": "npm:^2.2.1" + "@sitecore-content-sdk/nextjs": "npm:^2.3.0" "@sitecore-content-sdk/personalize": "npm:^2.1.0" "@stylistic/eslint-plugin": "npm:^5.2.2" "@types/chai": "npm:^5.2.2"