@remix-run/static-middleware 0.4.4 → 0.4.6

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.
@@ -8,7 +8,7 @@ import { type FileResponseOptions } from '@remix-run/response/file';
8
8
  */
9
9
  export type AcceptRangesFunction = (file: File) => boolean;
10
10
  /**
11
- * Options for the `staticFiles` middleware.
11
+ * Options for the {@link staticFiles} middleware in addition to {@link FileResponseOptions}.
12
12
  */
13
13
  export interface StaticFilesOptions extends Omit<FileResponseOptions, 'acceptRanges'> {
14
14
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remix-run/static-middleware",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "description": "Middleware for serving static files from the filesystem",
5
5
  "author": "Michael Jackson <mjijackson@gmail.com>",
6
6
  "license": "MIT",
@@ -28,17 +28,19 @@
28
28
  "devDependencies": {
29
29
  "@types/node": "^24.6.0",
30
30
  "@typescript/native-preview": "7.0.0-dev.20251125.1",
31
- "@remix-run/fetch-router": "0.17.0",
32
- "@remix-run/form-data-middleware": "0.1.4",
31
+ "@remix-run/assert": "0.1.0",
32
+ "@remix-run/fetch-router": "0.18.1",
33
+ "@remix-run/form-data-middleware": "0.2.1",
34
+ "@remix-run/method-override-middleware": "0.1.6",
33
35
  "@remix-run/mime": "0.4.0",
34
36
  "@remix-run/response": "0.3.2",
35
- "@remix-run/method-override-middleware": "0.1.4"
37
+ "@remix-run/test": "0.1.0"
36
38
  },
37
39
  "dependencies": {
38
- "@remix-run/fetch-router": "^0.17.0",
39
- "@remix-run/fs": "^0.4.2",
40
+ "@remix-run/fetch-router": "^0.18.1",
40
41
  "@remix-run/html-template": "^0.3.0",
41
42
  "@remix-run/mime": "^0.4.0",
43
+ "@remix-run/fs": "^0.4.2",
42
44
  "@remix-run/response": "^0.3.2"
43
45
  },
44
46
  "keywords": [
@@ -51,7 +53,7 @@
51
53
  "scripts": {
52
54
  "build": "tsgo -p tsconfig.build.json",
53
55
  "clean": "git clean -fdX",
54
- "test": "node --disable-warning=ExperimentalWarning --test",
56
+ "test": "remix-test",
55
57
  "typecheck": "tsgo --noEmit"
56
58
  }
57
59
  }
package/src/lib/static.ts CHANGED
@@ -15,7 +15,7 @@ import { generateDirectoryListing } from './directory-listing.ts'
15
15
  export type AcceptRangesFunction = (file: File) => boolean
16
16
 
17
17
  /**
18
- * Options for the `staticFiles` middleware.
18
+ * Options for the {@link staticFiles} middleware in addition to {@link FileResponseOptions}.
19
19
  */
20
20
  export interface StaticFilesOptions extends Omit<FileResponseOptions, 'acceptRanges'> {
21
21
  /**