@remix-run/cors-middleware 0.1.4 → 0.1.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.
package/dist/lib/cors.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Vary } from '@remix-run/headers';
1
+ import { Vary } from '@remix-run/headers/vary';
2
2
  const defaultCorsMethods = ['GET', 'HEAD', 'PUT', 'PATCH', 'POST', 'DELETE'];
3
3
  /**
4
4
  * Middleware that adds CORS headers and handles CORS preflight requests.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remix-run/cors-middleware",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Middleware for handling CORS in Fetch API servers",
5
5
  "author": "Michael Jackson <mjijackson@gmail.com>",
6
6
  "license": "MIT",
@@ -28,14 +28,14 @@
28
28
  "devDependencies": {
29
29
  "@types/node": "^24.6.0",
30
30
  "@typescript/native-preview": "7.0.0-dev.20251125.1",
31
- "@remix-run/assert": "0.2.1",
32
- "@remix-run/headers": "0.21.0",
33
- "@remix-run/fetch-router": "0.19.1",
34
- "@remix-run/test": "0.4.1"
31
+ "@remix-run/assert": "0.3.0",
32
+ "@remix-run/headers": "0.21.1",
33
+ "@remix-run/test": "0.5.0",
34
+ "@remix-run/fetch-router": "0.20.0"
35
35
  },
36
36
  "dependencies": {
37
- "@remix-run/fetch-router": "^0.19.1",
38
- "@remix-run/headers": "^0.21.0"
37
+ "@remix-run/headers": "^0.21.1",
38
+ "@remix-run/fetch-router": "^0.20.0"
39
39
  },
40
40
  "keywords": [
41
41
  "fetch",
package/src/lib/cors.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Middleware, RequestContext } from '@remix-run/fetch-router'
2
- import { Vary } from '@remix-run/headers'
2
+ import { Vary } from '@remix-run/headers/vary'
3
3
 
4
4
  const defaultCorsMethods = ['GET', 'HEAD', 'PUT', 'PATCH', 'POST', 'DELETE']
5
5