Jan Špaček
Jan Špaček
`ModuleGraphError` and `ResolutionError` did not implement `Error::source()`, so if a user-provided `Resolver` or `Loader` returns an error, its cause chain is lost. This PR implements `source()`, but it keeps the...
In my code, I need to decompress an image from JPEG and then create a Cairo surface from this image. Cairo uses BGRA format for images, so I was using...
This PR introduces the new `RouteMap` API, moves routing to TypeScript, rewrites Deno interaction in `chiseld` and refactors other parts of `chiseld` and related crates. **Summary of changes:** - Abandon...
On production, we should not return any details about internal server errors, because they might be useful to potential attackers. But it is very convenient to return the errors while...
When I add the `memfs` package to `package.json` and import it (`import ... from memfs`), I get the following error: ``` > [email protected] dev > chisel dev [2022-07-07T15:20:12Z] INFO -...
When the code in `endpoints/` or `models/` imports other modules, `chisel dev` ignores these changes. ``` // endpoints/hello.ts import { hello } from '../utils/hello'; export default async function (req: ChiselRequest):...
In this code, the field `isAwesome` has default value `true`: ```ts import { ChiselEntity } from '@chiselstrike/api'; export class Human extends ChiselEntity { name: string; isAwesome: boolean = !true; }...
The database `.chiseld.db` contains two tables, `types` and `type_names`, that contain a row for every user-defined `ChiselEntity`: ``` CREATE TABLE `types` ( `type_id` integer PRIMARY KEY AUTOINCREMENT, `backing_table` text UNIQUE,...
The schema of the table `types` in `.chiseld.db` is weird: ``` CREATE TABLE `types` ( `type_id` integer PRIMARY KEY AUTOINCREMENT, `backing_table` text UNIQUE, `api_version` text UNIQUE ); ``` because `api_version`...
In this model, the field `isCool` is inferred to have type `number` (from the default value), even though the explicit type annotation says `boolean`: ```ts import { ChiselEntity } from...