From 4ebd24342368adbb99582b87dc6c4b8cb6f44c87 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Mon, 25 May 2020 18:32:34 +0100 Subject: fix(std/testing/asserts): Support browsers (#5847) --- docs/contributing/style_guide.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docs') diff --git a/docs/contributing/style_guide.md b/docs/contributing/style_guide.md index ed23f31e1..0bd7c628f 100644 --- a/docs/contributing/style_guide.md +++ b/docs/contributing/style_guide.md @@ -314,3 +314,16 @@ export function foo(): string { `https://deno.land/std/` is intended to be baseline functionality that all Deno programs can rely on. We want to guarantee to users that this code does not include potentially unreviewed third party code. + +#### Document and maintain browser compatiblity. + +If a module is browser compatible, include the following in the JSDoc at the top +of the module: + +```ts +/** This module is browser compatible. */ +``` + +Maintain browser compatibility for such a module by either not using the global +`Deno` namespace or feature-testing for it. Make sure any new dependencies are +also browser compatible. -- cgit v1.2.3