Skip to content

Commit 5a966cb

Browse files
authored
Inline turbo-stream@2.4.1 and fix decode ordering of Map/Set instances (#13518)
1 parent 9538400 commit 5a966cb

File tree

12 files changed

+1469
-16
lines changed

12 files changed

+1469
-16
lines changed

.changeset/six-squids-tickle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-router": patch
3+
---
4+
5+
Inline `turbo-stream@2.4.1` dependency and fix decoding ordering of Map/Set instances

packages/react-router/.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module.exports = {
77
},
88
rules: {
99
strict: 0,
10-
"no-restricted-syntax": ["error", "LogicalExpression[operator='??']"],
1110
"no-restricted-globals": [
1211
"error",
1312
{ name: "__dirname", message: restrictedGlobalsError },

packages/react-router/__tests__/setup.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ if (!globalThis.TextEncoderStream) {
2929
globalThis.TextEncoderStream = TextEncoderStream;
3030
}
3131

32+
if (!globalThis.TextDecoderStream) {
33+
const { TextDecoderStream } = require("node:stream/web");
34+
globalThis.TextDecoderStream = TextDecoderStream;
35+
}
36+
3237
if (!globalThis.TransformStream) {
3338
const { TransformStream } = require("node:stream/web");
3439
globalThis.TransformStream = TransformStream;

0 commit comments

Comments
 (0)