pipework 0.125.0 → 0.126.0

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.126.0
4
+
5
+ - **Fixed: a malformed or cut-off multipart body on an `.upload()` route answered 500 or never answered** (#621). A body the multipart parser can't read now answers 400 `MALFORMED_MULTIPART` (new `MalformedMultipartError`, also `errors.MalformedMultipart`) instead of 500, so `onInternalError` no longer fires for it. A file part cut off before its closing boundary used to leave the handler's stream hanging, because the parser destroyed the part before the stream was attached. That stream now fails at once with the same error, and the request answers 400. @fastify/multipart's own 4xx errors and the 413 for an oversized file are unchanged.
6
+
3
7
  ## 0.125.0
4
8
 
5
9
  - **Documented: `instance.config.environment` is where an app reads the resolved environment** (#619). It is Blueprint `environment`, else `PIPEWORK_ENV`, else `NODE_ENV` (test/production), else development — the value the database, release, mail and storage checks use. Read it there rather than from `NODE_ENV`, so the app and pipework can't disagree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipework",
3
- "version": "0.125.0",
3
+ "version": "0.126.0",
4
4
  "description": "TypeScript framework for multi-tenant SaaS applications. PostgreSQL-only.",
5
5
  "type": "module",
6
6
  "license": "MIT",