@endo/marshal
Advanced tools
Comparing version 0.6.7 to 0.6.8
@@ -6,2 +6,12 @@ # Change Log | ||
### [0.6.8](https://github.com/endojs/endo/compare/@endo/marshal@0.6.7...@endo/marshal@0.6.8) (2022-06-11) | ||
### Bug Fixes | ||
* decodeToJustin accepts slot backrefs ([#1186](https://github.com/endojs/endo/issues/1186)) ([e4f71b4](https://github.com/endojs/endo/commit/e4f71b46a440bfb0e15bd24f709c58e94887b942)) | ||
* retire deprecated sending only ([#1187](https://github.com/endojs/endo/issues/1187)) ([af656b2](https://github.com/endojs/endo/commit/af656b20491969b8c3106f51276865690f702794)) | ||
### [0.6.7](https://github.com/endojs/endo/compare/@endo/marshal@0.6.6...@endo/marshal@0.6.7) (2022-04-15) | ||
@@ -8,0 +18,0 @@ |
export { getInterfaceOf } from "./src/helpers/remotable.js"; | ||
export { deeplyFulfilled } from "./src/deeplyFulfilled.js"; | ||
export { makeTagged } from "./src/makeTagged.js"; | ||
export { decodeToJustin } from "./src/marshal-justin.js"; | ||
export * from "./src/types.js"; | ||
@@ -5,0 +6,0 @@ export { mapIterable, filterIterable } from "./src/helpers/iter-helpers.js"; |
@@ -27,5 +27,5 @@ export { mapIterable, filterIterable } from './src/helpers/iter-helpers.js'; | ||
export { stringify, parse } from './src/marshal-stringify.js'; | ||
// Works, but not yet used | ||
// export { decodeToJustin } from './src/marshal-justin.js'; | ||
export { decodeToJustin } from './src/marshal-justin.js'; | ||
export { | ||
@@ -32,0 +32,0 @@ assertRecord, |
{ | ||
"name": "@endo/marshal", | ||
"version": "0.6.7", | ||
"version": "0.6.8", | ||
"description": "marshal", | ||
@@ -40,9 +40,9 @@ "type": "module", | ||
"dependencies": { | ||
"@endo/eventual-send": "^0.15.3", | ||
"@endo/nat": "^4.1.12", | ||
"@endo/promise-kit": "^0.2.41" | ||
"@endo/eventual-send": "^0.15.4", | ||
"@endo/nat": "^4.1.13", | ||
"@endo/promise-kit": "^0.2.42" | ||
}, | ||
"devDependencies": { | ||
"@endo/lockdown": "^0.1.13", | ||
"@endo/ses-ava": "^0.2.25", | ||
"@endo/lockdown": "^0.1.14", | ||
"@endo/ses-ava": "^0.2.26", | ||
"ava": "^3.12.1", | ||
@@ -78,3 +78,3 @@ "c8": "^7.7.3" | ||
}, | ||
"gitHead": "3ae52352ca54614f0bf40f74a6f3959ea5973c2e" | ||
"gitHead": "7be9306df5e5eae280134cbbaf0d3886b4e51536" | ||
} |
@@ -185,3 +185,5 @@ // @ts-check | ||
Nat(index); | ||
assert.typeof(iface, 'string'); | ||
if (iface !== undefined) { | ||
assert.typeof(iface, 'string'); | ||
} | ||
return; | ||
@@ -345,3 +347,4 @@ } | ||
assert(Symbol[suffix] === sym); | ||
return out.next(`Symbol[${quote(suffix)}]`); | ||
assert(identPattern.test(suffix)); | ||
return out.next(`Symbol.${suffix}`); | ||
} | ||
@@ -360,4 +363,8 @@ return out.next(`Symbol.for(${quote(registeredName)})`); | ||
index = Number(Nat(index)); | ||
iface = quote(iface); | ||
return out.next(`getSlotVal(${index},${iface})`); | ||
if (iface === undefined) { | ||
return out.next(`slot(${index})`); | ||
} else { | ||
iface = quote(iface); | ||
return out.next(`slot(${index},${iface})`); | ||
} | ||
} | ||
@@ -364,0 +371,0 @@ |
@@ -215,11 +215,2 @@ // @ts-check | ||
const name = /** @type {string} */ (nameForPassableSymbol(val)); | ||
if (name === '@@asyncIterator') { | ||
// Deprectated qclass. TODO make conditional | ||
// on environment variable. Eventually remove, but only after | ||
// confident that all supported receivers understand | ||
// `[QCLASS]: 'symbol'`. | ||
return harden({ | ||
[QCLASS]: '@@asyncIterator', | ||
}); | ||
} | ||
return harden({ | ||
@@ -226,0 +217,0 @@ [QCLASS]: 'symbol', |
@@ -63,2 +63,5 @@ export type PrimitiveStyle = "undefined" | "null" | "boolean" | "number" | "bigint" | "string" | "symbol"; | ||
}; | ||
/** | ||
* Note that the '@@asyncIterator' encoding is deprecated. Use 'symbol' instead. | ||
*/ | ||
export type EncodingUnion = EncodingClass<'NaN'> | EncodingClass<'undefined'> | EncodingClass<'Infinity'> | EncodingClass<'-Infinity'> | (EncodingClass<'bigint'> & { | ||
@@ -65,0 +68,0 @@ digits: string; |
@@ -143,2 +143,4 @@ // @ts-nocheck TODO Fix the recursive types to it checks. Will this | ||
* } EncodingUnion | ||
* Note that the '@@asyncIterator' encoding is deprecated. Use 'symbol' instead. | ||
* | ||
* @typedef {{ [index: string]: Encoding, | ||
@@ -145,0 +147,0 @@ * '@qclass'?: undefined |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
167374
3228
Updated@endo/eventual-send@^0.15.4
Updated@endo/nat@^4.1.13
Updated@endo/promise-kit@^0.2.42