@effect/data

中文文档
0.18.7发布于 2023/09/28MITTypeScriptESM + CJS零依赖近 30 天下载 39.5万

Functional programming in TypeScript

此软件包已被标记为弃用

this package has been merged into the main effect package

原始使用文档
文档目录5 节
  1. Reporting Bugs
  2. Suggesting Enhancements
  3. Pull Requests
  4. Pull Request Guidelines
  5. License

Installation

To install the alpha version:

npm install @effect/data

Warning. This package is primarily published to receive early feedback and for contributors, during this development phase we cannot guarantee the stability of the APIs, consider each release to contain breaking changes.

Requirements

  • TypeScript 5.0 or newer
  • The strict flag enabled in your tsconfig.json file
{
  // ...
  "compilerOptions": {
    // ...
    "strict": true,
  }
}

Documentation (WIP)

License

The MIT License (MIT)

Contributing Guidelines

Thank you for considering contributing to our project! Here are some guidelines to help you get started:

Reporting Bugs

If you have found a bug, please open an issue on our issue tracker and provide as much detail as possible. This should include:

  • A clear and concise description of the problem
  • Steps to reproduce the problem
  • The expected behavior
  • The actual behavior
  • Any relevant error messages or logs

Suggesting Enhancements

If you have an idea for an enhancement or a new feature, please open an issue on our issue tracker and provide as much detail as possible. This should include:

  • A clear and concise description of the enhancement or feature
  • Any potential benefits or use cases
  • Any potential drawbacks or trade-offs

Pull Requests

We welcome contributions via pull requests! Here are some guidelines to help you get started:

  1. Fork the repository and clone it to your local machine.
  2. Create a new branch for your changes: git checkout -b my-new-feature
  3. Install dependencies: pnpm install ([email protected])
  4. Make your changes and add tests if applicable.
  5. Run the tests: pnpm test
  6. Create a changeset for your changes: before committing your changes, create a changeset to document the modifications. This helps in tracking and communicating the changes effectively. To create a changeset, run the following command: pnpm changeset.
  7. Commit your changes: after creating the changeset, commit your changes with a descriptive commit message: git commit -am 'Add some feature'.
  8. Push your changes to your fork: git push origin my-new-feature.
  9. Open a pull request against our main branch.

Pull Request Guidelines

  • Please make sure your changes are consistent with the project's existing style and conventions.
  • Please write clear commit messages and include a summary of your changes in the pull request description.
  • Please make sure all tests pass and add new tests as necessary.
  • If your change requires documentation, please update the relevant documentation.
  • Please be patient! We will do our best to review your pull request as soon as possible.

License

By contributing to this project, you agree that your contributions will be licensed under the project's MIT License.

版本与发布记录

@effect/data 共发布 79 个版本,首次发布于 2023/02/07;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.18.7latest2023/09/283 年前
0.18.62023/09/223 年前
0.18.52023/09/083 年前
0.18.42023/09/063 年前
0.18.32023/09/013 年前
0.18.22023/09/013 年前

关于 @effect/data 的常见问题

@effect/data 是什么?

Functional programming in TypeScript注意:该包已被作者标记为弃用——this package has been merged into the main effect package

如何安装 @effect/data?

在项目目录运行 npm install @effect/data,或使用 pnpm add / yarn add / bun add。

@effect/data 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@effect/data 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@effect/data 可以商用吗?

@effect/data 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@effect/data 的下载量有多少?

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

@effect/data 还在维护吗?

最新版本 0.18.7 发布于 2023/09/28(3 年前);至今共发布 79 个版本,其中过去 12 个月发布了 0 个;首次发布于 2023/02/07。作者已将其标记为弃用,新项目建议寻找替代方案。