Skip to content

Commit

Permalink
more migration info in blog post
Browse files Browse the repository at this point in the history
  • Loading branch information
terrablue committed Aug 5, 2024
1 parent 20b6dfa commit 56a29c1
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/blog/release-032.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,38 @@ frontend package.
<div><a on:click={() => locale.set("de-DE")}>{$t("German")}</a></div>
```

### Removed modules

Remove any `@primate/types` imports and uses in your configuration file.

### Removed imports

Don't import `Response` anymore, it is available in the global context of all
runtimes.

If you previously imported `Status`, import instead the individual statuses
from `@rcompat/http/status`.


```js
import { OK } from "@rcompat/http/status";

export default {
get() {
return new Response("Hello, world!", { status: OK });
},
};
```

### Removed Logger

Remove any `Logger` imports. You can now set the log level when running
Primate:

`npx primate --loglevel=info`

The log levels stayed the same: `info`, `warn` and `error`.

## Other changes

Consult the [full changelog][changelog] for a list of all relevant changes.
Expand Down

0 comments on commit 56a29c1

Please sign in to comment.