troika-flex-layout
Advanced tools
Comparing version 0.46.4 to 0.47.0
@@ -6,10 +6,13 @@ # Change Log | ||
## [0.46.4](https://github.com/protectwise/troika/compare/v0.46.3...v0.46.4) (2022-03-30) | ||
# [0.47.0](https://github.com/protectwise/troika/compare/v0.46.3...v0.47.0) (2022-12-15) | ||
**Note:** Version bump only for package troika-flex-layout | ||
### Features | ||
* remove custom Thenable polyfill in favor of native promises ([7af402e](https://github.com/protectwise/troika/commit/7af402e254675ca2fc182467a65d2d4f860845e4)) | ||
## [0.46.3](https://github.com/protectwise/troika/compare/v0.46.2...v0.46.3) (2022-03-11) | ||
@@ -16,0 +19,0 @@ |
{ | ||
"name": "troika-flex-layout", | ||
"version": "0.46.4", | ||
"version": "0.47.0", | ||
"description": "Utility for calculating flexbox layouts in a web worker", | ||
@@ -17,7 +17,7 @@ "author": "Jason Johnston <jason.johnston@protectwise.com>", | ||
"dependencies": { | ||
"troika-three-text": "^0.46.4", | ||
"troika-worker-utils": "^0.46.0" | ||
"troika-three-text": "^0.47.0", | ||
"troika-worker-utils": "^0.47.0" | ||
}, | ||
"devDependencies": { | ||
"terser": "^4.2.0", | ||
"terser": "^5.14.2", | ||
"yoga-layout-prebuilt": "1.9.6" | ||
@@ -28,3 +28,3 @@ }, | ||
}, | ||
"gitHead": "b19170a9d8e1223138a2be7633eb8bf22eb6ff8f" | ||
"gitHead": "f20187dfa6a07de046b4e6a3948e75483b8e2ee5" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { defineWorkerModule, ThenableWorkerModule } from 'troika-worker-utils' | ||
import { defineWorkerModule } from 'troika-worker-utils' | ||
import { typesetterWorkerModule } from 'troika-three-text' | ||
@@ -288,5 +288,4 @@ import yogaFactory from '../libs/yoga.factory.js' | ||
createFlexLayoutProcessor, | ||
ThenableWorkerModule | ||
], | ||
init(yogaFactory, layoutEngine, create, Thenable) { | ||
init(yogaFactory, layoutEngine, create) { | ||
const Yoga = yogaFactory() | ||
@@ -300,5 +299,5 @@ function measure(params) { | ||
return function(styleTree) { | ||
const thenable = new Thenable() | ||
process(styleTree, thenable.resolve) | ||
return thenable | ||
return new Promise(resolve => { | ||
process(styleTree, resolve) | ||
}) | ||
} | ||
@@ -305,0 +304,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1531040
7553
+ Addedtroika-three-text@0.47.2(transitive)
+ Addedtroika-three-utils@0.47.2(transitive)
+ Addedtroika-worker-utils@0.47.2(transitive)
- Removedtroika-three-text@0.46.4(transitive)
- Removedtroika-three-utils@0.46.0(transitive)
- Removedtroika-worker-utils@0.46.0(transitive)
Updatedtroika-three-text@^0.47.0
Updatedtroika-worker-utils@^0.47.0