@onflow/util-actor
Advanced tools
Comparing version 1.3.0 to 1.3.1
# @onflow/util-actor | ||
## 1.3.0 | ||
## 1.3.1 | ||
### Minor Changes | ||
### Patch Changes | ||
- [#1728](https://github.com/onflow/fcl-js/pull/1728) [`a4f8c00c`](https://github.com/onflow/fcl-js/commit/a4f8c00c4cf292d3a4afac610dedbc89ff3affea) Thanks [@nialexsan](https://github.com/nialexsan)! - TS build | ||
- [#1807](https://github.com/onflow/fcl-js/pull/1807) [`9430d723`](https://github.com/onflow/fcl-js/commit/9430d7232c272f4acb55f5bcff7be82cef9704d9) Thanks [@jribbink](https://github.com/jribbink)! - Fix versioning & actor bug | ||
- [#1761](https://github.com/onflow/fcl-js/pull/1761) [`92b966d3`](https://github.com/onflow/fcl-js/commit/92b966d39936ba0a90629ee320e62e4fed5d2296) Thanks [@jribbink](https://github.com/jribbink)! - Enhance TS support for @onflow/util-actor | ||
## 1.3.0 | ||
## 1.3.0-alpha.0 | ||
### Minor Changes | ||
- TS build | ||
- [#1801](https://github.com/onflow/fcl-js/pull/1801) [`8881394b`](https://github.com/onflow/fcl-js/commit/8881394bc11fea507e330a4c507ef304fe456c42) Thanks [@nialexsan](https://github.com/nialexsan)! - TS build | ||
- [#1801](https://github.com/onflow/fcl-js/pull/1801) [`8881394b`](https://github.com/onflow/fcl-js/commit/8881394bc11fea507e330a4c507ef304fe456c42) Thanks [@nialexsan](https://github.com/nialexsan)! - Enhance TS support for @onflow/util-actor | ||
## 1.2.0 | ||
@@ -18,0 +18,0 @@ |
@@ -26,4 +26,6 @@ 'use strict'; | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const queueMicrotask = require("queue-microtask"); | ||
let promise; | ||
const _queueMicrotask = cb => (promise || (promise = Promise.resolve())).then(cb).catch(err => setTimeout(() => { | ||
throw err; | ||
}, 0)); | ||
const INIT = "INIT"; | ||
@@ -117,3 +119,3 @@ const SUBSCRIBE = "SUBSCRIBE"; | ||
if (typeof fnOrHandlers === "object") fn = fromHandlers(fnOrHandlers);else fn = fnOrHandlers; | ||
queueMicrotask(async () => { | ||
_queueMicrotask(async () => { | ||
await fn(ctx); | ||
@@ -120,0 +122,0 @@ kill(addr); |
@@ -22,4 +22,6 @@ const mailbox = () => { | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const queueMicrotask = require("queue-microtask"); | ||
let promise; | ||
const _queueMicrotask = cb => (promise || (promise = Promise.resolve())).then(cb).catch(err => setTimeout(() => { | ||
throw err; | ||
}, 0)); | ||
const INIT = "INIT"; | ||
@@ -113,3 +115,3 @@ const SUBSCRIBE = "SUBSCRIBE"; | ||
if (typeof fnOrHandlers === "object") fn = fromHandlers(fnOrHandlers);else fn = fnOrHandlers; | ||
queueMicrotask(async () => { | ||
_queueMicrotask(async () => { | ||
await fn(ctx); | ||
@@ -116,0 +118,0 @@ kill(addr); |
@@ -28,4 +28,6 @@ (function (global, factory) { | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const queueMicrotask = require("queue-microtask"); | ||
let promise; | ||
const _queueMicrotask = cb => (promise || (promise = Promise.resolve())).then(cb).catch(err => setTimeout(() => { | ||
throw err; | ||
}, 0)); | ||
const INIT = "INIT"; | ||
@@ -119,3 +121,3 @@ const SUBSCRIBE = "SUBSCRIBE"; | ||
if (typeof fnOrHandlers === "object") fn = fromHandlers(fnOrHandlers);else fn = fnOrHandlers; | ||
queueMicrotask(async () => { | ||
_queueMicrotask(async () => { | ||
await fn(ctx); | ||
@@ -122,0 +124,0 @@ kill(addr); |
@@ -0,0 +0,0 @@ export declare const INIT = "INIT"; |
@@ -0,0 +0,0 @@ export interface IMailbox<T> { |
{ | ||
"name": "@onflow/util-actor", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A mechanism for forcing order/transitions of scoped async state", | ||
@@ -17,3 +17,3 @@ "license": "Apache-2.0", | ||
"@babel/preset-typescript": "^7.22.5", | ||
"@onflow/fcl-bundle": "^1.4.0", | ||
"@onflow/fcl-bundle": "^1.4.1", | ||
"@types/jest": "^29.5.3", | ||
@@ -20,0 +20,0 @@ "@typescript-eslint/eslint-plugin": "^6.4.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92371
16
811