@effection/events
Advanced tools
Comparing version 0.6.1 to 0.7.0-3763fbf
# Changelog | ||
## 0.7.0 | ||
### Minor Changes | ||
- 70ac8e3: create the `@effection/subscription` package with the | ||
`createSubscription` operation. | ||
Refactor `on()` operation from `@effection/events` to use | ||
createSubscription() | ||
### Patch Changes | ||
- 60ed704: ## Fix sourcemaps and types entrypoint | ||
We saw strange errors while installing Effection from BigTest. One of the problems was that sourcemaps were not working. This was happening because sourcemaps referenced ts file which were not being included in the package. | ||
https://github.com/thefrontside/effection/pull/119 | ||
## Distribute node packages without transpiling generators | ||
We made a decision to ship generators in our distribution bundles because IE11 compatibility is not important to us. It's surprisingly difficult to get this to work. We tried using microbundle but that turned out to be even more complicated because their [modern and cjs formats have mutually conflicting configuration](https://github.com/developit/microbundle/issues/618). | ||
https://github.com/thefrontside/effection/pull/120 | ||
- Updated dependencies [60ed704] | ||
- effection@0.6.3 | ||
All notable changes to this project will be documented in this file. | ||
@@ -14,3 +41,3 @@ | ||
* Event dispatch of `once` is asynchronous, to avoid problems with | ||
- Event dispatch of `once` is asynchronous, to avoid problems with | ||
misbehaving event emitters. | ||
@@ -21,3 +48,3 @@ https://github.com/thefrontside/effection.js/pull/107 | ||
* EventSource type is exported. | ||
- EventSource type is exported. | ||
https://github.com/thefrontside/effection/pull/102 |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
export { once } from './once'; | ||
export { on, Subscription } from './on'; | ||
export { on } from './on'; | ||
export { throwOnErrorEvent } from './throw-on-error-event'; | ||
export { EventSource } from './event-source'; |
@@ -1,10 +0,8 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var once_1 = require("./once"); | ||
exports.once = once_1.once; | ||
var on_1 = require("./on"); | ||
exports.on = on_1.on; | ||
exports.Subscription = on_1.Subscription; | ||
var throw_on_error_event_1 = require("./throw-on-error-event"); | ||
exports.throwOnErrorEvent = throw_on_error_event_1.throwOnErrorEvent; | ||
//# sourceMappingURL=index.js.map | ||
'use strict' | ||
if (process.env.NODE_ENV === 'production') { | ||
module.exports = require('./events.cjs.production.min.js') | ||
} else { | ||
module.exports = require('./events.cjs.development.js') | ||
} |
@@ -1,11 +0,3 @@ | ||
import { Operation } from 'effection'; | ||
/// <reference types="effection" /> | ||
import { EventSource } from './event-source'; | ||
export declare class Subscription<T extends Array<unknown>> { | ||
private source; | ||
private eventName; | ||
private events; | ||
constructor(source: EventSource, eventName: string); | ||
next(): Operation<T>; | ||
subscribe(): Operation<void>; | ||
} | ||
export declare function on<T extends Array<unknown> = unknown[]>(source: EventSource, name: string): Operation<Subscription<T>>; | ||
export declare function on<T extends Array<unknown> = unknown[]>(source: EventSource, name: string): import("effection").Operation<import("@effection/subscription").Subscription<T, void>>; |
@@ -0,0 +0,0 @@ import { Operation } from 'effection'; |
import { EventSource } from './event-source'; | ||
import { Operation } from 'effection'; | ||
export declare function throwOnErrorEvent(source: EventSource): Operation<void>; |
{ | ||
"name": "@effection/events", | ||
"version": "0.6.1", | ||
"version": "0.7.0-3763fbf", | ||
"description": "Helpers for listening to events with effection", | ||
"main": "dist/index.js", | ||
"typings": "dist/index.d.js", | ||
"types": "dist/index.d.ts", | ||
"module": "dist/events.esm.js", | ||
"repository": "https://github.com/thefrontside/bigtest.git", | ||
@@ -12,2 +13,3 @@ "author": "Frontside Engineering <engineering@frontside.io>", | ||
"dist/*", | ||
"src", | ||
"README.md" | ||
@@ -18,6 +20,7 @@ ], | ||
"test": "mocha -r ts-node/register test/**/*.test.ts", | ||
"prepack": "tsc --outdir dist --project tsconfig.dist.json --declaration --sourcemap --module commonjs", | ||
"prepack": "tsdx build --tsconfig tsconfig.dist.json", | ||
"mocha": "mocha -r ts-node/register" | ||
}, | ||
"devDependencies": { | ||
"@frontside/tsconfig": "0.0.1", | ||
"@types/node": "^12.7.11", | ||
@@ -27,6 +30,7 @@ "expect": "^25.4.0", | ||
"ts-node": "^8.9.0", | ||
"tsdx": "0.13.2", | ||
"typescript": "^3.7.0" | ||
}, | ||
"peerDependencies": { | ||
"effection": "^0.6.0" | ||
"effection": "^0.6.3" | ||
}, | ||
@@ -33,0 +37,0 @@ "volta": { |
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
23349
20
225
7
3
2
1