Skip to content

Commit

Permalink
Merge branch 'main' into functions-module
Browse files Browse the repository at this point in the history
  • Loading branch information
guy-borderless authored Jan 11, 2025
2 parents 8bedf0b + 2604b37 commit 11f3a3a
Show file tree
Hide file tree
Showing 41 changed files with 1,279 additions and 579 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ jobs:
with:
node-version: ${{ matrix.node }}

- run: npm install
working-directory: _tools/node_test_runner

- name: Run tests
run: deno task test:node

Expand Down
55 changes: 54 additions & 1 deletion Releases.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,56 @@
### 2025.01.10

#### @std/cbor 0.1.5 (patch)

- perf(cbor): improve decodeCbor & decodeCborSequence performance (#6323)
- perf(cbor): encodeCbor & encodeCborSequence (#6311)

#### @std/cli 1.0.10 (patch)

- docs(cli): add examples of parseArgs (#6283)

#### @std/data-structures 1.0.6 (patch)

- fix(data-structures): ensure size consistency in RedBlackTree.from (#6307)

#### @std/datetime 0.225.3 (patch)

- fix(datetime): correct parsing of day period (#6313)
- docs(datetime): remove outdated mention of `utc` option (#6301)

#### @std/expect 1.0.11 (patch)

- fix(expect): consistent `toBeCloseTo` assertion messages (#6291)
- docs(expect,text): remove no-eval directives that appear to be unnecessary
(#6333)
- docs(expect): correct minor typo (#6329)
- docs(expect): clarify the tolerance in `toBeCloseTo` (#6292)

#### @std/fmt 1.0.4 (patch)

- fix(fmt): add correct pluralization to fmt/duration when using style: full
(#6295)
- refactor(fmt): cleanup duration `format()` and utils (#6309)
- test(fmt): add invalid duration `style` option test (#6310)

#### @std/fs 1.0.9 (patch)

- feat(fs/unstable): add statSync and lstatSync (#6300)
- test(fs): do not write files in source tree during test (#6236)

#### @std/log 0.224.13 (patch)

- test(log): re-enable doc tests for `FileHandler` (#6321)

#### @std/testing 1.0.9 (patch)

- docs(testing): clarify beforeAll in describe vs. outside (#6294)

#### @std/text 1.0.10 (patch)

- docs(expect,text): remove no-eval directives that appear to be unnecessary
(#6333)

### 2024.12.20

#### @std/fs 1.0.8 (patch)
Expand Down Expand Up @@ -115,7 +168,7 @@

### 2024.11.22

### @std/archive
#### @std/archive

- BREAKING(archive): remove std/archive package (#6185)

Expand Down
3 changes: 3 additions & 0 deletions _tools/check_docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ const ENTRY_POINTS = [
"../front_matter/mod.ts",
"../front_matter/unstable_yaml.ts",
"../fs/mod.ts",
"../fs/unstable_lstat.ts",
"../fs/unstable_stat.ts",
"../fs/unstable_types.ts",
"../html/mod.ts",
"../html/unstable_is_valid_custom_element_name.ts",
"../http/mod.ts",
Expand Down
2 changes: 1 addition & 1 deletion _tools/check_mod_exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ for await (
const { path: modFilePath } of walk(ROOT, {
includeDirs: true,
exts: ["ts"],
match: [/mod\.ts$/],
match: [/(\/|\\)mod\.ts$/],
maxDepth: 2,
})
) {
Expand Down
30 changes: 0 additions & 30 deletions _tools/node_test_runner/deno_compat_hooks.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright 2018-2025 the Deno authors. MIT license.

import { transform } from "sucrase";
import { readFile } from "node:fs/promises";
import * as path from "node:path";
import { pathToFileURL } from "node:url";
Expand All @@ -21,32 +20,3 @@ export async function resolve(specifier, context, nextResolve) {

return await nextResolve(specifier, context);
}

export async function load(specifier, context, nextLoad) {
const { format, source } = await nextLoad(specifier, context).catch(
async (error) => {
if (
error.code === "ERR_UNKNOWN_FILE_EXTENSION" &&
specifier.endsWith(".ts")
) {
return await nextLoad(specifier, {
...context,
format: "module",
});
} else {
throw error;
}
},
);

if (source && specifier.endsWith(".ts")) {
return {
format,
source: encoder.encode(
transform(decoder.decode(source), { transforms: ["typescript"] }).code,
),
};
}

return { format, source };
}
6 changes: 4 additions & 2 deletions _tools/node_test_runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"name": "node_test_runner",
"private": true,
"dependencies": {
"@deno/shim-deno-test": "^0.5.0",
"sucrase": "^3.35.0"
"@deno/shim-deno-test": "^0.5.0"
},
"engines": {
"node": ">=23.6.0"
}
}
Loading

0 comments on commit 11f3a3a

Please sign in to comment.