Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
remix-run-bot committed May 1, 2023
1 parent 3ed9f96 commit 2e9c413
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
4 changes: 3 additions & 1 deletion packages/remix-deno/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

### Patch Changes

- add `logDevReady` as replacement for platforms that can't initialize async I/O outside of the request response lifecycle. ([#6204](https://github.com/remix-run/remix/pull/6204))
- add `logDevReady` as replacement for platforms that can't initialize async I/O
outside of the request response lifecycle.
([#6204](https://github.com/remix-run/remix/pull/6204))
- Updated dependencies:
- `@remix-run/[email protected]`

Expand Down
4 changes: 2 additions & 2 deletions packages/remix-deno/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ export {
} from "./implementations.ts";

export {
broadcastDevReady,
createSession,
defer,
broadcastDevReady,
logDevReady,
isCookie,
isSession,
json,
logDevReady,
MaxPartSizeExceededError,
redirect,
unstable_composeUploadHandlers,
Expand Down
29 changes: 16 additions & 13 deletions packages/remix-dev/devServer_unstable/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,22 +91,25 @@ export let serve = async (
newAppServer.stderr.pipe(process.stderr, { end: false });
if (newAppServer.stdout) {
newAppServer.stdout
.pipe(new stream.PassThrough({
transform(chunk, _, callback) {
let str: string = chunk.toString();
let matches = str && str.matchAll(/\[REMIX DEV\] ([A-f0-9]+) ready/g);
if (matches) {
for (let match of matches) {
let buildHash = match[1];
if (buildHash === state.latestBuildHash) {
state.buildHashChannel?.ok();
.pipe(
new stream.PassThrough({
transform(chunk, _, callback) {
let str: string = chunk.toString();
let matches =
str && str.matchAll(/\[REMIX DEV\] ([A-f0-9]+) ready/g);
if (matches) {
for (let match of matches) {
let buildHash = match[1];
if (buildHash === state.latestBuildHash) {
state.buildHashChannel?.ok();
}
}
}
}

callback(null, chunk);
}
}))
callback(null, chunk);
},
})
)
.pipe(process.stdout, { end: false });
}

Expand Down

0 comments on commit 2e9c413

Please sign in to comment.