@medusajs/search 2.22.4 → 2.22.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +162 -0
- package/package.json +5 -5
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# @medusajs/search
|
|
2
|
+
|
|
3
|
+
## 2.22.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`7dd3c28`](https://github.com/medusajs/medusa/commit/7dd3c28fba6b74aaab84612b696cab597e12c667)]:
|
|
8
|
+
- @medusajs/framework@2.22.5
|
|
9
|
+
|
|
10
|
+
## 2.22.4
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`3a0cbbb`](https://github.com/medusajs/medusa/commit/3a0cbbb89ff547928a5a98365a4beab16bd57d6f), [`3d85f84`](https://github.com/medusajs/medusa/commit/3d85f848e2f01422efc1e4a8b37e6441fc3f7cc5)]:
|
|
15
|
+
- @medusajs/framework@2.22.4
|
|
16
|
+
|
|
17
|
+
## 2.22.3
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [#17618](https://github.com/medusajs/medusa/pull/17618) [`385c4ff`](https://github.com/medusajs/medusa/commit/385c4ff75f4fada544b6384779a0ede21b66c741) Thanks [@shahednasser](https://github.com/shahednasser)! - chore: update jest to v30.5.2 and use the `--testPathPatterns` flag in test scripts
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [[`9692b99`](https://github.com/medusajs/medusa/commit/9692b996485e6fc6e7cb7f6d18ab730962b9727e), [`2e0d8ae`](https://github.com/medusajs/medusa/commit/2e0d8ae841c64f6c896886153269fe31a6b5d51d), [`385c4ff`](https://github.com/medusajs/medusa/commit/385c4ff75f4fada544b6384779a0ede21b66c741), [`2276c84`](https://github.com/medusajs/medusa/commit/2276c84d47d0d6dc078a6eea2350b9d097a0231b), [`a6a4254`](https://github.com/medusajs/medusa/commit/a6a4254fb804ae671b778df15c1a5977826930b8)]:
|
|
24
|
+
- @medusajs/framework@2.22.3
|
|
25
|
+
|
|
26
|
+
## 2.22.2
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- [#17540](https://github.com/medusajs/medusa/pull/17540) [`56ea83b`](https://github.com/medusajs/medusa/commit/56ea83b5ade4683256956316395f6e9f2b74e965) Thanks [@sradevski](https://github.com/sradevski)! - fix(search): return empty results for Cloud indexes with no documents, report rejected queries as invalid data, and keep typo tolerance for queries with short words
|
|
31
|
+
|
|
32
|
+
- [#17540](https://github.com/medusajs/medusa/pull/17540) [`56ea83b`](https://github.com/medusajs/medusa/commit/56ea83b5ade4683256956316395f6e9f2b74e965) Thanks [@sradevski](https://github.com/sradevski)! - fix(search): page Cloud search results with offset and pack the total count and stats facet aggregations into one query
|
|
33
|
+
|
|
34
|
+
- Updated dependencies [[`ca881e5`](https://github.com/medusajs/medusa/commit/ca881e5e758c49cfcbac4130d7e626dc06f439a6), [`9d55082`](https://github.com/medusajs/medusa/commit/9d55082bf9706e45b148100808f4d4550b9105bc), [`26e5807`](https://github.com/medusajs/medusa/commit/26e58070c1661c14aedc02ee6cfb0b2bb28d497b), [`52caddd`](https://github.com/medusajs/medusa/commit/52cadddcf34fdbbc70be34aecd036d6885e8fa5d)]:
|
|
35
|
+
- @medusajs/framework@2.22.2
|
|
36
|
+
|
|
37
|
+
## 2.22.1
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- Updated dependencies []:
|
|
42
|
+
- @medusajs/framework@2.22.1
|
|
43
|
+
|
|
44
|
+
## 2.22.0
|
|
45
|
+
|
|
46
|
+
### Minor Changes
|
|
47
|
+
|
|
48
|
+
- [#17089](https://github.com/medusajs/medusa/pull/17089) [`d249d29ddef76d0bde0b68899b9fe5f9faa1ef6a`](https://github.com/medusajs/medusa/commit/d249d29ddef76d0bde0b68899b9fe5f9faa1ef6a) Thanks [@shahednasser](https://github.com/shahednasser)! - chore: drop Node.js 20 support and require Node.js v22.22.0 or later
|
|
49
|
+
|
|
50
|
+
### Patch Changes
|
|
51
|
+
|
|
52
|
+
- [#17102](https://github.com/medusajs/medusa/pull/17102) [`b561a37343f4132d0f3a243e7722260797c3cf85`](https://github.com/medusajs/medusa/commit/b561a37343f4132d0f3a243e7722260797c3cf85) Thanks [@sradevski](https://github.com/sradevski)! - feat(search): allow replacing the transport of the Medusa Cloud search provider
|
|
53
|
+
|
|
54
|
+
- [#17382](https://github.com/medusajs/medusa/pull/17382) [`1db74006ede40300afe64970024688a1a9c2a936`](https://github.com/medusajs/medusa/commit/1db74006ede40300afe64970024688a1a9c2a936) Thanks [@shahednasser](https://github.com/shahednasser)! - chore: ship AGENTS.md in published packages and add agent discovery fields to package.json
|
|
55
|
+
|
|
56
|
+
- Updated dependencies [[`d249d29ddef76d0bde0b68899b9fe5f9faa1ef6a`](https://github.com/medusajs/medusa/commit/d249d29ddef76d0bde0b68899b9fe5f9faa1ef6a), [`14499a2e9309d653c0e4ec6aec3f88079751b4d2`](https://github.com/medusajs/medusa/commit/14499a2e9309d653c0e4ec6aec3f88079751b4d2), [`44db0ca6357ab4d4681a8004e869fde339c3117a`](https://github.com/medusajs/medusa/commit/44db0ca6357ab4d4681a8004e869fde339c3117a), [`1db74006ede40300afe64970024688a1a9c2a936`](https://github.com/medusajs/medusa/commit/1db74006ede40300afe64970024688a1a9c2a936)]:
|
|
57
|
+
- @medusajs/framework@2.22.0
|
|
58
|
+
|
|
59
|
+
## 2.21.2
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
- [#16928](https://github.com/medusajs/medusa/pull/16928) [`494745b8e6b63024e1b7741fe95caa4d03b464b0`](https://github.com/medusajs/medusa/commit/494745b8e6b63024e1b7741fe95caa4d03b464b0) Thanks [@sradevski](https://github.com/sradevski)! - fix(search): count distinct values instead of documents for deduplicated Medusa Cloud searches, and reject deduplicating by an unknown or array field
|
|
64
|
+
|
|
65
|
+
- [#16966](https://github.com/medusajs/medusa/pull/16966) [`aff9d3e847f254bfa36c55c9daa4d6261a4b8e23`](https://github.com/medusajs/medusa/commit/aff9d3e847f254bfa36c55c9daa4d6261a4b8e23) Thanks [@sradevski](https://github.com/sradevski)! - fix(search): stop the active version cache from undoing an index flip. Setting or invalidating an entry now waits for a refresh in flight to land first, so a refresh that read the database before the flip can no longer drop or roll it back
|
|
66
|
+
|
|
67
|
+
- [#16930](https://github.com/medusajs/medusa/pull/16930) [`08f73ec78e17a3a5b6db112290e28f8b3ed79ef6`](https://github.com/medusajs/medusa/commit/08f73ec78e17a3a5b6db112290e28f8b3ed79ef6) Thanks [@sradevski](https://github.com/sradevski)! - fix(search): stop search index versions from piling up. A reindex drops the versions earlier failed or interrupted rebuilds left above the active one, and a swap drops every version below the new active one except its predecessor, instead of leaving them until the next build
|
|
68
|
+
|
|
69
|
+
- Updated dependencies []:
|
|
70
|
+
- @medusajs/framework@2.21.2
|
|
71
|
+
|
|
72
|
+
## 2.21.1
|
|
73
|
+
|
|
74
|
+
### Patch Changes
|
|
75
|
+
|
|
76
|
+
- [#16834](https://github.com/medusajs/medusa/pull/16834) [`ad0e98df856f71872c2f1e7c3b5983cfa37d4d51`](https://github.com/medusajs/medusa/commit/ad0e98df856f71872c2f1e7c3b5983cfa37d4d51) Thanks [@sradevski](https://github.com/sradevski)! - Improve how a basic-auth URL is parsed for search
|
|
77
|
+
|
|
78
|
+
- [#16889](https://github.com/medusajs/medusa/pull/16889) [`414f04ae69012858a6c935972a93d0fdd9a25b33`](https://github.com/medusajs/medusa/commit/414f04ae69012858a6c935972a93d0fdd9a25b33) Thanks [@sradevski](https://github.com/sradevski)! - fix(search): send writes to the version that currently serves reads
|
|
79
|
+
|
|
80
|
+
Which physical index backs a logical index is cached per process, and only the
|
|
81
|
+
process performing a swap updated its own copy. Another process kept resolving
|
|
82
|
+
the retired version, so its writes landed somewhere nothing reads and were lost
|
|
83
|
+
once that version was cleaned up. Writes now resolve the active version fresh,
|
|
84
|
+
and a read whose cached version has since been dropped resolves again instead of
|
|
85
|
+
failing.
|
|
86
|
+
|
|
87
|
+
Also fixes the background refresh latching off after a single failure, which
|
|
88
|
+
pinned a process to a stale version until the hard TTL expired. That TTL is now
|
|
89
|
+
2 minutes rather than 10.
|
|
90
|
+
|
|
91
|
+
- [#16801](https://github.com/medusajs/medusa/pull/16801) [`6498af41624810de111da30a8c9c90d1a7ef820e`](https://github.com/medusajs/medusa/commit/6498af41624810de111da30a8c9c90d1a7ef820e) Thanks [@sradevski](https://github.com/sradevski)! - feat(search): back off and retry when the search engine rate limits a seed
|
|
92
|
+
|
|
93
|
+
- [#16796](https://github.com/medusajs/medusa/pull/16796) [`989e83d74d19bdbe4cde290c23aea5a0693ad9e8`](https://github.com/medusajs/medusa/commit/989e83d74d19bdbe4cde290c23aea5a0693ad9e8) Thanks [@sradevski](https://github.com/sradevski)! - fix(search): resume a failed seed from where it stopped instead of rebuilding from scratch
|
|
94
|
+
|
|
95
|
+
- [#16868](https://github.com/medusajs/medusa/pull/16868) [`7a0cb956645aef3ed13a20c18fc3faf8961ca535`](https://github.com/medusajs/medusa/commit/7a0cb956645aef3ed13a20c18fc3faf8961ca535) Thanks [@sradevski](https://github.com/sradevski)! - feat(medusa,search,types): drop search indexes no definition declares any more
|
|
96
|
+
|
|
97
|
+
`db:migrate` now plans a `drop` for every search index left without a definition,
|
|
98
|
+
the way it already plans deletions for removed links. It asks which ones to drop
|
|
99
|
+
before touching them; `--execute-all-search` drops them all without prompting and
|
|
100
|
+
`--execute-safe-search` leaves them alone, mirroring the link flags. Unattended
|
|
101
|
+
runs with neither flag skip the drops rather than hang on a prompt.
|
|
102
|
+
|
|
103
|
+
- [#16894](https://github.com/medusajs/medusa/pull/16894) [`854a42c10f14735785fccf74b2f0b53b3b46204f`](https://github.com/medusajs/medusa/commit/854a42c10f14735785fccf74b2f0b53b3b46204f) Thanks [@sradevski](https://github.com/sradevski)! - feat(medusa,search,core-flows,types,js-sdk,dashboard): delete a search index and everything built for it
|
|
104
|
+
|
|
105
|
+
`DELETE /admin/search-indexes/:id` drops every physical index ever built for an
|
|
106
|
+
index, along with its versions and sync history, so the next migration recreates
|
|
107
|
+
it from scratch at version 1. Useful when an index' physical state has drifted
|
|
108
|
+
past what a reindex can repair.
|
|
109
|
+
|
|
110
|
+
Available as `searchModuleService.deleteIndex`, `deleteSearchIndexWorkflow`,
|
|
111
|
+
`sdk.admin.search.deleteIndex`, and a confirmed action in the admin dashboard.
|
|
112
|
+
|
|
113
|
+
- Updated dependencies [[`c000d377f1a90d14bcda41500b1ed5bc2734902e`](https://github.com/medusajs/medusa/commit/c000d377f1a90d14bcda41500b1ed5bc2734902e)]:
|
|
114
|
+
- @medusajs/framework@2.21.1
|
|
115
|
+
|
|
116
|
+
## 2.21.0
|
|
117
|
+
|
|
118
|
+
### Patch Changes
|
|
119
|
+
|
|
120
|
+
- [#16762](https://github.com/medusajs/medusa/pull/16762) [`cbd48e2e0169ef9c016fb25703ae08d70827ff34`](https://github.com/medusajs/medusa/commit/cbd48e2e0169ef9c016fb25703ae08d70827ff34) Thanks [@sradevski](https://github.com/sradevski)! - Add search helpers for better DX
|
|
121
|
+
|
|
122
|
+
- Updated dependencies [[`e9d1f84dbfacd35d7787d1af03215a6ae5a176d8`](https://github.com/medusajs/medusa/commit/e9d1f84dbfacd35d7787d1af03215a6ae5a176d8), [`a4c0a845e8b3a7a5acfaacbb0c093cd539ac713b`](https://github.com/medusajs/medusa/commit/a4c0a845e8b3a7a5acfaacbb0c093cd539ac713b), [`c8701e77534f7b615c8b86814f8d5789c0104382`](https://github.com/medusajs/medusa/commit/c8701e77534f7b615c8b86814f8d5789c0104382), [`df8c278d615229436be5b299ebdc76a576695fc3`](https://github.com/medusajs/medusa/commit/df8c278d615229436be5b299ebdc76a576695fc3)]:
|
|
123
|
+
- @medusajs/framework@2.21.0
|
|
124
|
+
|
|
125
|
+
## 2.20.1
|
|
126
|
+
|
|
127
|
+
### Patch Changes
|
|
128
|
+
|
|
129
|
+
- [#16703](https://github.com/medusajs/medusa/pull/16703) [`75c26e85f3bebc0c921064e9aa37987a76cc24ae`](https://github.com/medusajs/medusa/commit/75c26e85f3bebc0c921064e9aa37987a76cc24ae) Thanks [@sradevski](https://github.com/sradevski)! - Remove correlated flag on search until supported
|
|
130
|
+
|
|
131
|
+
- Updated dependencies [[`f373c17dd60cb1e7df1d0c70db31d516d2a0cb4f`](https://github.com/medusajs/medusa/commit/f373c17dd60cb1e7df1d0c70db31d516d2a0cb4f)]:
|
|
132
|
+
- @medusajs/framework@2.20.1
|
|
133
|
+
|
|
134
|
+
## 2.20.0
|
|
135
|
+
|
|
136
|
+
### Patch Changes
|
|
137
|
+
|
|
138
|
+
- [#16545](https://github.com/medusajs/medusa/pull/16545) [`4857d15bdcaf5a0648e7adc5b0b40312e23b5c02`](https://github.com/medusajs/medusa/commit/4857d15bdcaf5a0648e7adc5b0b40312e23b5c02) Thanks [@sradevski](https://github.com/sradevski)! - Match admin search prefixes on the last query term so "dtc sta" still finds "Dtc starter".
|
|
139
|
+
|
|
140
|
+
- [#16545](https://github.com/medusajs/medusa/pull/16545) [`4857d15bdcaf5a0648e7adc5b0b40312e23b5c02`](https://github.com/medusajs/medusa/commit/4857d15bdcaf5a0648e7adc5b0b40312e23b5c02) Thanks [@sradevski](https://github.com/sradevski)! - Remove the in-memory local search provider. Indexes are created only by `db:migrate`, never at application start.
|
|
141
|
+
|
|
142
|
+
- [#16508](https://github.com/medusajs/medusa/pull/16508) [`c660642e0dcba2a581086b5176ab8fbc06127ed8`](https://github.com/medusajs/medusa/commit/c660642e0dcba2a581086b5176ab8fbc06127ed8) Thanks [@shahednasser](https://github.com/shahednasser)! - fix(search, query, types): return fields and relations not in the search index
|
|
143
|
+
|
|
144
|
+
- [#16457](https://github.com/medusajs/medusa/pull/16457) [`693310310610cf439fabb73230187028f2755696`](https://github.com/medusajs/medusa/commit/693310310610cf439fabb73230187028f2755696) Thanks [@sradevski](https://github.com/sradevski)! - Implement Medusa Cloud as a built-in search provider
|
|
145
|
+
|
|
146
|
+
- [#16541](https://github.com/medusajs/medusa/pull/16541) [`c1e5a8f63988698df7f92b8f1e75f63ab8fdee64`](https://github.com/medusajs/medusa/commit/c1e5a8f63988698df7f92b8f1e75f63ab8fdee64) Thanks [@sradevski](https://github.com/sradevski)! - Drop the previous search provider's indexes when `db:migrate` switches engines.
|
|
147
|
+
|
|
148
|
+
Log seed/reindex progress (count, rate, last key) so large catalogs can be followed.
|
|
149
|
+
|
|
150
|
+
- [#16643](https://github.com/medusajs/medusa/pull/16643) [`e01b039f256cb8224dd70a99662a49d0e8cf65d1`](https://github.com/medusajs/medusa/commit/e01b039f256cb8224dd70a99662a49d0e8cf65d1) Thanks [@sradevski](https://github.com/sradevski)! - Add multiple query support in query.search, move searchMany to provider
|
|
151
|
+
|
|
152
|
+
- Updated dependencies [[`847612908fdd1c11a4df09ccc2e8ab44d338bb04`](https://github.com/medusajs/medusa/commit/847612908fdd1c11a4df09ccc2e8ab44d338bb04), [`785fd2b8a978201638a4d8d5ae9eea483958c0fb`](https://github.com/medusajs/medusa/commit/785fd2b8a978201638a4d8d5ae9eea483958c0fb), [`706ce874672c9cd1d8fc0c5429fc0dd24e6910a9`](https://github.com/medusajs/medusa/commit/706ce874672c9cd1d8fc0c5429fc0dd24e6910a9), [`6a2fce501f3bcd459c21a67f586c7a15b905ff0f`](https://github.com/medusajs/medusa/commit/6a2fce501f3bcd459c21a67f586c7a15b905ff0f), [`5e06e544a296b9033f20f71f11c559f81a0e5739`](https://github.com/medusajs/medusa/commit/5e06e544a296b9033f20f71f11c559f81a0e5739)]:
|
|
153
|
+
- @medusajs/framework@2.20.0
|
|
154
|
+
|
|
155
|
+
## 2.19.0
|
|
156
|
+
|
|
157
|
+
### Patch Changes
|
|
158
|
+
|
|
159
|
+
- [#16298](https://github.com/medusajs/medusa/pull/16298) [`5f4d93c374b0ad0b0a31e75de98c7557e0415677`](https://github.com/medusajs/medusa/commit/5f4d93c374b0ad0b0a31e75de98c7557e0415677) Thanks [@sradevski](https://github.com/sradevski)! - Add the Search Module: provider-backed search with an in-memory (Orama) provider, the `query.search` primitive, index definition discovery from `search/`, index migrations through `db:migrate`, event-driven ingestion, and an `/admin/search` endpoint
|
|
160
|
+
|
|
161
|
+
- Updated dependencies [[`372a1ab8fa4c8415f1eda294e3c4c5d9dbee4a30`](https://github.com/medusajs/medusa/commit/372a1ab8fa4c8415f1eda294e3c4c5d9dbee4a30), [`5f4d93c374b0ad0b0a31e75de98c7557e0415677`](https://github.com/medusajs/medusa/commit/5f4d93c374b0ad0b0a31e75de98c7557e0415677), [`5105fec20908cf7bcd7f5f859674acdd8a38b982`](https://github.com/medusajs/medusa/commit/5105fec20908cf7bcd7f5f859674acdd8a38b982)]:
|
|
162
|
+
- @medusajs/framework@2.19.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/search",
|
|
3
|
-
"version": "2.22.
|
|
3
|
+
"version": "2.22.5",
|
|
4
4
|
"description": "Medusa Search module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"orm:cache:clear": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts MIKRO_ORM_ALLOW_GLOBAL_CLI=true medusa-mikro-orm cache:clear"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@medusajs/framework": "2.22.
|
|
47
|
-
"@medusajs/test-utils": "2.22.
|
|
46
|
+
"@medusajs/framework": "2.22.5",
|
|
47
|
+
"@medusajs/test-utils": "2.22.5"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@medusajs/framework": "2.22.
|
|
50
|
+
"@medusajs/framework": "2.22.5"
|
|
51
51
|
}
|
|
52
|
-
}
|
|
52
|
+
}
|