UNPKG

@promises/to-callback

Version:

To Callback is package from Promises library

175 lines (107 loc) 4.43 kB
# Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. <a name="0.5.0"></a> # [0.5.0](https://github.com/yisraelx/promises/compare/v0.4.0...v0.5.0) (2018-07-16) ### Bug Fixes * **interfaces:** ordering, error with objects, and rename fp interfaces ([fc28328](https://github.com/yisraelx/promises/commit/fc28328)) ### build * move from webpack to rollup, compatibility changes ([47594dc](https://github.com/yisraelx/promises/commit/47594dc)) ### Code Refactoring * separates add and export, adds 'add' file to groups packages ([be1e7f6](https://github.com/yisraelx/promises/commit/be1e7f6)) ### Features * **fp:** convert fp to sub-package, and add fp to all group packages ([94bebb3](https://github.com/yisraelx/promises/commit/94bebb3)) * **fp:** move to conversion by [@pakal](https://github.com/pakal)/curry, add placeholder support ([ff18d23](https://github.com/yisraelx/promises/commit/ff18d23)) * add Tree-Shaking & esm support and convert "add" to sub-package ([0aa2297](https://github.com/yisraelx/promises/commit/0aa2297)) ### BREAKING CHANGES * change in wrapper use, for use in wrapper: ```typescript import Promises from '@promises/-all/add'; ``` *Or* ```typescript import Promises from '@promises/core'; import '@promises/-all/add'; ``` * **fp:** remove "@promises/-fp" package, use "@promises/-all/fp" sub-package instead. * new compatibility support: * main - commonjs module and es5 standard (index.js) * es2015 - commonjs module and es2015 standard (index.es6.js) * browser - bundle in umd format includes all scope dependencies in es5 standard (bundle.umd.js, bundle.umd.min.js) * typings - typescript declaration file (index.d.ts) * "add" does not export the "index" export, it only adds to Promises ```ts import Promises from '@promises/core'; import '@promises/for-each-series/add'; ``` <a name="0.4.0"></a> # [0.4.0](https://github.com/yisraelx/promises/compare/v0.3.1...v0.4.0) (2018-03-17) ### Features * Adding Functional programming support ([c801b97](https://github.com/yisraelx/promises/commit/c801b97)) <a name="0.3.1"></a> ## [0.3.1](https://github.com/yisraelx/promises/compare/v0.3.0...v0.3.1) (2018-03-05) **Note:** Version bump only for package @promises/to-callback <a name="0.3.0"></a> # [0.3.0](https://github.com/yisraelx/promises/compare/v0.2.0...v0.3.0) (2018-03-05) ### Bug Fixes * **toCallback:** wrong handling of errors ([c7f644b](https://github.com/yisraelx/promises/commit/c7f644b)) ### Chores * **package:** change of the export properties (main, browser, module, es2015) ([5a146dc](https://github.com/yisraelx/promises/commit/5a146dc)) ### Features * change packages architecture and giving independence to modules/methods ([832216b](https://github.com/yisraelx/promises/commit/832216b)) ### BREAKING CHANGES * **standalone methods return 'Promise' instead of 'Promises'** before ```ts import method from '@promises/method'; let promises: Promises<any> = method<any>(); ``` after ```ts import method from '@promises/method'; let promise: Promise<any> = method<any>(); ``` for Promises use Promises ```ts import Promises from '@promises/-all'; let promises: Promises<any> = Promises.method<any>(); ``` **changing the architecture of loading methods to 'Promises'** before ```ts import Promises from '@promises/core'; import method from '@promises/method'; method() Promise.method() ``` ```ts import Promises from '@promises/core'; import '@promises/method'; Promise.method() ``` after ```ts import Promises from '@promises/core'; import method from '@promises/method'; method() Promise.method() // throw Error ``` ```ts import Promises from '@promises/core'; import method from'@promises/method/add'; method() Promise.method() ``` * **package:** change properties: * main: umd.js => es5.js * browser: umd.js => umd.min.js * module: es5.js => index.js * bundle: bundle.js => bundle.min.js <a name="0.2.0"></a> # [0.2.0](https://github.com/yisraelx/promises/compare/v0.1.0...v0.2.0) (2017-09-20) **Note:** Version bump only for package @promises/to-callback <a name="0.1.0"></a> # 0.1.0 (2017-06-24) ### Features * first commit ([00d9fb7](https://github.com/yisraelx/promises/commit/00d9fb7))