Skip to content

Commit

Permalink
PKG -- [root] Patch broken versions (#1807)
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink authored Nov 9, 2023
1 parent 2950e79 commit 9430d72
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
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.
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

0 comments on commit 9430d72

Please sign in to comment.