Release Notes
This release is all about improvements to Cedar's realtime features. With more to come!
Plus incorporating the patch that was released as v1.1.2 a couple of days ago
Changelog
π Features
feat(realtime): Rename to useCedarRealtime and CedarRealtimeOptions (#1158) by @Tobbe
Moves the implementation from RW to Cedar naming, but keeps the old exports for backwards compatibility until a future major version
This is very unlikely to happen, but I'm noting it here just to surface the risk a tiny bit more (comment from Greptile)
Symbol string changed from
useRedwoodRealtime.wasLiveQueryAddedtouseCedarRealtime.wasLiveQueryAdded. SinceSymbol.for()returns the same symbol for the same string globally, schemas marked with the old symbol won't be recognized by the new code. If users have cached schemas or use both versions simultaneously during migration, the schema might get the live directive added twice.
feat(realtime): Remove RW shim file (#1159) by @Tobbe
This should affect noone, but if you for some reason did a deep import of useRedwoodRealtime you'll need to change it to import from just @cedarjs/realtime now, which is how we've always shown it being done
π οΈ Fixes
fix(realtime): Remove filename comment from auctions sdl template (#1156) by @Tobbe
We typically don't include this in templates shipped with the CLI. We do sometimes have it in our docs though (but I prefer using Docusaurus' title="filename.ext" feature for that)
fix(cli): Use CEDAR_CWD env var (#1179) by @Tobbe
Continuing the rebranding effort from RW to Cedar.
The old RWJS_CWD variable still works, to keep this change backwards compatible.
fix(exec): Support importing graphql handler function (#1168) by @Tobbe
Add Vite plugins to support imports like these
import directives from 'src/directives/**/*.{js,ts}'
import sdls from 'src/graphql/**/*.sdl.{js,ts}'
import services from 'src/services/**/*.{js,ts}'
in files imported and used by scripts
fix(cli): Fix passing multiple files to `yarn cedar lint` (#1163) by @Tobbe
yarn cedar lint file1 file2 used to pass "file1 file2" to eslint, which then looked for a single file literally named "file1 file2", i.e. with a space in the file name. This PR makes sure to pass all files as separate args
fix(cli): Support relative paths for CEDAR_CWD (#1178) by @Tobbe
This PR adds better support for relative paths, like CEDAR_CWD=__fixture__ or CEDAR_CWD=../../test-project. It worked before as well, in simple cases. But when the CLI invoked itself (like calling out to generate a new prisma client in a separate process) it could fail. Now it doesn't anymore
π¦ Dependencies
Click to see all 15 dependency updates
- fix(deps): update dependency @babel/generator to v7.29.1 (#1167) by @renovate-bot
- fix(deps): update dependency @easyops-cn/docusaurus-search-local to ^0.53.0 (#1172) by @renovate-bot
- chore(deps): update dependency @playwright/test to v1.58.2 (#1182) by @renovate-bot
- chore(deps): update dependency @supabase/supabase-js to v2.94.0 (#1160) by @renovate-bot
- chore(deps): update dependency @npmcli/arborist to v9.2.0 (#1169) by @renovate-bot
- chore(deps): update dependency @supabase/supabase-js to v2.95.3 (#1180) by @renovate-bot
- chore(deps): update dependency ora to v9.2.0 (#1164) by @renovate-bot
- chore(deps): update dependency @supabase/supabase-js to v2.95.2 (#1177) by @renovate-bot
- chore(deps): update dependency ora to v9.3.0 (#1170) by @renovate-bot
- chore(deps): update dependency @supabase/supabase-js to v2.94.1 (#1166) by @renovate-bot
- chore(deps): update dependency @supabase/supabase-js to v2.95.1 (#1173) by @renovate-bot
- chore(deps): update dependency lefthook to v2.1.0 (#1161) by @renovate-bot
- fix(deps): update dependency vite-plugin-cjs-interop to v2.4.1 (#1176) by @renovate-bot
- chore(deps): update dependency @auth0/auth0-spa-js to v2.14.0 (#1171) by @renovate-bot
- fix(deps): update dependency semver to v7.7.4 (#1175) by @renovate-bot