numbl 0.4.16 → 0.4.17

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.
@@ -12,4 +12,4 @@ export declare function dictInsert(d: RuntimeDictionary, keysArg: RuntimeValue,
12
12
  /** Remove keys from a dictionary, returning a new dictionary. */
13
13
  export declare function dictRemove(d: RuntimeDictionary, keysArg: RuntimeValue): RuntimeDictionary;
14
14
  /** Lookup values by keys. Returns single value or tensor/cell array. */
15
- export declare function dictLookup(d: RuntimeDictionary, keysArg: RuntimeValue): RuntimeValue;
15
+ export declare function dictLookup(d: RuntimeDictionary, keysArg: RuntimeValue, fallbackValue?: RuntimeValue): RuntimeValue;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * hash builtin (Octave-compatible): hash(hfun, str) -> lowercase hex digest.
3
+ * Supported algorithms: MD5, SHA256. Pure-JS implementations because
4
+ * builtins execute synchronously (WebCrypto is async).
5
+ */
6
+ export {};
@@ -33,6 +33,7 @@ import "./special-math.js";
33
33
  import "./geometry.js";
34
34
  import "./misc.js";
35
35
  import "./dictionary.js";
36
+ import "./hash.js";
36
37
  import "./help-text.js";
37
38
  export { getIBuiltin, getIBuiltinHelp, getIBuiltinNargin, getAllIBuiltinNames, registerBuiltinHelp, inferJitType, } from "./types.js";
38
39
  export type { IBuiltin, IBuiltinResolution, BuiltinHelp } from "./types.js";
@@ -322,7 +322,7 @@ export declare class Runtime {
322
322
  isClassInstance(value: unknown, className: string): boolean;
323
323
  indexCellStore(base: unknown, indices: unknown[], rhs: unknown): unknown;
324
324
  multiOutputCellAssign(base: unknown, indices: unknown, results: unknown[]): unknown;
325
- getMember(base: unknown, name: string): unknown;
325
+ getMember(base: unknown, name: string, nargout?: number): unknown;
326
326
  getMemberDynamic(base: unknown, nameExpr: unknown): RuntimeValue;
327
327
  getMemberOrEmpty(base: unknown, name: string): RuntimeValue;
328
328
  setMember(_base: unknown, _name: string, _rhs: unknown): void;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { type RuntimeValue } from "../runtime/index.js";
5
5
  import type { Runtime } from "./runtime.js";
6
- export declare function getMember(rt: Runtime, base: unknown, name: string): unknown;
6
+ export declare function getMember(rt: Runtime, base: unknown, name: string, nargout?: number): unknown;
7
7
  export declare function getMemberDynamic(rt: Runtime, base: unknown, nameExpr: unknown): RuntimeValue;
8
8
  export declare function getMemberOrEmpty(base: unknown, name: string): RuntimeValue;
9
9
  export declare function setMemberReturn(rt: Runtime, base: unknown, name: string, rhs: unknown): unknown;
@@ -1,2 +1,2 @@
1
1
  /** Numbl version, used for JIT disk cache invalidation. */
2
- export declare const NUMBL_VERSION = "0.4.16";
2
+ export declare const NUMBL_VERSION = "0.4.17";