std/README.md

92 lines
2.8 KiB
Markdown
Raw Normal View History

# Deno Standard Modules
2018-11-07 19:28:47 +00:00
2019-01-15 17:28:09 +00:00
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.
2019-01-03 16:40:09 +00:00
2019-01-15 17:28:09 +00:00
Contributions are welcome!
2019-01-03 16:40:09 +00:00
## 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](https://raw.githubusercontent.com/denoland/deno_website2/master/versions.json).
2019-01-15 17:28:09 +00:00
## How to use
2019-01-03 16:40:09 +00:00
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.
2019-01-03 16:40:09 +00:00
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.
2018-12-24 15:28:01 +00:00
2019-04-13 19:30:56 +00:00
## Documentation
To browse documentation for modules:
- Go to https://deno.land/std/.
- Navigate to any module of interest.
- Click "View Documentation".
2019-04-13 19:30:56 +00:00
2019-02-12 23:23:49 +00:00
## Contributing
2019-01-04 04:13:21 +00:00
**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](https://golang.org/pkg/).
2019-10-09 21:22:22 +00:00
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](https://deno.land/manual/contributing/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](./node/README.md)
_For maintainers_:
To release a new version a tag in the form of `x.y.z` should be added.