effection
Advanced tools
Comparing version 1.0.0 to 2.0.0-beta.0
265
CHANGELOG.md
# Changelog | ||
## 2.0.0-preview.16 | ||
### Minor Changes | ||
- 9998088: Spawn operation can accept task options | ||
- d7c0eb1: Do not require implementation of full EventEmitter interface | ||
- 2bce454: Simplify EventEmitter types on Controls. | ||
- 1981b35: Collect trace of effection operations and propagate them along with the raised error | ||
- 88dc59a: Remove `verbose` option from MainError | ||
- 88dc59a: Improve error output by including an Effection trace | ||
### Patch Changes | ||
- Updated dependencies [9998088] | ||
- Updated dependencies [d7c0eb1] | ||
- Updated dependencies [2bce454] | ||
- Updated dependencies [1981b35] | ||
- Updated dependencies [88dc59a] | ||
- Updated dependencies [88dc59a] | ||
- @effection/core@2.0.0-preview.12 | ||
- @effection/events@2.0.0-preview.13 | ||
- @effection/main@2.0.0-preview.3 | ||
- @effection/channel@2.0.0-preview.15 | ||
- @effection/subscription@2.0.0-preview.14 | ||
## 2.0.0-preview.15 | ||
### Minor Changes | ||
- 88eca21: Add type to task | ||
- 8bb4514: Add support for labels | ||
- 44c354d: Make task options public | ||
- ef1f164: Reexport main package | ||
### Patch Changes | ||
- ae8d090: Sleeping for zero milliseconds should not suspend indefinitely | ||
- Updated dependencies [88eca21] | ||
- Updated dependencies [ae8d090] | ||
- Updated dependencies [8bb4514] | ||
- Updated dependencies [44c354d] | ||
- @effection/core@2.0.0-preview.11 | ||
- @effection/channel@2.0.0-preview.14 | ||
- @effection/events@2.0.0-preview.12 | ||
- @effection/main@2.0.0-preview.2 | ||
- @effection/subscription@2.0.0-preview.13 | ||
## 2.0.0-preview.14 | ||
### Minor Changes | ||
- 625b521: Sleep operation can suspend indefinitely when called without duration | ||
- a06c679: Add spawn as an operation via resources | ||
- 625b521: Add ensure, timeout and withTimeout combinators | ||
### Patch Changes | ||
- Updated dependencies [625b521] | ||
- Updated dependencies [a06c679] | ||
- Updated dependencies [4d04159] | ||
- Updated dependencies [625b521] | ||
- @effection/core@2.0.0-preview.10 | ||
- @effection/channel@2.0.0-preview.13 | ||
- @effection/events@2.0.0-preview.11 | ||
- @effection/subscription@2.0.0-preview.12 | ||
## 2.0.0-preview.13 | ||
### Minor Changes | ||
- 92f921e: Turn streams into resources which return a subscription | ||
### Patch Changes | ||
- Updated dependencies [92f921e] | ||
- @effection/subscription@2.0.0-preview.11 | ||
- @effection/channel@2.0.0-preview.12 | ||
- @effection/events@2.0.0-preview.10 | ||
## 2.0.0-preview.12 | ||
### Minor Changes | ||
- 110a2cd: Add ignoreError option to prevent a task from propagating its errors to the parent | ||
- 7216a21: Turn throwOnErrorEvent into an operation | ||
- e2545b2: Remove delay on starting iterator/generator | ||
- 2b92370: Prevent race condition in promise controller if promise resolves in the same tick as halt signal | ||
- 00562fd: Fix race condition when halting a task while in between yield points | ||
- 110a2cd: When yielded to an asynchronously halting task, wait for the task to be fully halted before proceeding | ||
- 110a2cd: The sub task created by iterators is now linked to the parent task | ||
- 02446ad: Add Resource to create an option for spawning tasks in the background in an operation | ||
### Patch Changes | ||
- Updated dependencies [110a2cd] | ||
- Updated dependencies [7216a21] | ||
- Updated dependencies [e2545b2] | ||
- Updated dependencies [2b92370] | ||
- Updated dependencies [00562fd] | ||
- Updated dependencies [110a2cd] | ||
- Updated dependencies [110a2cd] | ||
- Updated dependencies [02446ad] | ||
- Updated dependencies [da86a9c] | ||
- @effection/core@2.0.0-preview.9 | ||
- @effection/events@2.0.0-preview.9 | ||
- @effection/channel@2.0.0-preview.11 | ||
- @effection/subscription@2.0.0-preview.10 | ||
## 2.0.0-preview.11 | ||
### Patch Changes | ||
- Updated dependencies [a13987f] | ||
- @effection/core@2.0.0-preview.8 | ||
- @effection/subscription@2.0.0-preview.9 | ||
- @effection/events@2.0.0-preview.8 | ||
- @effection/channel@2.0.0-preview.10 | ||
## 2.0.0-preview.10 | ||
### Patch Changes | ||
- Updated dependencies [91ade6c] | ||
- @effection/channel@2.0.0-preview.9 | ||
## 2.0.0-preview.9 | ||
### Minor Changes | ||
- 2bad074: Run destructors in reverse order and in series | ||
### Patch Changes | ||
- Updated dependencies [2bad074] | ||
- @effection/core@2.0.0-preview.7 | ||
- @effection/channel@2.0.0-preview.8 | ||
- @effection/events@2.0.0-preview.7 | ||
- @effection/subscription@2.0.0-preview.8 | ||
## 2.0.0-preview.8 | ||
### Minor Changes | ||
- 3db7270: Make Queue a first class citizen | ||
### Patch Changes | ||
- 9a6a6e3: Make atom more reentrant | ||
- Updated dependencies [3db7270] | ||
- @effection/subscription@2.0.0-preview.7 | ||
- @effection/channel@2.0.0-preview.7 | ||
- @effection/events@2.0.0-preview.6 | ||
## 2.0.0-preview.7 | ||
### Minor Changes | ||
- 0dca571: Filter with a type predicate can narrow type of stream | ||
### Patch Changes | ||
- 1222756: Use strict dependency requirements for internal dependencies while in prerelease mode | ||
- Updated dependencies [0dca571] | ||
- Updated dependencies [1222756] | ||
- @effection/subscription@2.0.0-preview.6 | ||
- @effection/channel@2.0.0-preview.6 | ||
- @effection/events@2.0.0-preview.5 | ||
- @effection/core@2.0.0-preview.6 | ||
## 2.0.0-preview.6 | ||
### Minor Changes | ||
- 9cf6053: Increase default value of max subscribers on channel | ||
- 0b24415: Add WritableStream interface and implement it for channels | ||
- 442f220: New API for exec and daemon which does not take scope directly | ||
- 22e5230: Add `join` method on stream to return stream result | ||
- 70c358f: Store root in a global variable | ||
- 3983202: Add `stringBuffer` method to stream which buffers stream to a string | ||
- 2c2749d: Add a `buffer` method on Stream to buffer stream contents for later replay | ||
### Patch Changes | ||
- Updated dependencies [9cf6053] | ||
- Updated dependencies [0b24415] | ||
- Updated dependencies [22e5230] | ||
- Updated dependencies [70c358f] | ||
- Updated dependencies [3983202] | ||
- Updated dependencies [2c2749d] | ||
- @effection/channel@2.0.0-preview.5 | ||
- @effection/subscription@2.0.0-preview.5 | ||
- @effection/core@2.0.0-preview.5 | ||
## 2.0.0-preview.5 | ||
### Minor Changes | ||
- ab41f6a: Rename `Subscribable` to `Stream` | ||
- ce76f15: Make channel splittable into send and stream ends | ||
- 72f743c: Add `halt` method on `Effection` to halt root task | ||
- 53661b7: Reexport blessed packages from `effection` package | ||
### Patch Changes | ||
- 7b6ba05: `once()` only yields the first argument passed to `emit()` which | ||
accounts for 99.9% of the use cases. For the cases where all the | ||
arguments are required, use `onceEmit()` | ||
`on()` produces a stream of the first arguments passed to `emit()` | ||
which accounts for 99.9% of the use cases. For the cases where all the | ||
arguments are required, use `onEmit()`. | ||
- Updated dependencies [7b6ba05] | ||
- Updated dependencies [ab41f6a] | ||
- Updated dependencies [ce76f15] | ||
- Updated dependencies [72f743c] | ||
- @effection/events@2.0.0-preview.4 | ||
- @effection/subscription@2.0.0-preview.4 | ||
- @effection/channel@2.0.0-preview.4 | ||
- @effection/core@2.0.0-preview.4 | ||
## 2.0.0-preview.4 | ||
### Minor Changes | ||
- 3ca4cd4: Change `on` to return subscribable, rather than taking scope | ||
- 3ca4cd4: Add `createSubscribable` and `Subscribable` interface | ||
- 3ca4cd4: Make Channel subscribable and add all subscribable methods | ||
- 3ca4cd4: Change channel interface from `new Channel()` to `createChannel()` | ||
### Patch Changes | ||
- 2bf5ef4: Make iterator controllers reentrant so they can e.g. halt themselves | ||
- Updated dependencies [bdedf68] | ||
- Updated dependencies [2bf5ef4] | ||
- @effection/core@2.0.0-preview.3 | ||
## 2.0.0-preview.3 | ||
### Patch Changes | ||
- 93ec0d6: Include CHANGELOGS and src with all packages | ||
- Updated dependencies [93ec0d6] | ||
- @effection/core@2.0.0-preview.2 | ||
## 2.0.0-preview.2 | ||
### Patch Changes | ||
- 80143d5: Fix packaging | ||
- Updated dependencies [80143d5] | ||
- @effection/core@2.0.0-preview.1 | ||
## 2.0.0-preview.1 | ||
### Minor Changes | ||
- f6f223c: Fix packaging | ||
## 2.0.0-preview.0 | ||
### Major Changes | ||
- Version 2 | ||
## 1.0.0 | ||
@@ -4,0 +269,0 @@ |
{ | ||
"name": "effection", | ||
"version": "1.0.0", | ||
"version": "2.0.0-beta.0", | ||
"description": "Effortlessly composable structured concurrency primitive for JavaScript", | ||
@@ -9,45 +9,33 @@ "repository": "http://github.com/thefrontside/effection", | ||
"private": false, | ||
"types": "types/index.d.ts", | ||
"source": "src/index.js", | ||
"main": "dist/effection.js", | ||
"module": "dist/effection.module.js", | ||
"typings": "dist/index.d.ts", | ||
"main": "dist/index.js", | ||
"module": "dist/effection.esm.js", | ||
"files": [ | ||
"README.md", | ||
"CHANGELOG.md", | ||
"dist/**/*", | ||
"src/**/*", | ||
"types/index.d.ts" | ||
"src/**/*" | ||
], | ||
"scripts": { | ||
"coverage": "nyc --reporter=html --reporter=text npm run test", | ||
"coveralls": "nyc report --reporter=text-lcov | coveralls", | ||
"prepack": "microbundle", | ||
"test": "mocha --recursive -r ./tests/setup tests/**/*.test.js", | ||
"mocha": "mocha --recursive -r ./tests/setup", | ||
"test:types": "dtslint types --localTs ../../node_modules/typescript/lib --expectOnly", | ||
"lint": "eslint '{src,tests}/**/*.js'" | ||
"lint": "eslint '{src,bin,test}/**/*.ts'", | ||
"test": "mocha -r ts-node/register test/**/*.test.ts", | ||
"mocha": "mocha -r ts-node/register", | ||
"prepack": "tsdx build --tsconfig tsconfig.dist.json" | ||
}, | ||
"dependencies": { | ||
"@effection/channel": "2.0.0-beta.0", | ||
"@effection/core": "2.0.0-beta.0", | ||
"@effection/events": "2.0.0-beta.0", | ||
"@effection/main": "2.0.0-beta.0", | ||
"@effection/subscription": "2.0.0-beta.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.4.4", | ||
"@babel/plugin-proposal-class-properties": "^7.7.0", | ||
"@babel/preset-env": "7.4.4", | ||
"@babel/preset-modules": "0.1.3", | ||
"@babel/register": "7.4.4", | ||
"@types/mocha": "^5.2.6", | ||
"babel-eslint": "10.0.1", | ||
"capture-console": "^1.0.1", | ||
"conditional-type-checks": "^1.0.5", | ||
"dtslint": "^2.0.2", | ||
"eslint": "5.16.0", | ||
"expect": "24.7.1", | ||
"jest-mock": "^24.8.0", | ||
"microbundle": "^0.12.0", | ||
"mocha": "6.1.4", | ||
"nyc": "~14.1.1", | ||
"typescript": "^3.6.4" | ||
}, | ||
"nyc": { | ||
"exclude": [ | ||
"**/tests" | ||
] | ||
"@types/mocha": "^7.0.2", | ||
"@types/node": "^13.13.5", | ||
"eslint": "^6.8.0", | ||
"expect": "^25.3.0", | ||
"mocha": "^8.3.1", | ||
"ts-node": "^8.8.2", | ||
"tsdx": "0.13.2", | ||
"typescript": "^3.8.3" | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
8
18012
5
11
74
3
2
1
+ Added@effection/core@2.0.0-beta.0
+ Added@effection/main@2.0.0-beta.0
+ Added@effection/channel@2.0.0-beta.0(transitive)
+ Added@effection/core@2.0.0-beta.0(transitive)
+ Added@effection/events@2.0.0-beta.0(transitive)
+ Added@effection/main@2.0.0-beta.0(transitive)
+ Added@effection/subscription@2.0.0-beta.0(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedstacktrace-parser@0.1.10(transitive)
+ Addedsupports-color@7.2.0(transitive)
+ Addedtype-fest@0.7.1(transitive)