Skip to content
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"oxlint": "^1.75.0",
"publint": "^0.3.22",
"tsdown": "^0.22.14",
"typescript": "^6.0.2",
"typescript": "^7.0.2",
"vitest": "^4.1.10"
},
"engines": {
Expand Down
225 changes: 213 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/selectors/selectors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ test('tracks combinator locations', () => {
],
})

let as_strings = actual.uniqueWithLocations![' '].map((loc) =>
let as_strings = actual.uniqueWithLocations![' ']?.map((loc) =>
css.substring(loc.offset, loc.offset + loc.length),
)
expect(as_strings).toEqual([' ', `\n`, ' ', ' '])
Expand Down
2 changes: 1 addition & 1 deletion src/stylesheet/stylesheet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,6 @@ test('correctly extracts embed types', () => {
`data:image/svg+xml,%3Csvg width='9' height='11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.55.246c.257-.329.647-.327.903 0l3.36 4.66c.256.329.256.864 0 1.192L4.45 10.75c-.257.329-.644.327-.9 0L.192 6.098c-.256-.329-.256-.865 0-1.192L3.55.246z' fill='%23fff'/%3E%3C/svg%3E`,
],
].forEach(([expected, fixture]) => {
expect(getEmbedType(fixture)).toBe(expected)
expect(getEmbedType(fixture!)).toBe(expected)
})
})
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"compilerOptions": {
// Base options:
"skipLibCheck": true,
// TODO: set to es2025 on next major version
"target": "es2022",
"verbatimModuleSyntax": true,
"allowJs": true,
Expand All @@ -22,6 +23,6 @@
// Code runs in the DOM
"lib": ["ES2022", "DOM", "DOM.Iterable"]
},
"include": ["src/index.ts"],
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
}
1 change: 1 addition & 0 deletions tsdown.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ export default defineConfig({
],
platform: 'neutral',
publint: true,
dts: true,
})