From b6cd5b384f0a85e5a5195c9481eb26db1ff709bd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 20 Apr 2026 05:06:28 +0000 Subject: [PATCH 1/2] Version Packages --- .changeset/crisp-wasps-flow.md | 37 ---------------------- packages/autocomplete-client/CHANGELOG.md | 38 +++++++++++++++++++++++ packages/autocomplete-client/package.json | 2 +- packages/instant-meilisearch/CHANGELOG.md | 33 ++++++++++++++++++++ packages/instant-meilisearch/package.json | 2 +- 5 files changed, 73 insertions(+), 39 deletions(-) delete mode 100644 .changeset/crisp-wasps-flow.md diff --git a/.changeset/crisp-wasps-flow.md b/.changeset/crisp-wasps-flow.md deleted file mode 100644 index 92deb899..00000000 --- a/.changeset/crisp-wasps-flow.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -'@meilisearch/autocomplete-client': minor -'@meilisearch/instant-meilisearch': minor ---- - -# Rework exports and bundling - -- Update usage of `MeiliSearch` to lower case `Meilisearch` to eliminate some possible issues arising from JSPM and maybe other CDNs/package resolvers (#1472, #1468) -- From now on [`meilisearch`](https://github.com/meilisearch/meilisearch-js/) is marked as a peer dependency -- Update README.md to show the HTML example with [`importmap`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap) -- Changed TypeScript settings, and adapted some files to it, so we can let in the future Node.js execute `*.ts` files directly; for now executing them with [`tsx`](https://github.com/privatenumber/tsx) -- There is no need anymore for separate version file within source files, as they import the package JSON file to get the version -- Node.js ^20 can now `require(esm)`, so there's no point in bundling to commonjs anymore - - https://vite.dev/blog/announcing-vite8#node-js-support - - https://github.com/vitejs/vite/blob/main/packages/vite/package.json -- Remove UMD bundle, modern browsers support importing ESM from URLs and `type="module"` scripts for almost a decade now, even Node.js supports requiring ESM as stated above -- Remove any fields regarding exports outside of `"exports"` field, all supported Node.js versions support "exports" field, as do all modern bundlers and CDNs -- Make use of [`publishConfig`](https://pnpm.io/package_json#publishconfig), so we can export to other workspace packages the TypeScript source files - - Thanks to this change, running build script is only required for publishing, and not for developing -- Put `package.json` into exports, mainly so bundlers can read it via directly importing it, and it seems to be the industry norm - -## Migration - -1. - - CommonJS and UMD bundles aren't available anymore - - `package.json` `"main"` and `"types"` fields aren't available anymore - -If you relied on any of these outdated features, you will have to bundle for any target environment that requires them, or update the environment if that's possible. - -2. From now on [`meilisearch`](https://github.com/meilisearch/meilisearch-js/) is a peer dependency (if the package manager used doesn't automatically install it, add it to the list of dependencies manually): - -```diff -- import { meilisearch } from '@meilisearch/instant-meilisearch' -- import { meilisearch } from '@meilisearch/autocomplete-client' -+ import * as meilisearch from 'meilisearch' -+ import { Meilisearch } from 'meilisearch' -``` diff --git a/packages/autocomplete-client/CHANGELOG.md b/packages/autocomplete-client/CHANGELOG.md index a8afa66a..e915a9db 100644 --- a/packages/autocomplete-client/CHANGELOG.md +++ b/packages/autocomplete-client/CHANGELOG.md @@ -1,5 +1,43 @@ # @meilisearch/autocomplete-client +## 0.8.0 + +### Minor Changes + +- 9642256: # Rework exports and bundling + - Update usage of `MeiliSearch` to lower case `Meilisearch` to eliminate some possible issues arising from JSPM and maybe other CDNs/package resolvers (#1472, #1468) + - From now on [`meilisearch`](https://github.com/meilisearch/meilisearch-js/) is marked as a peer dependency + - Update README.md to show the HTML example with [`importmap`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap) + - Changed TypeScript settings, and adapted some files to it, so we can let in the future Node.js execute `*.ts` files directly; for now executing them with [`tsx`](https://github.com/privatenumber/tsx) + - There is no need anymore for separate version file within source files, as they import the package JSON file to get the version + - Node.js ^20 can now `require(esm)`, so there's no point in bundling to commonjs anymore + - https://vite.dev/blog/announcing-vite8#node-js-support + - https://github.com/vitejs/vite/blob/main/packages/vite/package.json + - Remove UMD bundle, modern browsers support importing ESM from URLs and `type="module"` scripts for almost a decade now, even Node.js supports requiring ESM as stated above + - Remove any fields regarding exports outside of `"exports"` field, all supported Node.js versions support "exports" field, as do all modern bundlers and CDNs + - Make use of [`publishConfig`](https://pnpm.io/package_json#publishconfig), so we can export to other workspace packages the TypeScript source files + - Thanks to this change, running build script is only required for publishing, and not for developing + - Put `package.json` into exports, mainly so bundlers can read it via directly importing it, and it seems to be the industry norm + + ## Migration + 1. - CommonJS and UMD bundles aren't available anymore + - `package.json` `"main"` and `"types"` fields aren't available anymore + + If you relied on any of these outdated features, you will have to bundle for any target environment that requires them, or update the environment if that's possible. + 2. From now on [`meilisearch`](https://github.com/meilisearch/meilisearch-js/) is a peer dependency (if the package manager used doesn't automatically install it, add it to the list of dependencies manually): + + ```diff + - import { meilisearch } from '@meilisearch/instant-meilisearch' + - import { meilisearch } from '@meilisearch/autocomplete-client' + + import * as meilisearch from 'meilisearch' + + import { Meilisearch } from 'meilisearch' + ``` + +### Patch Changes + +- Updated dependencies [9642256] + - @meilisearch/instant-meilisearch@0.31.0 + ## 0.7.0 ### Minor Changes diff --git a/packages/autocomplete-client/package.json b/packages/autocomplete-client/package.json index 20f55bfc..88e8e99c 100644 --- a/packages/autocomplete-client/package.json +++ b/packages/autocomplete-client/package.json @@ -1,6 +1,6 @@ { "name": "@meilisearch/autocomplete-client", - "version": "0.7.0", + "version": "0.8.0", "description": "The search client to use Meilisearch with autocomplete.js.", "homepage": "https://github.com/meilisearch/meilisearch-js-plugins/tree/main/packages/autocomplete-client", "scripts": { diff --git a/packages/instant-meilisearch/CHANGELOG.md b/packages/instant-meilisearch/CHANGELOG.md index 4a328e86..2c7c5dd4 100644 --- a/packages/instant-meilisearch/CHANGELOG.md +++ b/packages/instant-meilisearch/CHANGELOG.md @@ -1,5 +1,38 @@ # @meilisearch/instant-meilisearch +## 0.31.0 + +### Minor Changes + +- 9642256: # Rework exports and bundling + - Update usage of `MeiliSearch` to lower case `Meilisearch` to eliminate some possible issues arising from JSPM and maybe other CDNs/package resolvers (#1472, #1468) + - From now on [`meilisearch`](https://github.com/meilisearch/meilisearch-js/) is marked as a peer dependency + - Update README.md to show the HTML example with [`importmap`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap) + - Changed TypeScript settings, and adapted some files to it, so we can let in the future Node.js execute `*.ts` files directly; for now executing them with [`tsx`](https://github.com/privatenumber/tsx) + - There is no need anymore for separate version file within source files, as they import the package JSON file to get the version + - Node.js ^20 can now `require(esm)`, so there's no point in bundling to commonjs anymore + - https://vite.dev/blog/announcing-vite8#node-js-support + - https://github.com/vitejs/vite/blob/main/packages/vite/package.json + - Remove UMD bundle, modern browsers support importing ESM from URLs and `type="module"` scripts for almost a decade now, even Node.js supports requiring ESM as stated above + - Remove any fields regarding exports outside of `"exports"` field, all supported Node.js versions support "exports" field, as do all modern bundlers and CDNs + - Make use of [`publishConfig`](https://pnpm.io/package_json#publishconfig), so we can export to other workspace packages the TypeScript source files + - Thanks to this change, running build script is only required for publishing, and not for developing + - Put `package.json` into exports, mainly so bundlers can read it via directly importing it, and it seems to be the industry norm + + ## Migration + 1. - CommonJS and UMD bundles aren't available anymore + - `package.json` `"main"` and `"types"` fields aren't available anymore + + If you relied on any of these outdated features, you will have to bundle for any target environment that requires them, or update the environment if that's possible. + 2. From now on [`meilisearch`](https://github.com/meilisearch/meilisearch-js/) is a peer dependency (if the package manager used doesn't automatically install it, add it to the list of dependencies manually): + + ```diff + - import { meilisearch } from '@meilisearch/instant-meilisearch' + - import { meilisearch } from '@meilisearch/autocomplete-client' + + import * as meilisearch from 'meilisearch' + + import { Meilisearch } from 'meilisearch' + ``` + ## 0.30.0 ### Minor Changes diff --git a/packages/instant-meilisearch/package.json b/packages/instant-meilisearch/package.json index f3bbc071..a4c92db4 100644 --- a/packages/instant-meilisearch/package.json +++ b/packages/instant-meilisearch/package.json @@ -1,6 +1,6 @@ { "name": "@meilisearch/instant-meilisearch", - "version": "0.30.0", + "version": "0.31.0", "description": "The search client to use Meilisearch with InstantSearch.", "homepage": "https://github.com/meilisearch/meilisearch-js-plugins/tree/main/packages/instant-meilisearch", "license": "MIT", From b3ffbd3f51125aeb54226aa48da8c11b7b74b98b Mon Sep 17 00:00:00 2001 From: Strift Date: Mon, 20 Apr 2026 13:19:23 +0800 Subject: [PATCH 2/2] Rewrite changelog --- packages/autocomplete-client/CHANGELOG.md | 45 +++++++++-------------- packages/instant-meilisearch/CHANGELOG.md | 45 +++++++++-------------- 2 files changed, 36 insertions(+), 54 deletions(-) diff --git a/packages/autocomplete-client/CHANGELOG.md b/packages/autocomplete-client/CHANGELOG.md index e915a9db..f633ed47 100644 --- a/packages/autocomplete-client/CHANGELOG.md +++ b/packages/autocomplete-client/CHANGELOG.md @@ -2,36 +2,27 @@ ## 0.8.0 +### Migration + +**Meilisearch peer dependency** + +From now on [`meilisearch`](https://github.com/meilisearch/meilisearch-js/) is a peer dependency (if the package manager used doesn't automatically install it, add it to the list of dependencies manually): + +```diff +- import { meilisearch } from '@meilisearch/instant-meilisearch' +- import { meilisearch } from '@meilisearch/autocomplete-client' ++ import * as meilisearch from 'meilisearch' ++ import { Meilisearch } from 'meilisearch' +``` + +Please note that **UMD and CJS bundles are no longer exported**. If you used them, you will have to bundle for any target environment that requires them. We recommend migrating to an ESM-compatible environment if possible. + ### Minor Changes - 9642256: # Rework exports and bundling - - Update usage of `MeiliSearch` to lower case `Meilisearch` to eliminate some possible issues arising from JSPM and maybe other CDNs/package resolvers (#1472, #1468) - - From now on [`meilisearch`](https://github.com/meilisearch/meilisearch-js/) is marked as a peer dependency - - Update README.md to show the HTML example with [`importmap`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap) - - Changed TypeScript settings, and adapted some files to it, so we can let in the future Node.js execute `*.ts` files directly; for now executing them with [`tsx`](https://github.com/privatenumber/tsx) - - There is no need anymore for separate version file within source files, as they import the package JSON file to get the version - - Node.js ^20 can now `require(esm)`, so there's no point in bundling to commonjs anymore - - https://vite.dev/blog/announcing-vite8#node-js-support - - https://github.com/vitejs/vite/blob/main/packages/vite/package.json - - Remove UMD bundle, modern browsers support importing ESM from URLs and `type="module"` scripts for almost a decade now, even Node.js supports requiring ESM as stated above - - Remove any fields regarding exports outside of `"exports"` field, all supported Node.js versions support "exports" field, as do all modern bundlers and CDNs - - Make use of [`publishConfig`](https://pnpm.io/package_json#publishconfig), so we can export to other workspace packages the TypeScript source files - - Thanks to this change, running build script is only required for publishing, and not for developing - - Put `package.json` into exports, mainly so bundlers can read it via directly importing it, and it seems to be the industry norm - - ## Migration - 1. - CommonJS and UMD bundles aren't available anymore - - `package.json` `"main"` and `"types"` fields aren't available anymore - - If you relied on any of these outdated features, you will have to bundle for any target environment that requires them, or update the environment if that's possible. - 2. From now on [`meilisearch`](https://github.com/meilisearch/meilisearch-js/) is a peer dependency (if the package manager used doesn't automatically install it, add it to the list of dependencies manually): - - ```diff - - import { meilisearch } from '@meilisearch/instant-meilisearch' - - import { meilisearch } from '@meilisearch/autocomplete-client' - + import * as meilisearch from 'meilisearch' - + import { Meilisearch } from 'meilisearch' - ``` + - Update imports of `MeiliSearch` to lower case `Meilisearch` to eliminate some possible issues arising from JSPM and maybe other CDNs/package resolvers (#1472, #1468) + - Mark [`meilisearch`](https://github.com/meilisearch/meilisearch-js/) as a peer dependency + - Removed CJS and UMD bundle, as modern browsers support importing ESM from URLs and `type="module"` ### Patch Changes diff --git a/packages/instant-meilisearch/CHANGELOG.md b/packages/instant-meilisearch/CHANGELOG.md index 2c7c5dd4..837ea8dd 100644 --- a/packages/instant-meilisearch/CHANGELOG.md +++ b/packages/instant-meilisearch/CHANGELOG.md @@ -2,36 +2,27 @@ ## 0.31.0 +### Migration + +**Meilisearch peer dependency** + +From now on [`meilisearch`](https://github.com/meilisearch/meilisearch-js/) is a peer dependency (if the package manager used doesn't automatically install it, add it to the list of dependencies manually): + +```diff +- import { meilisearch } from '@meilisearch/instant-meilisearch' +- import { meilisearch } from '@meilisearch/autocomplete-client' ++ import * as meilisearch from 'meilisearch' ++ import { Meilisearch } from 'meilisearch' +``` + +Please note that **UMD and CJS bundles are no longer exported**. If you used them, you will have to bundle for any target environment that requires them. We recommend migrating to an ESM-compatible environment if possible. + ### Minor Changes - 9642256: # Rework exports and bundling - - Update usage of `MeiliSearch` to lower case `Meilisearch` to eliminate some possible issues arising from JSPM and maybe other CDNs/package resolvers (#1472, #1468) - - From now on [`meilisearch`](https://github.com/meilisearch/meilisearch-js/) is marked as a peer dependency - - Update README.md to show the HTML example with [`importmap`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap) - - Changed TypeScript settings, and adapted some files to it, so we can let in the future Node.js execute `*.ts` files directly; for now executing them with [`tsx`](https://github.com/privatenumber/tsx) - - There is no need anymore for separate version file within source files, as they import the package JSON file to get the version - - Node.js ^20 can now `require(esm)`, so there's no point in bundling to commonjs anymore - - https://vite.dev/blog/announcing-vite8#node-js-support - - https://github.com/vitejs/vite/blob/main/packages/vite/package.json - - Remove UMD bundle, modern browsers support importing ESM from URLs and `type="module"` scripts for almost a decade now, even Node.js supports requiring ESM as stated above - - Remove any fields regarding exports outside of `"exports"` field, all supported Node.js versions support "exports" field, as do all modern bundlers and CDNs - - Make use of [`publishConfig`](https://pnpm.io/package_json#publishconfig), so we can export to other workspace packages the TypeScript source files - - Thanks to this change, running build script is only required for publishing, and not for developing - - Put `package.json` into exports, mainly so bundlers can read it via directly importing it, and it seems to be the industry norm - - ## Migration - 1. - CommonJS and UMD bundles aren't available anymore - - `package.json` `"main"` and `"types"` fields aren't available anymore - - If you relied on any of these outdated features, you will have to bundle for any target environment that requires them, or update the environment if that's possible. - 2. From now on [`meilisearch`](https://github.com/meilisearch/meilisearch-js/) is a peer dependency (if the package manager used doesn't automatically install it, add it to the list of dependencies manually): - - ```diff - - import { meilisearch } from '@meilisearch/instant-meilisearch' - - import { meilisearch } from '@meilisearch/autocomplete-client' - + import * as meilisearch from 'meilisearch' - + import { Meilisearch } from 'meilisearch' - ``` + - Update imports of `MeiliSearch` to lower case `Meilisearch` to eliminate some possible issues arising from JSPM and maybe other CDNs/package resolvers (#1472, #1468) + - Mark [`meilisearch`](https://github.com/meilisearch/meilisearch-js/) as a peer dependency + - Removed CJS and UMD bundle, as modern browsers support importing ESM from URLs and `type="module"` ## 0.30.0