@awesome-ecs/abstract 0.31.0 → 0.32.1
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/README.md +125 -125
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.mjs.map +1 -1
- package/dist/entities/index.cjs.map +1 -1
- package/dist/entities/index.d.cts +3 -3
- package/dist/entities/index.d.mts +3 -3
- package/dist/entities/index.mjs.map +1 -1
- package/dist/factories/index.cjs +1 -1
- package/dist/factories/index.cjs.map +1 -1
- package/dist/factories/index.d.cts +1 -1
- package/dist/factories/index.d.mts +1 -1
- package/dist/factories/index.mjs +1 -1
- package/dist/factories/index.mjs.map +1 -1
- package/dist/{index-zohK7ftH.d.cts → index-BD7sDB60.d.mts} +197 -350
- package/dist/{index-DZlhICMZ.d.mts → index-BJFNTFDd.d.cts} +197 -350
- package/dist/{index-BguFn1Xj.d.cts → index-BOsrKTWm.d.cts} +24 -4
- package/dist/{identity-component-CuWHf7jX.d.mts → index-BlP67nCr.d.mts} +82 -70
- package/dist/{identity-component-DLDaOTyK.d.cts → index-C5nragoq.d.cts} +82 -70
- package/dist/index-CeqaKmWR.d.mts +218 -0
- package/dist/index-DMTkNY1e.d.cts +218 -0
- package/dist/{index-kNcUiDBd.d.mts → index-vpjRaGIC.d.mts} +24 -4
- package/dist/pipelines/index.d.cts +1 -1
- package/dist/pipelines/index.d.mts +1 -1
- package/dist/systems/index.cjs +9 -4
- package/dist/systems/index.cjs.map +1 -1
- package/dist/systems/index.d.cts +2 -2
- package/dist/systems/index.d.mts +2 -2
- package/dist/systems/index.mjs +9 -4
- package/dist/systems/index.mjs.map +1 -1
- package/dist/types-Bbmnq4ni.d.cts +74 -0
- package/dist/types-C1ojaDL4.d.mts +74 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +3 -3
- package/dist/utils/index.d.mts +3 -3
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/utils/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/utils/dispatch-sequential.ts","../../src/utils/logger.ts"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/utils/dispatch-sequential.ts","../../src/utils/logger.ts"],"sourcesContent":["/**\n * Executes a function for each item in an iterable, sequentially.\n *\n * Uses a sync fast-path: iterates synchronously until the first Promise is\n * encountered, then switches to async for the remainder. If no item produces\n * a Promise, the entire call stays synchronous with zero async overhead.\n *\n * @param items - The iterable to iterate over.\n * @param fn - The function to call for each item. May return void or a Promise.\n * @returns void if all calls were synchronous, or a Promise if any were async.\n */\nexport function dispatchSequential<T>(\n items: Iterable<T>,\n fn: (item: T) => void | Promise<void>\n): void | Promise<void> {\n const iterator = items[Symbol.iterator]();\n\n for (let next = iterator.next(); !next.done; next = iterator.next()) {\n const result = fn(next.value);\n\n if (result instanceof Promise) {\n return continueAsync(iterator, fn, result);\n }\n }\n}\n\nasync function continueAsync<T>(\n iterator: Iterator<T>,\n fn: (item: T) => void | Promise<void>,\n pending: Promise<void>\n): Promise<void> {\n await pending;\n\n for (let next = iterator.next(); !next.done; next = iterator.next()) {\n const result = fn(next.value);\n\n if (result instanceof Promise) {\n await result;\n }\n }\n}\n","/**\n * Logger interface for debug and diagnostic output.\n * Supports multiple log levels for controlling verbosity.\n * Implementations can target different outputs (console, file, remote, etc.).\n */\nexport interface ILogger {\n /**\n * Logs a message with a specified severity level.\n * @param level - The severity level of the message.\n * @param message - The primary message content.\n * @param args - Additional arguments to include in the log output.\n */\n log(level: LogLevel, message: any, ...args: any[]): void;\n\n /**\n * Logs detailed diagnostic information.\n * Typically the lowest level, most verbose output.\n * @param message - The message to log.\n * @param args - Additional data.\n */\n trace(message: any, ...args: any[]): void;\n\n /**\n * Logs debug-level information.\n * Useful during development and troubleshooting.\n * @param message - The message to log.\n * @param args - Additional data.\n */\n debug(message: any, ...args: any[]): void;\n\n /**\n * Logs warning-level messages.\n * Indicates potentially problematic conditions.\n * @param message - The message to log.\n * @param args - Additional data.\n */\n warn(message: any, ...args: any[]): void;\n\n /**\n * Logs error-level messages.\n * Indicates error conditions that may require attention.\n * @param message - The message to log.\n * @param args - Additional data.\n */\n error(message: any, ...args: any[]): void;\n}\n\n/**\n * Logging severity levels in increasing order.\n */\nexport enum LogLevel {\n /**\n * Most detailed, diagnostic-level logging.\n */\n trace,\n\n /**\n * Development and debugging information.\n */\n debug,\n\n /**\n * Warning-level conditions.\n */\n warn,\n\n /**\n * Error-level conditions.\n */\n error\n}\n\n/**\n * Configuration options for logger instances.\n */\nexport interface ILoggerOptions {\n /**\n * Enables/disables each log level.\n * If a level is disabled, log calls at that level are ignored.\n */\n enabled: Map<LogLevel, boolean>;\n}\n"],"mappings":";;;;;;;;;;;;AAWA,SAAgB,mBACd,OACA,IACsB;CACtB,MAAM,WAAW,MAAM,OAAO,UAAU;CAExC,KAAK,IAAI,OAAO,SAAS,KAAK,GAAG,CAAC,KAAK,MAAM,OAAO,SAAS,KAAK,GAAG;EACnE,MAAM,SAAS,GAAG,KAAK,KAAK;EAE5B,IAAI,kBAAkB,SACpB,OAAO,cAAc,UAAU,IAAI,MAAM;CAE7C;AACF;AAEA,eAAe,cACb,UACA,IACA,SACe;CACf,MAAM;CAEN,KAAK,IAAI,OAAO,SAAS,KAAK,GAAG,CAAC,KAAK,MAAM,OAAO,SAAS,KAAK,GAAG;EACnE,MAAM,SAAS,GAAG,KAAK,KAAK;EAE5B,IAAI,kBAAkB,SACpB,MAAM;CAEV;AACF;;;;;;ACUA,IAAY,WAAL,yBAAA,UAAA;;;;CAIL,SAAA,SAAA,WAAA,KAAA;;;;CAKA,SAAA,SAAA,WAAA,KAAA;;;;CAKA,SAAA,SAAA,UAAA,KAAA;;;;CAKA,SAAA,SAAA,WAAA,KAAA;;AACF,EAAA,CAAA,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awesome-ecs/abstract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.1",
|
|
4
4
|
"description": "A comprehensive Entity-Component-System (ECS) Architecture implementation. Abstract components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"url": "https://github.com/privatebytes/awesome-ecs/issues"
|
|
98
98
|
},
|
|
99
99
|
"homepage": "https://github.com/privatebytes/awesome-ecs#readme",
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "79f0b8fa9500ab4ed4deaecb2d35b8a74f8ff4f7"
|
|
101
101
|
}
|