@dojo/framework

中文文档
8.0.0发布于 2021/07/30BSD-3-Clause近 30 天下载 3555

The Dojo Framework

原始使用文档
文档目录15 节
  1. Sub-packages within @dojo/framework
  2. External packages
  3. Dojo CLI
  4. Support Packages
  5. Migrating Versions
  6. Version 2.x to 3.x Migration Guide
  7. Version 3.x to 4.x Migration Guide
  8. Version 4.x to 5.x Migration Guide
  9. Version 5.x to 6.x Migration Guide
  10. Version 6.x to 7.x Migration Guide
  11. Examples
  12. Guidelines and Style Guide
  13. Dependent Technologies
  14. TypeScript and Dojo Compatibility Matrix
  15. Licensing information

@dojo/framework

Build Status codecov npm version Join the chat at https://discordapp.com/invite/M7yRngE

Dojo is a progressive framework for modern web applications built with TypeScript.

Visit us at dojo.io for documentation, tutorials, cookbooks, and other materials. This repository contains detailed information on the structure of Dojo, while dojo.io is focused on getting started with and learning Dojo.

Sub-packages within @dojo/framework

There are seven sub-packages that form the framework for building a Dojo application:

  • dojo/core - The foundational code of the Dojo framework
  • dojo/has - A feature detection library
  • dojo/i18n - A set of internationalization tooling
  • dojo/routing - A routing service to build web applications with
  • dojo/shim - Modules that provide fills of ES6+ functionality
  • dojo/stores - A lightweight state container
  • dojo/testing - A set of modules to help with testing Dojo

External packages

We have additional packages within the Dojo ecosystem to aid in quickly and easily creating Dojo apps:

Dojo CLI

Support Packages

There are several packages which are designed to support the Dojo platform. Generally these packages are not directly used by end developers:

  • dojo/scripts - A package of scripts to aid with Dojo package development.
  • dojo/webpack-contrib - Specialized webpack loaders and plugins used by the Dojo toolchain.

Migrating Versions

Version 2.x to 3.x Migration Guide

See the v3 migration guide for details on upgrading from version 2.x to version 3.x.

Version 3.x to 4.x Migration Guide

See the v4 migration guide for details on upgrading from version 3.x to version 4.x.

Version 4.x to 5.x Migration Guide

See the v5 migration guide for details on upgrading from version 4.x to version 5.x.

Version 5.x to 6.x Migration Guide

See the v6 migration guide for details on upgrading from version 5.x to version 6.x.

Version 6.x to 7.x Migration Guide

See the v7 migration guide for details on upgrading from version 6.x to version 7.x.

Examples

We have added a repository of examples which have been built on Dojo. Those examples are available in the dojo/examples repository and are live at dojo.github.io/examples.

Guidelines and Style Guide

There are several documents that are relevant for contributing to Dojo.

Dependent Technologies

While Dojo tries to provide a holistic set of tools to build web applications, there are several key technologies where we feel that Dojo would be better integrating and building upon versus building from the ground up.

In order to ensure that Dojo is a solid set of JavaScript tools and libraries, Dojo is built on TypeScript. This provides us with structural design time typing as well as an effective way to communicate the intent of the Dojo APIs. It also provides us the ability to adopt ES6+ syntax features but make distributables that will be backwards compatible to the target browsers for Dojo.

TypeScript and Dojo Compatibility Matrix

TypeScript and Dojo both iterate rapidly. In general Dojo strives for maximum compatibility, with a plan to periodically increase the minimum TypeScript version so we can begin relying on newer TypeScript features. Please review this list when using Dojo:

Dojo versionTypeScript version (minimum)TypeScript version (maximum)
3.02.6.x2.6.x
4.02.6.x3.1.x
5.02.6.x3.2.x
6.03.4.53.4.5
7.03.4.53.8.x

Licensing information

© 2020 OpenJS Foundation & contributors. New BSD license.

版本与发布记录

@dojo/framework 共发布 95 个版本,首次发布于 2018/07/19;过去 12 个月发布了 0 个版本。

版本发布日期距今
8.0.0latest2021/07/305 年前
8.0.0-rc.12021/07/275 年前
8.0.0-beta.72021/06/225 年前
8.0.0-beta.62021/05/195 年前
8.0.0-beta.52021/05/125 年前
8.0.0-beta.42021/03/225 年前

其他发布通道:v4-next → 4.0.3,v5-next → 5.0.4,v6-next → 6.0.6,v7-next → 7.0.5。

关于 @dojo/framework 的常见问题

@dojo/framework 是什么?

The Dojo Framework

如何安装 @dojo/framework?

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

@dojo/framework 支持 TypeScript 吗?

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

@dojo/framework 可以商用吗?

@dojo/framework 使用 BSD-3-Clause 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。另外不得用原作者名义为衍生产品背书。以上为概括,不构成法律意见,请以许可原文为准。

@dojo/framework 的下载量有多少?

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

@dojo/framework 还在维护吗?

最新版本 8.0.0 发布于 2021/07/30(5 年前);至今共发布 95 个版本,其中过去 12 个月发布了 0 个;首次发布于 2018/07/19。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。