Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PKG -- [root] Patch broken versions #1807

Merged
merged 3 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .changeset/yellow-carrots-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
"@onflow/util-actor": patch
"@onflow/config": patch
"@onflow/fcl": patch
"@onflow/fcl-bundle": patch
"@onflow/fcl-wc": patch
"@onflow/protobuf": patch
"@onflow/rlp": patch
"@onflow/sdk": patch
"@onflow/transport-grpc": patch
"@onflow/transport-http": patch
"@onflow/typedefs": patch
"@onflow/types": patch
"@onflow/util-address": patch
"@onflow/util-encode-key": patch
"@onflow/util-invariant": patch
"@onflow/util-logger": patch
"@onflow/util-semver": patch
"@onflow/util-template": patch
"@onflow/util-uid": patch
---

Fix versioning & actor bug
4 changes: 2 additions & 2 deletions packages/fcl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
"typescript": "^4.9.5"
},
"source": {
"src/fcl.ts": {
"src/fcl.js": {
"cjs": "./dist/fcl.js",
"esm": "./dist/fcl.module.js",
"umd": "./dist/fcl.umd.min.js"
},
"src/fcl-react-native.ts": {
"src/fcl-react-native.js": {
"cjs": "./dist/fcl-react-native.js",
"esm": "./dist/fcl-react-native.module.js",
"umd": "./dist/fcl-react-native.umd.min.js"
Expand Down
File renamed without changes.
11 changes: 8 additions & 3 deletions packages/util-actor/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import {mailbox as createMailbox, type IMailbox} from "./mailbox"

// eslint-disable-next-line @typescript-eslint/no-var-requires
const queueMicrotask = require("queue-microtask")
let promise: any
const _queueMicrotask = (cb: any) =>
(promise || (promise = Promise.resolve())).then(cb).catch((err: any) =>
setTimeout(() => {
throw err
}, 0)
)

export const INIT = "INIT"
export const SUBSCRIBE = "SUBSCRIBE"
Expand Down Expand Up @@ -189,7 +194,7 @@ export const spawn = <Handlers extends ActorHandlers>(
fn = fromHandlers<Handlers>(fnOrHandlers)
else fn = fnOrHandlers

queueMicrotask(async () => {
_queueMicrotask(async () => {
await fn(ctx)
kill(addr)
})
Expand Down
Loading