The Deno Standard Library
Go to file
2022-02-16 17:18:46 +09:00
_tools chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
_util chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
_wasm_crypto chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
.github refactor(node): reduce circular dependencies under std/node and check it in CI (#1844) 2022-01-25 23:54:11 +09:00
archive chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
async chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
bytes chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
collections fix(collections/group_by): improve type safety (#1880) 2022-02-06 17:32:56 +09:00
crypto chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
datetime chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
encoding chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
examples chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
flags chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
fmt chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
fs chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
hash chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
http fix: http/_mock_conn.ts (#1926) 2022-02-15 17:38:18 +01:00
io fix(io/buffer): super and initialized prop (#1917) 2022-02-14 15:03:52 +11:00
log chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
mime chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
node feat(node): add tls.connect (#1923) 2022-02-16 12:59:53 +09:00
path docs(path/README): fix syntax highlight (#1883) 2022-02-06 18:17:09 +09:00
permissions chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
signal chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
streams chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
testing chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
textproto chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
uuid chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
wasi chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
_deno_unstable_test.ts chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
_deno_unstable.ts fix(node): add networkInterfaces to unstable (#1904) 2022-02-12 01:55:14 +09:00
.editorconfig add charset & trim_trailing_whitespace (#158) 2019-01-26 14:09:53 -05:00
.gitattributes chore: exclude node/suites/ from language statistics (#1925) 2022-02-16 17:18:46 +09:00
.gitignore fix: bypass TS errors for missing --unstable (#1819) 2022-02-01 19:16:37 +09:00
.gitmodules chore: Setup CI and tests 2021-02-01 12:20:35 +01:00
browser-compat.tsconfig.json fix: improve type safety for browser-compatible modules (#995) 2021-07-06 11:15:37 +09:00
deno.json test(node): add integration test (#1899) 2022-02-11 13:07:21 +09:00
LICENSE chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
README.md fix(docs): Added correct plural case for word "title" (#1617) 2021-11-19 22:45:41 +01:00
Releases.md 0.125.0 2022-02-03 23:46:48 +01:00
strict-ts44.tsconfig.json chore: updates related to TypeScript 4.4 (#1171) 2021-08-31 14:39:04 +10:00
test_import_map.json chore: updates related to TypeScript 4.4 (#1171) 2021-08-31 14:39:04 +10:00
version.ts 0.125.0 2022-02-03 23:46:48 +01:00

Deno Standard Modules

codecov

These modules do not have external dependencies and they are reviewed by the Deno core team. The intention is to have a standard set of high quality code that all Deno projects can use fearlessly.

Contributions are welcome!

Releases

Standard library is currently tagged independently of Deno version. This will change once the library is stabilized.

To check compatibility of different version of standard library with Deno CLI see this list.

How to use

These modules will eventually be tagged in accordance with Deno releases but as of today we do not yet consider them stable and so we version the standard modules differently from the Deno runtime to reflect this.

It is strongly recommended that you link to tagged releases to avoid unintended updates and breaking changes.

Don't link to / import any module whose path:

  • Has a name or parent with an underscore prefix: _foo.ts, _util/bar.ts.
  • Is that of a test module or test data: test.ts, foo_test.ts, testdata/bar.txt.

Don't import any symbol with an underscore prefix: export function _baz() {}.

These elements are not considered part of the public API, thus no stability is guaranteed for them.

Documentation

To browse documentation for modules:

Contributing

NOTE: This repository was unarchived and synced on Feb, 1st, 2021. If you already had it cloned, we suggest to do a fresh clone to avoid git conflicts.

deno_std is a loose port of Go's standard library. When in doubt, simply port Go's source code, documentation, and tests. There are many times when the nature of JavaScript, TypeScript, or Deno itself justifies diverging from Go, but if possible we want to leverage the energy that went into building Go. We generally welcome direct ports of Go's code.

Please ensure the copyright headers cite the code's origin.

Follow the style guide.

Opening a pull request

After cloning don't forget to git submodule update --init.

Before opening a PR make sure to:

  • Add tests that cover your changes.
  • deno test --unstable --allow-all passes.
  • deno run -A _tools/format.js passes without changing files.
  • deno run -A _tools/lint.js passes.

Give the PR a descriptive title.

Examples of good titles:

  • fix(http): Fix race condition in server
  • docs(fmt): Update docstrings
  • feat(log): Handle nested messages

Examples of bad titles:

  • fix #7123
  • update docs
  • fix bugs

Ensure there is a related issue and it is referenced in the PR text.

For contributions to the Node compatibility library please check the std/node contributing guide

About CI checks:

We currently have 9 checks on CI. Each PR should pass all of these checks to be accepted.

  • test with Deno canary on Windows
  • test with Deno canary on Linux
  • test with Deno canary on macOS
  • test Node polyfill with Deno canary on Windows
  • test Node polyfill with Deno canary on Linux
  • test Node polyfill with Deno canary on macOS
  • lint
  • wasm crypto check
  • CLA

Typechecking code in Markdown files:

If you want to run deno test --doc x.md you will need to specify the flag --import-map=test_import_map.json, this import map is in the root of deno_std.

For maintainers:

To release a new version a tag in the form of x.y.z should be added.