@jsenv/core 28.3.2 → 28.3.3

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/dist/main.js CHANGED
@@ -25301,11 +25301,17 @@ const createFileService = ({
25301
25301
  clientFileChangeCallbackList.push(({
25302
25302
  url
25303
25303
  }) => {
25304
- const urlInfo = urlGraph.getUrlInfo(url);
25304
+ urlGraph.urlInfoMap.forEach(urlInfo => {
25305
+ if (urlInfo.url === url) {
25306
+ urlGraph.considerModified(urlInfo);
25307
+ } else {
25308
+ const urlWithoutSearch = asUrlWithoutSearch(urlInfo.url);
25305
25309
 
25306
- if (urlInfo) {
25307
- urlGraph.considerModified(urlInfo);
25308
- }
25310
+ if (urlWithoutSearch === url) {
25311
+ urlGraph.considerModified(urlInfo);
25312
+ }
25313
+ }
25314
+ });
25309
25315
  });
25310
25316
  const kitchen = createKitchen({
25311
25317
  signal,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "28.3.2",
3
+ "version": "28.3.3",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -5,7 +5,7 @@ import {
5
5
  composeTwoResponses,
6
6
  } from "@jsenv/server"
7
7
  import { registerDirectoryLifecycle, bufferToEtag } from "@jsenv/filesystem"
8
- import { urlIsInsideOf, moveUrl } from "@jsenv/urls"
8
+ import { urlIsInsideOf, moveUrl, asUrlWithoutSearch } from "@jsenv/urls"
9
9
  import { URL_META } from "@jsenv/url-meta"
10
10
 
11
11
  import { getCorePlugins } from "@jsenv/core/src/plugins/plugins.js"
@@ -95,10 +95,16 @@ export const createFileService = ({
95
95
  )
96
96
  const urlGraph = createUrlGraph()
97
97
  clientFileChangeCallbackList.push(({ url }) => {
98
- const urlInfo = urlGraph.getUrlInfo(url)
99
- if (urlInfo) {
100
- urlGraph.considerModified(urlInfo)
101
- }
98
+ urlGraph.urlInfoMap.forEach((urlInfo) => {
99
+ if (urlInfo.url === url) {
100
+ urlGraph.considerModified(urlInfo)
101
+ } else {
102
+ const urlWithoutSearch = asUrlWithoutSearch(urlInfo.url)
103
+ if (urlWithoutSearch === url) {
104
+ urlGraph.considerModified(urlInfo)
105
+ }
106
+ }
107
+ })
102
108
  })
103
109
  const kitchen = createKitchen({
104
110
  signal,