The Deno Standard Library
Go to file
2023-08-25 17:23:41 +09:00
_tools BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
_util refactor: move _util/diff to assert/_diff (#3563) 2023-08-23 16:45:32 +09:00
.devcontainer chore: add development container configuration (#1938) 2022-02-21 14:23:43 +11:00
.github BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
archive BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
assert refactor: move _util/diff to assert/_diff (#3563) 2023-08-23 16:45:32 +09:00
async fix(async/delay): reject with existing AbortSignal reason (#3479) 2023-07-14 14:03:05 +09:00
bytes BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
collections fix(collections): redblack tree and bst not being exported from mod (#3528) 2023-08-11 15:34:55 +09:00
console BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
crypto BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
csv BREAKING(streams): deprecate readableStreamFromIterable (#3486) 2023-07-17 15:08:20 +09:00
datetime BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
dotenv docs(dotenv): improve dotenv config option description (#3570) 2023-08-24 13:02:17 +09:00
encoding BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
flags BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
fmt chore(examples): remove examples folder (#3546) 2023-08-18 21:31:38 +09:00
front_matter BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
fs docs(fs/walk): add descriptions to WalkOptions's properties (#3535) 2023-08-14 18:10:17 +09:00
html BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
http perf: repoint internal imports to single-export files (#3537) 2023-08-14 16:08:42 +09:00
io BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
json chore: revert test fix temporarily (#3574) 2023-08-24 09:33:02 -06:00
jsonc BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
log fix(log): fix serializing BigInt value in object (#3550) 2023-08-21 13:26:58 +09:00
media_types docs: fix error in parse_media_type.ts example (#3520) 2023-08-08 16:21:05 +09:00
msgpack feat: msgpack encoding (#3460) 2023-07-10 12:09:49 +09:00
path fix(path): typo in comment in _resolve (#3545) 2023-08-17 12:53:10 +09:00
permissions BREAKING(permissions): deprecate permissions module (#3567) 2023-08-25 17:20:02 +09:00
regexp BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
semver BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
signal BREAKING(signal): deprecate signal module (#3568) 2023-08-25 17:23:41 +09:00
streams BREAKING(streams): deprecate readableStreamFromIterable (#3486) 2023-07-17 15:08:20 +09:00
testing refactor: move _util/diff to assert/_diff (#3563) 2023-08-23 16:45:32 +09:00
toml fix(toml/parse): fix edge cases (#3509) 2023-07-30 18:23:34 +09:00
uuid BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
wasi perf: repoint internal imports to single-export files (#3537) 2023-08-14 16:08:42 +09:00
yaml BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
.editorconfig chore(node): add asn1.js (#1971) 2022-02-28 20:55:56 +09:00
.gitattributes Remove std/node, it was merged into Deno itself (#3206) 2023-02-22 10:28:55 -05:00
.gitignore feat(console): add unicodeWidth for TTY text layout (#3297) 2023-04-18 16:13:58 +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 chore: parallel tests (#3446) 2023-07-23 17:47:21 +09:00
LICENSE chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
README.md BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
Releases.md 0.200.0 (#3573) 2023-08-24 09:42:09 -06:00
types.d.ts chore(tools): improved web-compatibility checks (#3263) 2023-03-18 21:36:00 +09:00
version.ts 0.200.0 (#3573) 2023-08-24 09:42:09 -06: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:

  • have the latest Deno version installed locally
  • add tests that cover your changes.
  • deno task test passes.
  • deno fmt --check passes.
  • deno task lint passes.
  • (optionally) check for typos with deno task typos (requires typos to be installed)

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.

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

For maintainers:

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

Types

Deno is moving away from non-native IO functions and interfaces in favor of the Streams API. These types are to be defined here, in the Standard Library, instead of in the Deno namespace in the future. As a rule, use the following corresponding and identical types from types.d.ts:

  • Deno.Reader
  • Deno.Writer
  • Deno.ReaderSync
  • Deno.WriterSync
  • Deno.Closer

See the tracking issue here.