@ohos-ports/classic-level
v8.0.1-ohos-compat.0
Published
HarmonyOS @ohos-ports classic-level shim: drives the real @ohos-ports/classic-level 3.x native binding but restores classic-level 8.x get()/getSync() semantics (throw NotFoundError with code LEVEL_NOT_FOUND on missing keys) required by @dxos/echo-pipeline
Readme
@ohos-ports/classic-level (compat shim, 8.x semantics)
HarmonyOS (OpenHarmony) compatibility shim published by the ohos-ports project.
This package drives the real @ohos-ports/classic-level 3.x native binding (openharmony-arm64) but restores the classic-level 8.x / abstract-level 1.x get()/getSync() semantics: missing keys reject with NotFoundError (code: 'LEVEL_NOT_FOUND', notFound: true, status: 404) instead of resolving undefined.
Use it when your codebase expects classic-level 8.x behavior on OpenHarmony, e.g. as an npm override:
{
"overrides": {
"classic-level": "npm:@ohos-ports/[email protected]"
}
}All other APIs (put, del, batch, iterator, getMany, snapshots, encodings) pass through to the native binding unmodified. Platform: openharmony, arch: arm64.
