The Deno Standard Library
Go to file
Aaron O'Mullan d4145b7c7e
fix(tests/yaml): expect !!js/function parse/stringify to throw (#1276)
* fix(tests/yaml): expect !!js/function parse/stringify to throw

Following #1275
2021-09-14 15:55:34 +02:00
_util refactor: use native hasOwn (#1177) 2021-09-02 13:23:41 +09:00
_wasm_crypto chore: upgrade Rust to 1.55.0 (#1218) 2021-09-10 14:02:33 +09:00
.github chore: upgrade Rust to 1.55.0 (#1218) 2021-09-10 14:02:33 +09:00
archive docs: correct typos (#1207) 2021-09-07 16:40:05 +09:00
async chore: wrap examples in fenced code blocks (#1222) 2021-09-13 00:14:54 +09:00
bytes docs: correct typos (#1207) 2021-09-07 16:40:05 +09:00
collections docs(collections): avoid using relative paths in import statements in code examples (#1227) 2021-09-13 14:46:42 +09:00
crypto fix(crypto): make crypto bench depend on sibling version of testing module (#1135) 2021-08-16 11:53:42 +09:00
datetime docs(datetime): fix example in README (#1199) 2021-09-02 18:35:16 +09:00
encoding fix(tests/yaml): expect !!js/function parse/stringify to throw (#1276) 2021-09-14 15:55:34 +02:00
examples docs: reduce friction for windows users r.e. 0.0.0.0 (#1210) 2021-09-07 16:29:44 +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 chore: wrap examples in fenced code blocks (#1222) 2021-09-13 00:14:54 +09:00
hash chore: upgrade Rust to 1.55.0 (#1218) 2021-09-10 14:02:33 +09:00
http docs(http/cookie): improve jsdoc (#1231) 2021-09-13 19:20:06 +09:00
io feat(io/streams): propagate cancel in readableStreamFromIterable() (#1274) 2021-09-14 14:07:32 +09:00
log fix: type check examples in README files (#1121) 2021-08-11 11:28:10 +02:00
mime docs: correct typos (#1207) 2021-09-07 16:40:05 +09:00
node chore: wrap examples in fenced code blocks (#1222) 2021-09-13 00:14:54 +09:00
path chore: wrap examples in fenced code blocks (#1222) 2021-09-13 00:14:54 +09:00
permissions chore: wrap examples in fenced code blocks (#1222) 2021-09-13 00:14:54 +09:00
signal chore: wrap examples in fenced code blocks (#1222) 2021-09-13 00:14:54 +09:00
testing docs: correct typos (#1207) 2021-09-07 16:40:05 +09:00
textproto chore: updates related to TypeScript 4.4 (#1171) 2021-08-31 14:39:04 +10:00
uuid BREAKING std/uuid: rework v4 and v5 module (#971) 2021-07-09 14:27:41 +02:00
wasi chore: updates related to TypeScript 4.4 (#1171) 2021-08-31 14:39:04 +10:00
ws docs: correct typos (#1207) 2021-09-07 16:40:05 +09: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
LICENSE chore: update README and LICENSE (#634) 2021-02-01 12:43:02 +01:00
README.md doc: add an explanation about how to test markdown files (#1221) 2021-09-10 21:10:35 +09:00
Releases.md 0.106.0 (#1155) 2021-08-23 18:18:04 -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.106.0 (#1155) 2021-08-23 18:18:04 -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

Before opening a PR make sure to:

  • there are tests that cover the 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 9 checks on CI. You need to pass the following 6 checks for your PR to be accepted:

  • test with Deno 1.x on Windows
  • test with Deno 1.x on Linux
  • test with Deno 1.x on macOS
  • lint
  • wasm crypto check
  • CLA

You don't need to pass the following 3 checks (These are informative checks for maintainers):

  • test with Deno canary on Windows
  • test with Deno canary on Linux
  • test with Deno canary on macOS

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.