@eyeo/remote-configuration-validator

中文文档
0.19.0发布于 2026/11/13GPL-3.0ES Module近 30 天下载 3168

eyeo's Remote Configuration Validator

原始使用文档
文档目录4 节
  1. Overview
  2. Version changes
  3. Testing
  4. Publishing

eyeo's Remote Configuration Validator

"@eyeo/remote-configuration-validator"

This is a library that validates the remote configuration file using JSON schema validation and additional, more field-specific edits.

Overview

The remote configuration file is utilized in AdBlock and Adblock Plus.

The contents of the src/ folder are:

  • imported directly by the WebEXT SDK.
  • imported into the ab-testing-config project via a GitLab project dependency.

The source code should not depend on any browser-specific APIs.

Version changes

When making changes to this code, consider adjusting the version numbers accordingly:

  • Update the schemaId property in schema/remoteConfigSchema.js whenever the JSON schema requires a breaking change.
    Warning: Changing the schema ID means that older extension versions will no longer be able to use the remote configuration anymore.
  • Update the version property in the package.json file whenever a change requires a new version to be published.
    • Breaking changes require a major version bump. These can either be breaking changes in the JSON schema or in the API of the package itself.

Testing

The unit tests go in the test/ folder and can be run with the npm run -w @eyeo/remote-configuration-validator test command.

Publishing

Whenever a change to the package.json file lands in the main branch, a CI job will automatically attempt to publish a new package version to the GitLab package registry.

The new version also needs to be published to the npm registry manually, because some projects depend on it being available there. To do so, check out the main branch after the change has landed, and run npm publish -w @eyeo/remote-configuration-validator from the root of the repository. This requires an npm account with publishing access to the @eyeo organization.

In order for schema changes to take effect, this package needs to be updated accordingly in other projects, which then need to be published separately, such as:

版本与发布记录

@eyeo/remote-configuration-validator 共发布 11 个版本,首次发布于 2025/07/15;过去 12 个月发布了 9 个版本。

版本发布日期距今
0.19.0latest2026/11/13今天
0.17.02026/11/113 天前
0.16.02026/08/202 个月前
0.15.02026/07/213 个月前
0.13.02026/06/184 个月前
0.10.02026/03/098 个月前

关于 @eyeo/remote-configuration-validator 的常见问题

@eyeo/remote-configuration-validator 是什么?

eyeo's Remote Configuration Validator

如何安装 @eyeo/remote-configuration-validator?

在项目目录运行 npm install @eyeo/remote-configuration-validator,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:mocha(10.8.2)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@eyeo/remote-configuration-validator 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/eyeo__remote-configuration-validator 是否存在。

@eyeo/remote-configuration-validator 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@eyeo/remote-configuration-validator 可以商用吗?

@eyeo/remote-configuration-validator 使用 GPL-3.0 许可。强 Copyleft:分发包含该代码的软件时,整个作品需以 GPL-3.0 兼容许可开源,并附带专利与反锁定条款。仅内部使用不触发此义务。以上为概括,不构成法律意见,请以许可原文为准。

@eyeo/remote-configuration-validator 的下载量有多少?

根据 npm 官方下载统计,@eyeo/remote-configuration-validator 在 2026/10/14 – 2026/11/12 这 30 天内被下载 3,168 次,日均约 106 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@eyeo/remote-configuration-validator 还在维护吗?

最新版本 0.19.0 发布于 2026/11/13(今天);至今共发布 11 个版本,其中过去 12 个月发布了 9 个;首次发布于 2025/07/15。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。