@frp-ts/lens
Advanced tools
Comparing version 1.0.0-alpha.11 to 1.0.0-alpha.12
@@ -6,2 +6,18 @@ # Change Log | ||
# [1.0.0-alpha.12](https://github.com/raveclassic/frp-ts/compare/v1.0.0-alpha.11...v1.0.0-alpha.12) (2022-01-17) | ||
### Features | ||
* Remove env and add actions ([#33](https://github.com/raveclassic/frp-ts/issues/33)) ([a6bcec7](https://github.com/raveclassic/frp-ts/commit/a6bcec79884d8a36e05511fbae817a963fa21a5f)) | ||
### BREAKING CHANGES | ||
* all functions requiring Env now don't need it, some functions were removed | ||
# [1.0.0-alpha.11](https://github.com/raveclassic/frp-ts/compare/v1.0.0-alpha.10...v1.0.0-alpha.11) (2022-01-14) | ||
@@ -8,0 +24,0 @@ |
{ | ||
"name": "@frp-ts/lens", | ||
"version": "1.0.0-alpha.11", | ||
"version": "1.0.0-alpha.12", | ||
"description": "Lenses for frp-ts atoms", | ||
@@ -21,8 +21,10 @@ "typedocMain": "./src/index.ts", | ||
}, | ||
"peerDependencies": { | ||
"tslib": "^2.3.1" | ||
}, | ||
"dependencies": { | ||
"@frp-ts/core": "^1.0.0-alpha.11" | ||
"@frp-ts/core": "^1.0.0-alpha.12" | ||
}, | ||
"devDependencies": { | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.4.4" | ||
"tslib": "^2.3.1" | ||
}, | ||
@@ -29,0 +31,0 @@ "main": "./src/index.js", |
@@ -1,2 +0,2 @@ | ||
import { Atom, Env } from '@frp-ts/core'; | ||
import { Atom } from '@frp-ts/core'; | ||
export interface Lens<S, A> { | ||
@@ -9,3 +9,3 @@ readonly get: (s: S) => A; | ||
} | ||
export declare const newLensedAtom: (env: Env) => <A>(initial: A) => LensedAtom<A>; | ||
export declare const newLensedAtom: <A>(initial: A) => LensedAtom<A>; | ||
export declare const toLensedAtom: <A>(atom: Atom<A>) => LensedAtom<A>; |
@@ -5,6 +5,3 @@ "use strict"; | ||
const core_1 = require("@frp-ts/core"); | ||
const newLensedAtom = (env) => { | ||
const newAtom = core_1.atom.newAtom(env); | ||
return (initial) => (0, exports.toLensedAtom)(newAtom(initial)); | ||
}; | ||
const newLensedAtom = (initial) => (0, exports.toLensedAtom)(core_1.atom.newAtom(initial)); | ||
exports.newLensedAtom = newLensedAtom; | ||
@@ -11,0 +8,0 @@ const toLensedAtom = (atom) => { |
Sorry, the diff of this file is not supported yet
6949
1
2
45
Updated@frp-ts/core@^1.0.0-alpha.12