The Deno Standard Library
Go to file
2021-10-24 13:12:18 +02:00
_util fix(node/_tools): fix node test setup script (#1422) 2021-10-20 00:22:07 +09:00
_wasm_crypto fix: update to latest signal API changes (#1211) 2021-09-15 01:32:26 +02:00
.github chore: add config file for lint and fmt (#1395) 2021-10-13 23:37:57 +09:00
archive feat: streams utilities (#1141) 2021-10-12 11:51:48 +02: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 feat(collections/running_reduce): support currentIndex (#1431) 2021-10-20 13:35:27 +09:00
crypto docs(crypto): update README.md exaples (#1447) 2021-10-23 01:07:17 +09:00
datetime fix(datetime): fix dayOfYear for the southern hemisphere (#1384) 2021-10-14 02:06:32 +09:00
encoding feat: streams utilities (#1141) 2021-10-12 11:51:48 +02:00
examples chore: fmt (#1393) 2021-10-13 20:38:54 +09:00
flags chore: wrap examples in fenced code blocks (#1222) 2021-09-13 00:14:54 +09:00
fmt chore: wrap examples in fenced code blocks (#1222) 2021-09-13 00:14:54 +09:00
fs fix(fs/expand_glob): don't parse root as glob (#1417) 2021-10-18 03:04:24 +09:00
hash chore: deprecate std/hash (#1350) 2021-10-06 12:01:31 +09:00
http docs(http/http_status): add documents for http_status.ts (#1451) 2021-10-24 14:05:22 +09:00
io chore(io): better deprecation message (#1432) 2021-10-20 00:20:09 +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): show warning when using import/export in CJS module (#1452) 2021-10-24 13:12:18 +02:00
path chore: remove =c: env var usage (#1353) 2021-10-06 00:50:24 +09:00
permissions test(permissions): add invalid case (#1314) 2021-09-27 18:57:52 +09:00
signal fix: update to latest signal API changes (#1211) 2021-09-15 01:32:26 +02:00
streams feat: streams utilities (#1141) 2021-10-12 11:51:48 +02:00
testing feat(testing): add assertIsError (#1376) 2021-10-24 14:08:48 +09:00
textproto BREAKING(io): Reorganize modules (#813) 2021-10-08 03:42:33 +02:00
uuid BREAKING std/uuid: rework v4 and v5 module (#971) 2021-07-09 14:27:41 +02:00
wasi feat: streams utilities (#1141) 2021-10-12 11:51:48 +02:00
ws BREAKING(io): Reorganize modules (#813) 2021-10-08 03:42:33 +02: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 chore(node): upgrade Node.js version from 15.5.1 to 16.11.1 (#1405) 2021-10-16 02:00:56 +09:00
LICENSE chore: update README and LICENSE (#634) 2021-02-01 12:43:02 +01:00
README.md docs: Remind contributors to initiate submodules (#1367) 2021-10-10 14:24:58 +02:00
Releases.md 0.112.0 2021-10-18 11:22:31 -04: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.112.0 2021-10-18 11:22:31 -04: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 fmt --check passes without changing files.
  • deno lint --unstable passes.

Give the PR a descriptive title.

Examples of good title:

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

Examples of bad title:

  • 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 6 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
  • 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.