The Deno Standard Library
Go to file
2022-01-04 07:01:24 +01:00
_tools ci: fix lint and format scripts (#1576) 2021-11-15 13:22:27 +01:00
_util BREAKING(http): remove Go-style address (#1660) 2021-12-14 00:38:32 +09:00
_wasm_crypto feat(crypto): add Tiger hash (#1749) 2021-12-24 18:35:28 +09:00
.github test: do not require NODE_EXTRA_CA_CERTS env var (#1757) 2021-12-24 18:19:14 +09:00
archive perf: use Array.from instead of new Array (#1551) 2021-11-11 10:21:06 +01:00
async fix(std/async): fix async/tee concurent .next calls error (#1425) 2021-10-20 14:18:58 +09:00
bytes perf(bytes): switch equals to simd for large byte arrays (#1349) 2021-10-07 02:10:43 +09:00
collections revert(collection): Remove findLastIndex from std/collections (#1528) 2021-12-13 16:51:32 +01:00
crypto chore(crypto): export interface for docs (#1781) 2022-01-03 16:17:25 +01:00
datetime fix(datetime): fix bug for parse at the end of the month (#1676) 2021-12-08 15:07:29 +09:00
encoding feat(toml): align keys by option (#1693) 2021-12-09 23:15:38 +09:00
examples fix(examples/chat): fix applyState call (#1760) 2021-12-25 01:27:51 +09:00
flags chore: wrap examples in fenced code blocks (#1222) 2021-09-13 00:14:54 +09:00
fmt Revert "chore: skip fmt/colors test (#1700)" (#1709) 2021-12-15 12:55:28 +09:00
fs fix(path): change default of 'extended' options of glob methods (#1719) 2021-12-23 14:32:12 +09:00
hash feat(hash): add Tiger hash (#1729) 2021-12-22 13:55:49 +09:00
http fix: http/bench.ts (#1776) 2022-01-02 12:02:20 +01:00
io chore(node/buffer): convert to js private variables (#1655) 2021-11-30 14:18:28 +09:00
log BREAKING(io): Reorganize modules (#813) 2021-10-08 03:42:33 +02:00
mime feat: streams utilities (#1141) 2021-10-12 11:51:48 +02:00
node fix(node): improve util.isDeepStrictEqual (#1765) 2021-12-27 16:34:51 +09:00
path fix(path): change default of 'extended' options of glob methods (#1719) 2021-12-23 14:32:12 +09:00
permissions test(permissions): add invalid case (#1314) 2021-09-27 18:57:52 +09:00
signal [BREAKING] Remove onSignal from 'signals/' (#1644) 2021-12-13 13:50:30 +01:00
streams [BREAKING] Remove 'server_legacy' from 'http' module (#1648) 2021-12-13 14:18:17 +01:00
testing fix(testing/assert): inequality of -0 and 0 (#1783) 2022-01-04 07:01:24 +01:00
textproto BREAKING(io): Reorganize modules (#813) 2021-10-08 03:42:33 +02:00
uuid feat(uuid): add function to detect RFC version of a UUID (#1766) 2021-12-28 16:28:23 +01:00
wasi Remove copy.ts from fs/mod.ts (#1583) 2021-11-15 21:49:00 -05:00
.editorconfig add charset & trim_trailing_whitespace (#158) 2019-01-26 14:09:53 -05:00
.gitattributes chore: Setup CI and tests 2021-02-01 12:20:35 +01:00
.gitignore feat(crypto): add std/crypto wrapping and extending runtime WebCrypto (#1025) 2021-07-29 04:37:02 -07: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 feat(node): add http.request (#1712) 2021-12-16 19:42:33 +09:00
LICENSE chore: update README and LICENSE (#634) 2021-02-01 12:43:02 +01:00
README.md fix(docs): Added correct plural case for word "title" (#1617) 2021-11-19 22:45:41 +01:00
Releases.md 0.119.0 2021-12-22 16:28:35 +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.119.0 2021-12-22 16:28:35 +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.