Skip to content

Commit 95f40c4

Browse files
authored
Merge pull request #40 from getlang-dev/upgrade-deps
upgrade deps
2 parents 3dedf1b + 70cb95b commit 95f40c4

29 files changed

Lines changed: 65 additions & 51 deletions

.changeset/loud-signs-wear.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@getlang/parser": patch
3+
"@getlang/utils": patch
4+
"@getlang/get": patch
5+
"@getlang/lib": patch
6+
---
7+
8+
upgrade deps

biome.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
{
22
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
33
"files": {
4-
"include": ["packages/**/*", "test/**/*"],
5-
"ignore": ["packages/parser/src/grammar.ts"]
4+
"includes": [
5+
"packages/**/*",
6+
"test/**/*",
7+
"!packages/parser/src/grammar.ts"
8+
]
69
},
7-
"organizeImports": {
8-
"enabled": true
10+
"assist": {
11+
"actions": {
12+
"source": {
13+
"organizeImports": "on"
14+
}
15+
}
916
},
1017
"formatter": {
1118
"enabled": true,

bun.lockb

5.98 KB
Binary file not shown.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "get",
33
"license": "Apache-2.0",
44
"private": true,
5-
"packageManager": "bun@1.2.2",
5+
"packageManager": "bun@1.2.20",
66
"scripts": {
77
"fmt": "biome check --write",
88
"lint": "bun lint:check && bun lint:types && bun lint:unused && bun lint:repo",
@@ -18,12 +18,12 @@
1818
"test"
1919
],
2020
"devDependencies": {
21-
"@biomejs/biome": "^1.9.4",
22-
"@changesets/changelog-github": "^0.5.0",
23-
"@changesets/cli": "^2.27.12",
24-
"@types/bun": "^1.2.2",
25-
"knip": "^5.43.6",
26-
"sherif": "^1.2.0",
27-
"typescript": "^5.7.3"
21+
"@biomejs/biome": "^2.1.4",
22+
"@changesets/changelog-github": "^0.5.1",
23+
"@changesets/cli": "^2.29.5",
24+
"@types/bun": "^1.2.20",
25+
"knip": "^5.62.0",
26+
"sherif": "^1.6.1",
27+
"typescript": "^5.9.2"
2828
}
2929
}

packages/get/src/execute.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
import { http, cookies, headers, html, js, json } from '@getlang/lib'
1+
import { cookies, headers, html, http, js, json } from '@getlang/lib'
22
import type { CExpr, Expr, Program, Stmt } from '@getlang/parser/ast'
3-
import { NodeKind, isToken } from '@getlang/parser/ast'
3+
import { isToken, NodeKind } from '@getlang/parser/ast'
44
import { RootScope } from '@getlang/parser/scope'
55
import type { TypeInfo } from '@getlang/parser/typeinfo'
66
import { Type } from '@getlang/parser/typeinfo'
77
import { type AsyncInterpretVisitor, visit } from '@getlang/parser/visitor'
88
import type { Hooks, MaybePromise } from '@getlang/utils'
99
import {
1010
ImportError,
11+
invariant,
1112
NullInputError,
1213
NullSelection,
1314
NullSelectionError,
1415
QuerySyntaxError,
1516
SliceError,
1617
ValueReferenceError,
17-
invariant,
1818
} from '@getlang/utils'
1919
import { mapValues } from 'lodash-es'
2020

packages/get/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { desugar, parse } from '@getlang/parser'
33
import type { Program } from '@getlang/parser/ast'
44
import type { UserHooks } from '@getlang/utils'
55
import { ImportError, invariant, wait } from '@getlang/utils'
6-
import { Modules, execute as exec } from './execute.js'
76
import type { InternalHooks } from './execute.js'
7+
import { execute as exec, Modules } from './execute.js'
88

99
function buildHooks(hooks: UserHooks = {}): InternalHooks {
1010
return {

packages/get/src/test.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ interface MyCustomMatchers {
22
headers(headers: globalThis.Headers): any
33
}
44
declare module 'bun:test' {
5-
interface Matchers<T> extends MyCustomMatchers {}
5+
interface Matchers extends MyCustomMatchers {}
66
interface AsymmetricMatchers extends MyCustomMatchers {}
77
}

packages/lib/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@
2222
"@types/esquery": "^1.5.4",
2323
"@types/lodash-es": "^4.17.12",
2424
"@types/set-cookie-parser": "^2.4.10",
25-
"acorn": "^8.14.0",
26-
"css-select": "^5.1.0",
27-
"css-what": "^6.1.0",
25+
"acorn": "^8.15.0",
26+
"css-select": "^6.0.0",
27+
"css-what": "^7.0.0",
2828
"dom-serializer": "^2.0.0",
2929
"domelementtype": "*",
3030
"domhandler": "^5.0.3",
3131
"domutils": "^3.2.2",
3232
"esquery": "^1.6.0",
3333
"lodash-es": "^4.17.21",
34-
"parse5": "^7.2.1",
35-
"parse5-htmlparser2-tree-adapter": "^7.1.0",
34+
"parse5": "^8.0.0",
35+
"parse5-htmlparser2-tree-adapter": "^8.0.0",
3636
"set-cookie-parser": "^2.7.1"
3737
}
3838
}

packages/lib/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
export * as http from './net/http.js'
2+
export * as cookies from './values/cookies.js'
3+
export * as headers from './values/headers.js'
24
export * as html from './values/html.js'
3-
export * as json from './values/json.js'
45
export * as js from './values/js.js'
5-
export * as headers from './values/headers.js'
6-
export * as cookies from './values/cookies.js'
6+
export * as json from './values/json.js'
77

88
function runSlice(slice: string, context: unknown = {}, raw: unknown = {}) {
99
return new Function('$', '$$', slice)(context, raw)

packages/lib/src/values/cookies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NullSelection, QuerySyntaxError, invariant } from '@getlang/utils'
1+
import { invariant, NullSelection, QuerySyntaxError } from '@getlang/utils'
22
import { mapValues } from 'lodash-es'
33
import * as scp from 'set-cookie-parser'
44

0 commit comments

Comments
 (0)