@thi.ng/defmulti
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -6,2 +6,10 @@ # Change Log | ||
## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/defmulti@2.0.0...@thi.ng/defmulti@2.0.1) (2021-10-13) | ||
**Note:** Version bump only for package @thi.ng/defmulti | ||
# [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/defmulti@1.3.17...@thi.ng/defmulti@2.0.0) (2021-10-12) | ||
@@ -8,0 +16,0 @@ |
@@ -1,2 +0,2 @@ | ||
import type { Implementation } from "./api"; | ||
import type { Implementation } from "./api.js"; | ||
/** | ||
@@ -45,3 +45,3 @@ * Returns a multi-dispatch function which delegates to one of the | ||
[id: number]: Implementation<T>; | ||
}, fallback?: Implementation<T> | undefined) => import("./api").MultiFn<T>; | ||
}, fallback?: Implementation<T> | undefined) => import("./api.js").MultiFn<T>; | ||
//# sourceMappingURL=defmulti-n.d.ts.map |
import { illegalArity } from "@thi.ng/errors/illegal-arity"; | ||
import { DEFAULT, defmulti } from "./defmulti"; | ||
import { DEFAULT, defmulti } from "./defmulti.js"; | ||
/** | ||
@@ -4,0 +4,0 @@ * Returns a multi-dispatch function which delegates to one of the |
import type { IObjectOf } from "@thi.ng/api"; | ||
import type { AncestorDefs, DispatchFn, DispatchFn1, DispatchFn1O, DispatchFn2, DispatchFn2O, DispatchFn3, DispatchFn3O, DispatchFn4, DispatchFn4O, DispatchFn5, DispatchFn5O, DispatchFn6, DispatchFn6O, DispatchFn7, DispatchFn7O, DispatchFn8, DispatchFn8O, Implementation, Implementation1, Implementation1O, Implementation2, Implementation2O, Implementation3, Implementation3O, Implementation4, Implementation4O, Implementation5, Implementation5O, Implementation6, Implementation6O, Implementation7, Implementation7O, Implementation8, Implementation8O, MultiFn, MultiFn1, MultiFn1O, MultiFn2, MultiFn2O, MultiFn3, MultiFn3O, MultiFn4, MultiFn4O, MultiFn5, MultiFn5O, MultiFn6, MultiFn6O, MultiFn7, MultiFn7O, MultiFn8, MultiFn8O } from "./api"; | ||
import type { AncestorDefs, DispatchFn, DispatchFn1, DispatchFn1O, DispatchFn2, DispatchFn2O, DispatchFn3, DispatchFn3O, DispatchFn4, DispatchFn4O, DispatchFn5, DispatchFn5O, DispatchFn6, DispatchFn6O, DispatchFn7, DispatchFn7O, DispatchFn8, DispatchFn8O, Implementation, Implementation1, Implementation1O, Implementation2, Implementation2O, Implementation3, Implementation3O, Implementation4, Implementation4O, Implementation5, Implementation5O, Implementation6, Implementation6O, Implementation7, Implementation7O, Implementation8, Implementation8O, MultiFn, MultiFn1, MultiFn1O, MultiFn2, MultiFn2O, MultiFn3, MultiFn3O, MultiFn4, MultiFn4O, MultiFn5, MultiFn5O, MultiFn6, MultiFn6O, MultiFn7, MultiFn7O, MultiFn8, MultiFn8O } from "./api.js"; | ||
/** | ||
@@ -4,0 +4,0 @@ * Unique symbol used for registering a default / fallback |
import { unsupported } from "@thi.ng/errors/unsupported"; | ||
import { LOGGER } from "./logger"; | ||
import { LOGGER } from "./logger.js"; | ||
/** | ||
@@ -4,0 +4,0 @@ * Unique symbol used for registering a default / fallback |
import type { IObjectOf } from "@thi.ng/api"; | ||
import type { Implementation, MultiFn } from "./api"; | ||
import type { Implementation, MultiFn } from "./api.js"; | ||
/** | ||
@@ -4,0 +4,0 @@ * Syntax-sugar intended for sets of multi-methods sharing same dispatch |
@@ -1,6 +0,6 @@ | ||
export * from "./api"; | ||
export * from "./defmulti"; | ||
export * from "./defmulti-n"; | ||
export * from "./impls"; | ||
export * from "./logger"; | ||
export * from "./api.js"; | ||
export * from "./defmulti.js"; | ||
export * from "./defmulti-n.js"; | ||
export * from "./impls.js"; | ||
export * from "./logger.js"; | ||
//# sourceMappingURL=index.d.ts.map |
10
index.js
@@ -1,5 +0,5 @@ | ||
export * from "./api"; | ||
export * from "./defmulti"; | ||
export * from "./defmulti-n"; | ||
export * from "./impls"; | ||
export * from "./logger"; | ||
export * from "./api.js"; | ||
export * from "./defmulti.js"; | ||
export * from "./defmulti-n.js"; | ||
export * from "./impls.js"; | ||
export * from "./logger.js"; |
{ | ||
"name": "@thi.ng/defmulti", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Dynamic, extensible multiple dispatch via user supplied dispatch function.", | ||
@@ -37,8 +37,8 @@ "type": "module", | ||
"dependencies": { | ||
"@thi.ng/api": "^8.0.0", | ||
"@thi.ng/errors": "^2.0.0", | ||
"@thi.ng/logger": "^0.1.0" | ||
"@thi.ng/api": "^8.0.1", | ||
"@thi.ng/errors": "^2.0.1", | ||
"@thi.ng/logger": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
"@thi.ng/testament": "^0.1.0" | ||
"@thi.ng/testament": "^0.1.1" | ||
}, | ||
@@ -59,2 +59,5 @@ "keywords": [ | ||
}, | ||
"engines": { | ||
"node": ">=12.7" | ||
}, | ||
"files": [ | ||
@@ -87,3 +90,3 @@ "*.js", | ||
}, | ||
"gitHead": "9ac1344b38b565eb894306fbf72233b6c0b2d115" | ||
"gitHead": "2e6b3d7c0f4c5686c1e9bdb4902ed7d3f90bcc19" | ||
} |
@@ -57,6 +57,7 @@ <!-- This file is generated - DO NOT EDIT! --> | ||
For NodeJS (v14.6+): | ||
For Node.js REPL: | ||
```text | ||
node --experimental-specifier-resolution=node --experimental-repl-await | ||
# with flag only for < v16 | ||
node --experimental-repl-await | ||
@@ -63,0 +64,0 @@ > const defmulti = await import("@thi.ng/defmulti"); |
56487
402
+ Added@thi.ng/logger@1.4.24(transitive)
- Removed@thi.ng/logger@0.1.0(transitive)
Updated@thi.ng/api@^8.0.1
Updated@thi.ng/errors@^2.0.1
Updated@thi.ng/logger@^1.0.1