-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: change packages architecture and giving independence to modules…
…/methods This changes was made to make the modules/methods more independent: * standalone methods return 'Promise' instead of 'Promises', It is more logical for standalone methods to return 'Promise' and not 'Promises', and only in case that the use of Promises this will return a 'Promises'. * changing the architecture of loading methods to 'Promises', now methods will not automatically load to 'Promises' only when you call to '<package>/add'. * move methods interfaces from '@promises/interfaces' to packages of methods. * preventing overriding parent (Promise) methods, for avoid problems with polyfill 'Promise'. 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() ```
- Loading branch information
Showing
172 changed files
with
1,895 additions
and
1,608 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.