@e-mc/types 0.8.10 → 0.8.11

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 CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  ## Interface
11
11
 
12
- - https://www.unpkg.com/@e-mc/types@0.8.10/index.d.ts
12
+ - https://www.unpkg.com/@e-mc/types@0.8.11/index.d.ts
13
13
 
14
14
  ```typescript
15
15
  import type { LogArguments } from "./lib/logger";
@@ -186,8 +186,8 @@ const IMPORT_MAP: Record<string, string | undefined>;
186
186
 
187
187
  ## References
188
188
 
189
- - https://www.unpkg.com/@e-mc/types@0.8.10/lib/logger.d.ts
190
- - https://www.unpkg.com/@e-mc/types@0.8.10/lib/module.d.ts
189
+ - https://www.unpkg.com/@e-mc/types@0.8.11/lib/logger.d.ts
190
+ - https://www.unpkg.com/@e-mc/types@0.8.11/lib/module.d.ts
191
191
 
192
192
  * https://nodejs.org/api/perf_hooks.html
193
193
  * 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.8.10',
2
+ VERSION = '0.8.11',
3
3
  TEMP_DIR = 'tmp',
4
4
  CJS = '__cjs__'
5
5
  }
package/index.d.ts CHANGED
@@ -286,6 +286,7 @@ declare namespace types {
286
286
  function getEncoding(value: unknown, fallback?: BufferEncoding): BufferEncoding;
287
287
  function encryptUTF8(algorithm: CipherGCMTypes, key: BinaryLike, iv: BinaryLike, data: string, encoding?: Encoding): Undef<string>;
288
288
  function decryptUTF8(algorithm: CipherGCMTypes, key: BinaryLike, iv: BinaryLike, data: string, encoding?: Encoding): Undef<string>;
289
+ /* @deprecated - crypto.randomUUID */
289
290
  function generateUUID(): string;
290
291
  function incrementUUID(restart?: boolean): string;
291
292
  function validateUUID(value: unknown): boolean;
package/lib/index.d.ts CHANGED
@@ -250,7 +250,9 @@ declare namespace functions {
250
250
 
251
251
  interface DocumentConstructor<T extends IFileManager<U>, U extends ExternalAsset = ExternalAsset, V extends ClientModule = DocumentModule, W extends DocumentComponent = DocumentComponent, X extends DocumentComponentOption = DocumentComponentOption, Y extends ICloud = ICloud<T>> extends ModuleConstructor {
252
252
  finalize(this: T, instance: IDocument<T, U, V, W, X, Y>): Promise<unknown>;
253
+ /* @deprecated */
253
254
  createSourceMap(code: string, remove: boolean): SourceMap;
255
+ /* @deprecated */
254
256
  createSourceMap(code: string, uri?: string, remove?: boolean): SourceMap;
255
257
  writeSourceMap(uri: string, data: SourceCode, options?: SourceMapOptions): Undef<string>;
256
258
  updateGradle(source: string, namespaces: string[], value: string, options?: UpdateGradleOptions | boolean): string;
@@ -560,6 +562,7 @@ declare namespace functions {
560
562
  interface IModule<T extends IHost = IHost> extends EventEmitter, IAbortComponent {
561
563
  readonly status: LogStatus<StatusType>[];
562
564
  readonly errors: unknown[];
565
+ /* @deprecated */
563
566
  supported(major: number, minor?: number, patch?: number, lts?: boolean): boolean;
564
567
  supports(name: string, value?: boolean): boolean;
565
568
  getTempDir(options: GetTempDirOptions): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/types",
3
- "version": "0.8.10",
3
+ "version": "0.8.11",
4
4
  "description": "Type definitions for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",