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
5 changes: 5 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 100,
"semi": false,
"singleQuote": true

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Match Vite+'s trailing-comma default

When a changeset contains an embedded multiline function call or declaration, the locked Changesets formatter uses Prettier 2.8.8's trailingComma: "es5" default, while Vite+'s oxfmt uses "all". The version command can therefore still generate a CHANGELOG.md that pnpm exec vp check rejects, only for a different syntax than the example fixed here. Mirror trailingComma: "all" in this compatibility configuration, or derive both formatter configurations from one authoritative source.

AGENTS.md reference: AGENTS.md:L77-L77

Useful? React with 👍 / 👎.

}
18 changes: 9 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
- 5225ab5: Added pluggable friction stores, a Postgres.js-backed `Store.postgres({ connectionString })` factory, and the `Frog.create` logging API.

```ts
import { Frog, Store } from "frog";
import { Frog, Store } from 'frog'

const store = Store.postgres({ connectionString: process.env.DATABASE_URL! });
const frog = Frog.create({ store });
const store = Store.postgres({ connectionString: process.env.DATABASE_URL! })
const frog = Frog.create({ store })
await frog.log({
body: "The workaround used.",
severity: "minor",
title: "Tool required a workaround",
});
const logs = await frog.logs();
await store.close();
body: 'The workaround used.',
severity: 'minor',
title: 'Tool required a workaround',
})
const logs = await frog.logs()
await store.close()
```

## 1.0.15
Expand Down
Loading