Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependency updates #528

Merged
merged 4 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
},
"dependencies": {
"@astrojs/check": "^0.7.0",
"@astrojs/starlight": "^0.23.2",
"astro": "^4.9.3",
"@astrojs/starlight": "^0.24.1",
"astro": "^4.10.1",
"typescript": "5.4.5"
},
"devDependencies": {
Expand Down
15 changes: 15 additions & 0 deletions docs/src/content/docs/reference/scripts/files.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,18 @@ By default, files are resolved relative to the workspace root. You can use the `
const cur = path.dirname(env.spec.filename)
const fs = path.join(cur, "myfile.md)
```

### globs

File path "globs" are patterns used to match file and directory names. They are commonly used in Unix-like operating systems and programming languages to specify sets of filenames with wildcard characters. This tutorial will cover the basics of using globs in file paths with workspace.findFiles.

Glob patterns can have the following syntax:

- `*` to match zero or more characters in a path segment
- `?` to match on one character in a path segment
- `**` to match any number of path segments, including none
- `{}` to group conditions (e.g. `**/*.{ts,js}` matches all TypeScript and JavaScript files)
- `[]` to declare a range of characters to match in a path segment (e.g., `example.[0-9]` to match on example.0, example.1, …)
- `[!...]` to negate a range of characters to match in a path segment (e.g., `example.[!0-9]` to match on example.a, example.b, but not example.0)

Note: a backslash (`\`\``) is not valid within a glob pattern. If you have an existing file path to match against, consider to use the relative pattern support that takes care of converting any backslash into slash. Otherwise, make sure to convert any backslash to slash when creating the glob pattern.
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@azure/identity": "^4.2.0",
"dockerode": "^4.0.2",
"pdfjs-dist": "4.3.136",
"promptfoo": "^0.62.1",
"promptfoo": "^0.63.0",
"tree-sitter-wasms": "^0.1.11",
"typescript": "5.4.5",
"web-tree-sitter": "^0.22.2",
Expand All @@ -52,8 +52,8 @@
"@types/ws": "^8.5.10",
"commander": "^12.1.0",
"dotenv": "^16.4.5",
"esbuild": "^0.21.4",
"execa": "^9.1.0",
"esbuild": "^0.21.5",
"execa": "^9.2.0",
"file-type": "^19.0.0",
"fs-extra": "^11.2.0",
"genaiscript-core": "*",
Expand Down
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
"@types/html-escaper": "^3.0.2",
"@types/html-to-text": "^9.0.4",
"@types/inflection": "^1.13.2",
"@types/ini": "^4.1.0",
"@types/ini": "^4.1.1",
"@types/mime-types": "^2.1.4",
"@types/node": "^20.14.2",
"ajv": "^8.16.0",
"cross-fetch": "^4.0.0",
"csv-parse": "^5.5.6",
"dotenv": "^16.4.5",
"esbuild": "^0.21.4",
"esbuild": "^0.21.5",
"fast-xml-parser": "^4.4.0",
"fetch-retry": "^6.0.0",
"fflate": "^0.8.2",
Expand Down Expand Up @@ -57,7 +57,7 @@
"ts-dedent": "^2.2.0",
"typescript": "5.4.5",
"xlsx": "^0.18.5",
"yaml": "^2.4.3"
"yaml": "^2.4.5"
},
"scripts": {
"typecheck": "tsc -p src",
Expand Down
13 changes: 6 additions & 7 deletions packages/core/src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
FETCH_RETRY_MAX_DELAY_DEFAULT,
} from "./constants"
import { errorMessage } from "./error"
import { toStringList } from "./util"
import { logVerbose, toStringList } from "./util"

export async function createFetch(
options?: {
Expand Down Expand Up @@ -37,13 +37,12 @@ export async function createFetch(
return undefined
const message = errorMessage(error)
const delay = Math.min(maxDelay, Math.pow(2, attempt) * retryDelay)
trace?.resultItem(
false,
toStringList(
message,
`retry #${attempt + 1} in ${Math.floor(delay) / 1000}s`
)
const msg = toStringList(
message,
`retry #${attempt + 1} in ${Math.floor(delay) / 1000}s`
)
logVerbose(msg)
trace?.resultItem(false, msg)
return delay
},
})
Expand Down
4 changes: 2 additions & 2 deletions packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@
"@microsoft/vscode-azext-azureauth": "^2.4.1",
"@types/mocha": "^10.0.6",
"@types/vscode": "^1.90.0",
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@typescript-eslint/parser": "^7.9.0",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.13.0",
"@vscode/test-web": "^0.0.54",
"@vscode/vsce": "^2.27.0",
"assert": "^2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion slides/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dev": "slidev --open"
},
"dependencies": {
"@slidev/cli": "^0.49.9",
"@slidev/cli": "^0.49.10",
"@slidev/theme-default": "latest",
"@slidev/theme-seriph": "latest",
"vue": "^3.4.27"
Expand Down
Loading
Loading