Skip to content

v2.6.0

Latest

Choose a tag to compare

@Tobbe Tobbe released this 10 Feb 06:42
· 1855 commits to main since this release

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.wasLiveQueryAdded to useCedarRealtime.wasLiveQueryAdded. Since Symbol.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): Add realtime to GraphQL Handler during setup (#1157) by @Tobbe

Fixes #512

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

🧹 Chore

Click to see all chore contributions
  • chore(ci): Strip hash from canary publish GH comment (7b94164) by @Tobbe
  • Version docs to 2.6 (acd183a) by @Tobbe
  • chore(test-project): rebuild-test-project-fixture: Build cca before running it (#1165) by @Tobbe