@e-mc/types 0.9.0 → 0.9.2

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/LICENSE CHANGED
@@ -1,11 +1,11 @@
1
- Copyright 2024 An Pham
2
-
3
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4
-
5
- 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6
-
7
- 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8
-
9
- 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10
-
1
+ Copyright 2024 An Pham
2
+
3
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4
+
5
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6
+
7
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8
+
9
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10
+
11
11
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @e-mc/types
2
2
 
3
- * NodeJS 14/16
3
+ * NodeJS 16
4
4
  * ES2020
5
5
 
6
6
  ## General Usage
@@ -9,7 +9,7 @@
9
9
 
10
10
  ## Interface
11
11
 
12
- * [View Source](https://www.unpkg.com/@e-mc/types@0.9.0/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.9.2/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { LogArguments } from "./lib/logger";
@@ -192,26 +192,10 @@ interface THRESHOLD {
192
192
  const IMPORT_MAP: Record<string, string | undefined>;
193
193
  ```
194
194
 
195
- ## NodeJS 14 LTS
196
-
197
- Any optional fail safe dependencies were removed as of `E-mc 0.9`. The code itself will still be *ES2020* and will continue to work equivalently when self-installing these dependencies:
198
-
199
- ### Under 15.4 + 16.0
200
-
201
- ```sh
202
- npm i abort-controller event-target-shim
203
- ```
204
-
205
- ### Under 14.17 + 15.6
206
-
207
- ```sh
208
- npm i uuid
209
- ```
210
-
211
195
  ## References
212
196
 
213
- - https://www.unpkg.com/@e-mc/types@0.9.0/lib/logger.d.ts
214
- - https://www.unpkg.com/@e-mc/types@0.9.0/lib/module.d.ts
197
+ - https://www.unpkg.com/@e-mc/types@0.9.2/lib/logger.d.ts
198
+ - https://www.unpkg.com/@e-mc/types@0.9.2/lib/module.d.ts
215
199
 
216
200
  * https://nodejs.org/api/perf_hooks.html
217
201
  * https://www.npmjs.com/package/@types/bytes
package/constant.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export const enum INTERNAL {
2
- VERSION = '0.9.0',
2
+ VERSION = '0.9.2',
3
3
  TEMP_DIR = 'tmp',
4
4
  CJS = '__cjs__'
5
5
  }
package/index.js CHANGED
@@ -972,4 +972,4 @@ function incrementUUID(restart) {
972
972
  return INCREMENT_PREFIX + (INCREMENT_COUNT++).toString(16).padStart(4, '0');
973
973
  }
974
974
  exports.incrementUUID = incrementUUID;
975
- exports.generateUUID = typeof crypto.randomUUID === 'function' ? crypto.randomUUID.bind(crypto) : require('uuid').v4;
975
+ exports.generateUUID = crypto.randomUUID.bind(crypto);
package/lib/core.d.ts CHANGED
@@ -61,7 +61,7 @@ export interface ClientDbConstructor<T extends IHost = IHost, U extends ClientMo
61
61
  readonly TRANSACTION_TERMINATE: number;
62
62
  readonly TRANSACTION_ABORT: number;
63
63
  readonly TRANSACTION_FAIL: number;
64
- loadSettings(settings: Pick<Settings, "process" | "memory">, password?: string) : boolean;
64
+ loadSettings(settings: Pick<Settings, "process" | "memory">, password?: string): boolean;
65
65
  getTimeout(value: Undef<NumString | TimeoutAction>): number;
66
66
  convertTime(value: NumString): number;
67
67
  findResult(source: string, credential: unknown, queryString: string, timeout: number, sessionKey?: string | boolean, renewCache?: boolean): Undef<QueryResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/types",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Type definitions for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/lib/dom.d.ts DELETED
@@ -1,9 +0,0 @@
1
- interface EventListenerOptions {
2
- capture?: boolean;
3
- }
4
-
5
- export interface AddEventListenerOptions extends EventListenerOptions {
6
- once?: boolean;
7
- passive?: boolean;
8
- signal?: AbortSignal;
9
- }