@alwatr/flatomise 5.5.28 → 5.5.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/main.cjs +1 -2
- package/dist/main.cjs.map +1 -1
- package/dist/main.mjs +1 -2
- package/dist/main.mjs.map +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.5.29](https://github.com/Alwatr/nanolib/compare/@alwatr/flatomise@5.5.28...@alwatr/flatomise@5.5.29) (2026-03-16)
|
|
7
|
+
|
|
8
|
+
### 🔨 Code Refactoring
|
|
9
|
+
|
|
10
|
+
* migrate build scripts from yarn to bun across multiple packages ([d90e962](https://github.com/Alwatr/nanolib/commit/d90e962f15e5c951e191d5f02341279b6472abc3))
|
|
11
|
+
|
|
6
12
|
## [5.5.28](https://github.com/Alwatr/nanolib/compare/@alwatr/flatomise@5.5.27...@alwatr/flatomise@5.5.28) (2026-02-18)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @alwatr/flatomise
|
package/dist/main.cjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/** 📦 @alwatr/flatomise v5.5.
|
|
2
|
-
__dev_mode__: console.debug("📦 @alwatr/flatomise v5.5.28");
|
|
1
|
+
/** 📦 @alwatr/flatomise v5.5.29 */
|
|
3
2
|
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var main_exports={};__export(main_exports,{newFlatomise:()=>newFlatomise});module.exports=__toCommonJS(main_exports);function newFlatomise(){const flatomise={settled:false};flatomise.promise=new Promise((resolve,reject)=>{flatomise.resolve=resolve;flatomise.reject=reject});flatomise.promise.finally(()=>{flatomise.settled=true});return flatomise}0&&(module.exports={newFlatomise});
|
|
4
3
|
//# sourceMappingURL=main.cjs.map
|
package/dist/main.cjs.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/main.ts"],
|
|
4
4
|
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport type {} from '@alwatr/type-helper';\n\n/**\n * Flat promise that can be resolved or rejected from outside.\n */\nexport interface Flatomise<T> {\n /**\n * The promise.\n */\n readonly promise: Promise<T>;\n\n /**\n * Resolve the promise.\n */\n readonly resolve: (value: T | PromiseLike<T>) => void;\n\n /**\n * Reject the promise.\n */\n readonly reject: (reason?: any) => void;\n\n /**\n * Whether the promise is settled (resolved or rejected).\n */\n readonly settled: boolean;\n}\n\n/**\n * Create a new Flatomise is a promise that can be resolved or rejected from outside.\n *\n * @returns A new Flatomise.\n *\n * @example\n * ```typescript\n * const flatomise = newFlatomise();\n * flatomise.promise.then(() => {\n * console.log('flatomise resolved');\n * });\n * flatomise.resolve();\n * ```\n */\nexport function newFlatomise<T>(): Flatomise<T> {\n const flatomise: Partial<Mutable<Flatomise<T>>> = {settled: false};\n flatomise.promise = new Promise<T>((resolve, reject) => {\n flatomise.resolve = resolve;\n flatomise.reject = reject;\n });\n flatomise.promise.finally(() => {\n flatomise.settled = true;\n });\n return flatomise as Flatomise<T>;\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";qqBAAA,qHA2CO,SAAS,cAAgC,CAC9C,MAAM,UAA4C,CAAC,QAAS,KAAK,EACjE,UAAU,QAAU,IAAI,QAAW,CAAC,QAAS,SAAW,CACtD,UAAU,QAAU,QACpB,UAAU,OAAS,MACrB,CAAC,EACD,UAAU,QAAQ,QAAQ,IAAM,CAC9B,UAAU,QAAU,IACtB,CAAC,EACD,OAAO,SACT",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/main.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/** 📦 @alwatr/flatomise v5.5.
|
|
2
|
-
__dev_mode__: console.debug("📦 @alwatr/flatomise v5.5.28");
|
|
1
|
+
/** 📦 @alwatr/flatomise v5.5.29 */
|
|
3
2
|
function newFlatomise(){const flatomise={settled:false};flatomise.promise=new Promise((resolve,reject)=>{flatomise.resolve=resolve;flatomise.reject=reject});flatomise.promise.finally(()=>{flatomise.settled=true});return flatomise}export{newFlatomise};
|
|
4
3
|
//# sourceMappingURL=main.mjs.map
|
package/dist/main.mjs.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/main.ts"],
|
|
4
4
|
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport type {} from '@alwatr/type-helper';\n\n/**\n * Flat promise that can be resolved or rejected from outside.\n */\nexport interface Flatomise<T> {\n /**\n * The promise.\n */\n readonly promise: Promise<T>;\n\n /**\n * Resolve the promise.\n */\n readonly resolve: (value: T | PromiseLike<T>) => void;\n\n /**\n * Reject the promise.\n */\n readonly reject: (reason?: any) => void;\n\n /**\n * Whether the promise is settled (resolved or rejected).\n */\n readonly settled: boolean;\n}\n\n/**\n * Create a new Flatomise is a promise that can be resolved or rejected from outside.\n *\n * @returns A new Flatomise.\n *\n * @example\n * ```typescript\n * const flatomise = newFlatomise();\n * flatomise.promise.then(() => {\n * console.log('flatomise resolved');\n * });\n * flatomise.resolve();\n * ```\n */\nexport function newFlatomise<T>(): Flatomise<T> {\n const flatomise: Partial<Mutable<Flatomise<T>>> = {settled: false};\n flatomise.promise = new Promise<T>((resolve, reject) => {\n flatomise.resolve = resolve;\n flatomise.reject = reject;\n });\n flatomise.promise.finally(() => {\n flatomise.settled = true;\n });\n return flatomise as Flatomise<T>;\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";AA2CO,SAAS,cAAgC,CAC9C,MAAM,UAA4C,CAAC,QAAS,KAAK,EACjE,UAAU,QAAU,IAAI,QAAW,CAAC,QAAS,SAAW,CACtD,UAAU,QAAU,QACpB,UAAU,OAAS,MACrB,CAAC,EACD,UAAU,QAAQ,QAAQ,IAAM,CAC9B,UAAU,QAAU,IACtB,CAAC,EACD,OAAO,SACT",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwatr/flatomise",
|
|
3
3
|
"description": "A utility for creating promises that can be externally resolved or rejected.",
|
|
4
|
-
"version": "5.5.
|
|
4
|
+
"version": "5.5.29",
|
|
5
5
|
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
|
|
6
6
|
"bugs": "https://github.com/Alwatr/nanolib/issues",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@alwatr/nano-build": "6.4.
|
|
8
|
+
"@alwatr/nano-build": "6.4.2",
|
|
9
9
|
"@alwatr/prettier-config": "6.0.2",
|
|
10
10
|
"@alwatr/tsconfig-base": "6.0.4",
|
|
11
|
-
"@alwatr/type-helper": "7.0.
|
|
11
|
+
"@alwatr/type-helper": "7.0.2",
|
|
12
12
|
"typescript": "^5.9.3"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
@@ -56,21 +56,21 @@
|
|
|
56
56
|
"directory": "packages/flatomise"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
|
-
"b": "
|
|
60
|
-
"build": "
|
|
59
|
+
"b": "bun run build",
|
|
60
|
+
"build": "bun run build:ts && bun run build:es",
|
|
61
61
|
"build:es": "nano-build --preset=module",
|
|
62
62
|
"build:ts": "tsc --build",
|
|
63
|
-
"c": "
|
|
64
|
-
"cb": "
|
|
63
|
+
"c": "bun run clean",
|
|
64
|
+
"cb": "bun run clean && bun run build",
|
|
65
65
|
"clean": "rm -rfv dist *.tsbuildinfo",
|
|
66
|
-
"d": "
|
|
67
|
-
"w": "
|
|
68
|
-
"watch": "
|
|
69
|
-
"watch:es": "
|
|
70
|
-
"watch:ts": "
|
|
66
|
+
"d": "bun run build:es && bun --enable-source-maps --trace-warnings",
|
|
67
|
+
"w": "bun run watch",
|
|
68
|
+
"watch": "bun run watch:ts & bun run watch:es",
|
|
69
|
+
"watch:es": "bun run build:es --watch",
|
|
70
|
+
"watch:ts": "bun run build:ts --watch --preserveWatchOutput"
|
|
71
71
|
},
|
|
72
72
|
"sideEffects": false,
|
|
73
73
|
"type": "module",
|
|
74
74
|
"types": "./dist/main.d.ts",
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "c3889e3756b0a0f9b935a1b702a1373ac52cb379"
|
|
76
76
|
}
|