You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Restores relative import paths inside Vite-generated entrypoints on \*nix builds so dev server HMR works again, while keeping the Windows-specific absolute path workaround.
Bumped dependency on `express-cache-on-demand` to guarantee installation of recent fixes for edge cases that could share a response between two locales of a single-site project, report errors without a process restart, and correctly handle `res.send('')` with an empty string.
Fixes an issue where the frontend was caching stale choices for `select`, `radio` and `checkboxes` fields that were saved but no longer valid (i.e removed from the schema).
Copy file name to clipboardExpand all lines: packages/apostrophe/CHANGELOG.md
-17Lines changed: 0 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,5 @@
1
1
# Changelog
2
2
3
-
## UNRELEASED
4
-
5
-
### Adds
6
-
7
-
8
-
### Fixes
9
-
10
-
* Fixes an issue where the frontend was caching stale choices for `select`, `radio` and `checkboxes` fields that were saved but no longer valid (i.e removed from the schema).
11
-
* When we reach the max in a widget area, the `Add Content` button is now disabled.
12
-
13
-
### Changes
14
-
15
-
* Fixes an issue where the frontend was caching stale choices for `select`, `radio` and `checkboxes`
16
-
fields that were saved but no longer valid (i.e removed from the schema).
17
-
* Bumped dependency on `express-cache-on-demand` to guarantee installation of recent fixes for edge cases that could share a response between two locales of a single-site project, report errors without a process restart, and correctly handle `res.send('')` with an empty string.
18
-
* Restores relative import paths inside Vite-generated entrypoints on *nix builds so dev server HMR works again, while keeping the Windows-specific absolute path workaround.
* Default hash function now distinguishes requests by hostname, and respects `req.originalUrl` in preference to `req.url` if available (ApostropheCMS).
6
+
* Passing the empty string to `res.send()` no longer causes a failure.
7
+
* If `express-cache-on-demand` does fail due to an unsupported way of ending a response, just issue a 500 error and log a useful message. Don't terminate the process.
8
+
9
+
## 1.0.3 (2022-02-18)
10
+
11
+
* eslint fixes
12
+
13
+
## 1.0.2 (2017-11-17)
14
+
15
+
* Supports getHeader
16
+
17
+
## 1.0.1 (2016-10-07)
18
+
19
+
* Modern dependencies
20
+
21
+
## 1.0.0 (2016-10-17)
22
+
23
+
* First stable release. Status code support in `res.redirect`, thanks to Alexey Astafiev
throw'cacheOnDemand.middleware does not know how to deliver this response, use the middleware only with routes that end with res.redirect, res.send or res.end';
32
+
console.error(
33
+
`cacheOnDemand.middleware does not know how to deliver a response for ${req.originalUrl||req.url},\n`+
34
+
'use the middleware only with routes that end with res.redirect, res.send or res.end'
35
+
);
36
+
// Report the bad news, but don't take the entire process down
37
+
returnres.status(500).send('error');
33
38
});
34
39
};
35
40
@@ -131,6 +136,10 @@ function expressHasher(req) {
131
136
returnfalse;
132
137
}
133
138
});
134
-
135
-
return!safe ? safe : req.url;
139
+
if(!safe){
140
+
returnfalse;
141
+
}
142
+
// Create a key that distinguishes requests by hostname, and respect req.originalUrl
0 commit comments