Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
ee11b1ac17 | |||
054cbb6b3c | |||
ecf11efb4c | |||
1de674e91d |
14
changelog.md
14
changelog.md
@@ -1,5 +1,19 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-10-10 - 2.4.2 - fix(deno)
|
||||||
|
Enable additional Deno permissions for runtime adapters and add local dev settings
|
||||||
|
|
||||||
|
- Add --allow-sys, --allow-import and --node-modules-dir to the default Deno permission set used by the Deno runtime adapter
|
||||||
|
- Include the new permission flags in the fallback permissions array when constructing Deno command args
|
||||||
|
- Add .claude/settings.local.json to capture local development permissions and helper commands
|
||||||
|
|
||||||
|
## 2025-10-10 - 2.4.1 - fix(runtime/deno)
|
||||||
|
Enable Deno runtime tests by adding required permissions and local settings
|
||||||
|
|
||||||
|
- ts/tstest.classes.runtime.deno.ts: expanded default Deno permissions to include --allow-net, --allow-write and --sloppy-imports to allow network access, file writes and permissive JS/TS imports
|
||||||
|
- ts/tstest.classes.runtime.deno.ts: updated fallback permissions used when building the Deno command to match the new default set
|
||||||
|
- Added .claude/settings.local.json with a set of allowed local commands/permissions used for local development/CI tooling
|
||||||
|
|
||||||
## 2025-10-10 - 2.4.0 - feat(runtime)
|
## 2025-10-10 - 2.4.0 - feat(runtime)
|
||||||
Add runtime adapters, filename runtime parser and migration tool; integrate runtime selection into TsTest and add tests
|
Add runtime adapters, filename runtime parser and migration tool; integrate runtime selection into TsTest and add tests
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@git.zone/tstest",
|
"name": "@git.zone/tstest",
|
||||||
"version": "2.4.0",
|
"version": "2.4.2",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a test utility to run tests that match test/**/*.ts",
|
"description": "a test utility to run tests that match test/**/*.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/tstest',
|
name: '@git.zone/tstest',
|
||||||
version: '2.4.0',
|
version: '2.4.2',
|
||||||
description: 'a test utility to run tests that match test/**/*.ts'
|
description: 'a test utility to run tests that match test/**/*.ts'
|
||||||
}
|
}
|
||||||
|
@@ -33,7 +33,16 @@ export class DenoRuntimeAdapter extends RuntimeAdapter {
|
|||||||
protected getDefaultOptions(): DenoOptions {
|
protected getDefaultOptions(): DenoOptions {
|
||||||
return {
|
return {
|
||||||
...super.getDefaultOptions(),
|
...super.getDefaultOptions(),
|
||||||
permissions: ['--allow-read', '--allow-env'],
|
permissions: [
|
||||||
|
'--allow-read',
|
||||||
|
'--allow-env',
|
||||||
|
'--allow-net',
|
||||||
|
'--allow-write',
|
||||||
|
'--allow-sys', // Allow system info access
|
||||||
|
'--allow-import', // Allow npm/node imports
|
||||||
|
'--node-modules-dir', // Enable Node.js compatibility mode
|
||||||
|
'--sloppy-imports', // Allow .js imports to resolve to .ts files
|
||||||
|
],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,7 +90,16 @@ export class DenoRuntimeAdapter extends RuntimeAdapter {
|
|||||||
const args: string[] = ['run'];
|
const args: string[] = ['run'];
|
||||||
|
|
||||||
// Add permissions
|
// Add permissions
|
||||||
const permissions = mergedOptions.permissions || ['--allow-read', '--allow-env'];
|
const permissions = mergedOptions.permissions || [
|
||||||
|
'--allow-read',
|
||||||
|
'--allow-env',
|
||||||
|
'--allow-net',
|
||||||
|
'--allow-write',
|
||||||
|
'--allow-sys',
|
||||||
|
'--allow-import',
|
||||||
|
'--node-modules-dir',
|
||||||
|
'--sloppy-imports',
|
||||||
|
];
|
||||||
args.push(...permissions);
|
args.push(...permissions);
|
||||||
|
|
||||||
// Add config file if specified
|
// Add config file if specified
|
||||||
|
Reference in New Issue
Block a user