Skip to content

Commit ded5d44

Browse files
authored
chore: release v4.4.0 (#2820)
* chore: release v4.4.0 * fix: changelog * fix(ci): Split dts building to own process for all packages * fix: remove unused import * fix: remove unused import * update yarn cache key * fix: better dependency management
1 parent a98294a commit ded5d44

File tree

24 files changed

+196
-154
lines changed

24 files changed

+196
-154
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
## [4.4.0](https://github.com/algolia/docsearch/compare/v4.3.2...v4.4.0) (2025-12-18)
2+
3+
4+
### Bug Fixes
5+
6+
* **button:** Fixes default button styling accessibility ([#2814](https://github.com/algolia/docsearch/pull/2814)) ([b0a28f5](https://github.com/algolia/docsearch/commit/b0a28f57f74a903aef4ad6620f0d34eb5be9e7a4)), closes [#2804](https://github.com/algolia/docsearch/issues/2804)
7+
* **modal:** Fixes modal opening on every keypress ([#2813](https://github.com/algolia/docsearch/pull/2813)) ([373d139](https://github.com/algolia/docsearch/commit/373d1394e1e789f451a55a6377798705351856ca)), closes [#2809](https://github.com/algolia/docsearch/issues/2809)
8+
* **modal:** dropdown menu styles ([#2801](https://github.com/algolia/docsearch/pull/2801)) ([5ef01ec](https://github.com/algolia/docsearch/commit/5ef01ecd4dbda1bfb89e03ddbad4be6e30dba89a))
9+
10+
11+
### Features
12+
13+
* **sidepanel:** Introduce Ask AI Sidepanel ([#2816](https://github.com/algolia/docsearch/issues/2816)) ([171c504](https://github.com/algolia/docsearch/commit/171c504f11d63e9a3a3abfc69b779594ef2c0b67))
14+
* **askai:** add thread depth limit logic ([#2812](https://github.com/algolia/docsearch/pull/2812)) ([fd0de3d](https://github.com/algolia/docsearch/commit/fd0de3d16f8c434b7f75793fae69fe8e2c2d159d))
15+
* **askai:** Handle errors better for Ask AI ([#2803](https://github.com/algolia/docsearch/pull/2803)) ([d531137](https://github.com/algolia/docsearch/commit/d531137f14accb82732804452bf324093a827cea))
16+
* **modal:** Native RTL support ([#2802](https://github.com/algolia/docsearch/pull/2802)) ([9ed6c5a](https://github.com/algolia/docsearch/commit/9ed6c5a9bad1bcbaf46f551506dccdd9342c03c8)), closes [#1512](https://github.com/algolia/docsearch/issues/1512)
17+
* **docs:** Add utm_ params to apply links ([#2817](https://github.com/algolia/docsearch/pull/2817)) ([8a9c451](https://github.com/algolia/docsearch/commit/8a9c4519eb04254d64fad8432c4fc395cf848cc1))
18+
19+
20+
121
## [4.3.2](https://github.com/algolia/docsearch/compare/v4.3.1...v4.3.2) (2025-11-10)
222

323

examples/demo-js/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@docsearch/js-example",
33
"description": "DocSearch v4 Vanilla JavaScript example",
4-
"version": "4.3.2",
4+
"version": "4.4.0",
55
"private": true,
66
"license": "MIT",
77
"scripts": {
@@ -10,9 +10,9 @@
1010
"preview": "vite preview"
1111
},
1212
"dependencies": {
13-
"@docsearch/css": "4.3.2",
14-
"@docsearch/js": "4.3.2",
15-
"@docsearch/sidepanel-js": "4.3.2"
13+
"@docsearch/css": "4.4.0",
14+
"@docsearch/js": "4.4.0",
15+
"@docsearch/sidepanel-js": "4.4.0"
1616
},
1717
"devDependencies": {
1818
"vite": "^6.0.7"

examples/demo-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@docsearch/react-example",
33
"description": "DocSearch v4 React example",
4-
"version": "4.3.2",
4+
"version": "4.4.0",
55
"private": true,
66
"license": "MIT",
77
"type": "module",

lerna.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"packages/*",
44
"examples/*"
55
],
6-
"version": "4.3.2",
6+
"version": "4.4.0",
77
"npmClient": "yarn"
8-
}
8+
}

packages/docsearch-core/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@docsearch/core",
33
"description": "Core package logic for DocSearch",
4-
"version": "4.3.1",
4+
"version": "4.4.0",
55
"license": "MIT",
66
"homepage": "https://docsearch.algolia.com",
77
"repository": {
@@ -38,7 +38,9 @@
3838
"build:clean": "rm -rf ./dist",
3939
"build:clean-types": "rm -rf ./dist/esm/types",
4040
"build:types": "tsc -p ./tsconfig.declaration.json --outDir ./dist/esm/types",
41-
"build": "yarn build:clean && yarn build:types && rollup --config --bundleConfigAsCjs && yarn build:clean-types",
41+
"build:source": "rollup --config --bundleConfigAsCjs",
42+
"build:dts": "rollup --config rollup.dts.config.js --bundleConfigAsCjs",
43+
"build": "yarn build:clean && yarn build:types && yarn build:source && yarn build:dts && yarn build:clean-types",
4244
"on:change": "yarn build",
4345
"watch": "nodemon --watch src --ext ts,tsx,js,jsx,json --ignore dist/ --ignore node_modules/ --verbose --delay 250ms --exec \"yarn on:change\""
4446
},

packages/docsearch-core/rollup.config.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// eslint-disable-next-line import/no-extraneous-dependencies
22
import commonjs from '@rollup/plugin-commonjs';
33
import replace from '@rollup/plugin-replace';
4-
import { dts } from 'rollup-plugin-dts';
54

65
import { plugins } from '../../rollup.base.config';
76
import { getBundleBanner } from '../../scripts/getBundleBanner';
@@ -59,24 +58,4 @@ export default [
5958
output: sourceOutput('useKeyboardShortcuts.js'),
6059
plugins: sourcePlugins,
6160
},
62-
{
63-
input: 'dist/esm/types/index.d.ts',
64-
output: [{ file: 'dist/esm/index.d.ts', format: 'es' }],
65-
plugins: [dts()],
66-
},
67-
{
68-
input: 'dist/esm/types/useTheme.d.ts',
69-
output: [{ file: 'dist/esm/useTheme.d.ts', format: 'es' }],
70-
plugins: [dts()],
71-
},
72-
{
73-
input: 'dist/esm/types/useDocSearchKeyboardEvents.d.ts',
74-
output: [{ file: 'dist/esm/useDocSearchKeyboardEvents.d.ts', format: 'es' }],
75-
plugins: [dts()],
76-
},
77-
{
78-
input: 'dist/esm/types/useKeyboardShortcuts.d.ts',
79-
output: [{ file: 'dist/esm/useKeyboardShortcuts.d.ts', format: 'es' }],
80-
plugins: [dts()],
81-
},
8261
];
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { dts } from 'rollup-plugin-dts';
2+
3+
export default [
4+
{
5+
input: 'dist/esm/types/index.d.ts',
6+
output: [{ file: 'dist/esm/index.d.ts', format: 'es' }],
7+
plugins: [dts()],
8+
},
9+
{
10+
input: 'dist/esm/types/useTheme.d.ts',
11+
output: [{ file: 'dist/esm/useTheme.d.ts', format: 'es' }],
12+
plugins: [dts()],
13+
},
14+
{
15+
input: 'dist/esm/types/useDocSearchKeyboardEvents.d.ts',
16+
output: [{ file: 'dist/esm/useDocSearchKeyboardEvents.d.ts', format: 'es' }],
17+
plugins: [dts()],
18+
},
19+
{
20+
input: 'dist/esm/types/useKeyboardShortcuts.d.ts',
21+
output: [{ file: 'dist/esm/useKeyboardShortcuts.d.ts', format: 'es' }],
22+
plugins: [dts()],
23+
},
24+
];

packages/docsearch-css/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@docsearch/css",
33
"description": "Styles for DocSearch.",
4-
"version": "4.3.2",
4+
"version": "4.4.0",
55
"license": "MIT",
66
"homepage": "https://docsearch.algolia.com",
77
"repository": {

packages/docsearch-js/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@docsearch/js",
33
"description": "JavaScript package for DocSearch, the best search experience for docs.",
4-
"version": "4.3.2",
4+
"version": "4.4.0",
55
"license": "MIT",
66
"homepage": "https://docsearch.algolia.com",
77
"repository": {
@@ -28,15 +28,17 @@
2828
"build:clean": "rm -rf ./dist",
2929
"build:types": "tsc -p ./tsconfig.declaration.json --outDir ./dist/esm/types",
3030
"build:clean-types": "rm -rf ./dist/esm/types",
31-
"build": "yarn build:clean && yarn build:types && rollup --config --bundleConfigAsCjs && yarn build:clean-types",
31+
"build:source": "rollup --config --bundleConfigAsCjs",
32+
"build:dts": "rollup --config rollup.dts.config.js --bundleConfigAsCjs",
33+
"build": "yarn build:clean && yarn build:types && yarn build:source && yarn build:dts && yarn build:clean-types",
3234
"on:change": "yarn build",
3335
"watch": "nodemon --watch src --exec \"yarn on:change\" --ignore dist/ --ext ts,tsx"
3436
},
3537
"dependencies": {
38+
"@docsearch/react": "4.4.0",
3639
"htm": "3.1.1"
3740
},
3841
"devDependencies": {
39-
"@docsearch/react": "4.3.2",
4042
"@rollup/plugin-replace": "6.0.2",
4143
"nodemon": "^3.1.9",
4244
"preact": "^10.0.0",

packages/docsearch-js/rollup.config.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
// rollup.config.js
22
import replace from '@rollup/plugin-replace';
3-
import { dts } from 'rollup-plugin-dts';
43

54
import { plugins } from '../../rollup.base.config.js';
65
import { getBundleBanner } from '../../scripts/getBundleBanner.js';
76

87
import pkg from './package.json' with { type: 'json' };
98

10-
const externalsForTypes = [
11-
/^preact(\/|$)/,
12-
/^preact\/jsx-runtime$/,
13-
/^react(\/|$)/,
14-
/^react-dom(\/|$)/,
15-
/^@types\/react(\/|$)/,
16-
/^@ai-sdk\/react(\/|$)/,
17-
];
18-
199
export default [
2010
// ESM JS
2111
{
@@ -57,16 +47,4 @@ export default [
5747
}),
5848
],
5949
},
60-
61-
// Types bundle
62-
{
63-
input: 'dist/esm/types/index.d.ts',
64-
output: [{ file: 'dist/esm/index.d.ts', format: 'es' }],
65-
external: (id) => externalsForTypes.some((rx) => rx.test(id)),
66-
plugins: [
67-
dts({
68-
respectExternal: true,
69-
}),
70-
],
71-
},
7250
];

0 commit comments

Comments
 (0)