Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: add exports to nvmedit browser entry point #7583

Merged
merged 1 commit into from
Jan 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions packages/nvmedit/src/index_browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@

import "reflect-metadata";

export type {
NVMJSON,
NVMJSONController,
NVMJSONControllerRFConfig,
NVMJSONNode,
NVMJSONNodeWithInfo,
NVMJSONVirtualNode,
} from "./convert.js";
// FIXME: This transitively imports `semver`, which is fine to have in the browser
// Decide whether we want to add semver as a general exception to the forbidden imports rule
// eslint-disable-next-line @zwave-js/no-forbidden-imports
export {
json500To700,
json700To500,
Expand All @@ -22,8 +11,20 @@ export {
nvm500ToJSON,
nvmToJSON,
} from "./convert.js";
export type { NVM3EraseOptions, NVM3Meta } from "./lib/NVM3.js";
export type { NVM500EraseOptions, NVM500Info } from "./lib/NVM500.js";
export type {
NVMJSON,
NVMJSONController,
NVMJSONControllerRFConfig,
NVMJSONNode,
NVMJSONNodeWithInfo,
NVMJSONVirtualNode,
} from "./convert.js";
export { NVM3, type NVM3EraseOptions, type NVM3Meta } from "./lib/NVM3.js";
export {
NVM500,
type NVM500EraseOptions,
type NVM500Info,
} from "./lib/NVM500.js";
export { NVMAccess } from "./lib/common/definitions.js";
export type {
ControllerNVMProperty,
Expand All @@ -39,14 +40,17 @@ export type {
NodeNVMPropertyToDataType,
} from "./lib/common/definitions.js";
export { BufferedNVMReader } from "./lib/io/BufferedNVMReader.js";
export { NVM3Adapter } from "./lib/nvm3/adapter.js";
export {
FragmentType,
ObjectType,
PageStatus,
PageWriteSize,
} from "./lib/nvm3/consts.js";
export * from "./lib/nvm3/files/index.js";
export type { NVM3Object } from "./lib/nvm3/object.js";
export type { NVM3Page, NVM3PageHeader } from "./lib/nvm3/page.js";
export { NVM500Adapter } from "./lib/nvm500/adapter.js";
export type {
NVM500JSON,
NVM500JSONController,
Expand Down
Loading