@effect/platform 0.90.0 → 0.90.1

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.
@@ -83,7 +83,7 @@ const redirect = (location, options) => {
83
83
  const headers = Headers.unsafeFromRecord({
84
84
  location: location.toString()
85
85
  });
86
- return new ServerResponseImpl(options?.status ?? 301, options?.statusText, options?.headers ? Headers.merge(headers, Headers.fromInput(options.headers)) : headers, options?.cookies ?? Cookies.empty, internalBody.empty);
86
+ return new ServerResponseImpl(options?.status ?? 302, options?.statusText, options?.headers ? Headers.merge(headers, Headers.fromInput(options.headers)) : headers, options?.cookies ?? Cookies.empty, internalBody.empty);
87
87
  };
88
88
  /** @internal */
89
89
  exports.redirect = redirect;
@@ -74,7 +74,7 @@ export const redirect = (location, options) => {
74
74
  const headers = Headers.unsafeFromRecord({
75
75
  location: location.toString()
76
76
  });
77
- return new ServerResponseImpl(options?.status ?? 301, options?.statusText, options?.headers ? Headers.merge(headers, Headers.fromInput(options.headers)) : headers, options?.cookies ?? Cookies.empty, internalBody.empty);
77
+ return new ServerResponseImpl(options?.status ?? 302, options?.statusText, options?.headers ? Headers.merge(headers, Headers.fromInput(options.headers)) : headers, options?.cookies ?? Cookies.empty, internalBody.empty);
78
78
  };
79
79
  /** @internal */
80
80
  export const uint8Array = (body, options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect/platform",
3
- "version": "0.90.0",
3
+ "version": "0.90.1",
4
4
  "description": "Unified interfaces for common platform-specific services",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -17,7 +17,7 @@
17
17
  "multipasta": "^0.2.7"
18
18
  },
19
19
  "peerDependencies": {
20
- "effect": "^3.17.0"
20
+ "effect": "^3.17.7"
21
21
  },
22
22
  "publishConfig": {
23
23
  "provenance": true
@@ -103,7 +103,7 @@ export const redirect = (
103
103
  ): ServerResponse.HttpServerResponse => {
104
104
  const headers = Headers.unsafeFromRecord({ location: location.toString() })
105
105
  return new ServerResponseImpl(
106
- options?.status ?? 301,
106
+ options?.status ?? 302,
107
107
  options?.statusText,
108
108
  options?.headers ?
109
109
  Headers.merge(