
Security News
Critical Security Vulnerability in React Server Components
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.
@gatsby-cloud-pkg/merlin-synchronizer
Advanced tools
Synchronizes a gatsby site's data layer with a remote source hosted on GCP
The synchronizer is responsible for pulling data from a Merlin ledger in GCS via the Gatsby Cloud Ledger API. It can sync all data in a ledger or just the data since the last time it synchronized.
It synchronizes Merlin ledger redux actions for a specific Gatsby Cloud site ID and a specific Gatsby site path local to the process calling synchronize. It handles its own caching via a provided cache function with get and set methods. It returns a promise that's resolved when all actions are synced or its determined that the synchronizer can be invoked in any follower when they need to sync data from Cloud.
import { synchronize } from "@gatsby-cloud-pkg/merlin-synchronizer"
const { ledgerExists } = await synchronize({
siteId, // should be a site ID for a Gatsby Cloud site
gatsbySitePath, // should be an absolute path to a Gatsby site on disk
cache, // needs cache.get and cache.set methods
// sourcingConfigurationId, <-- this is optional. a sourcingConfigurationId will be computed from the Gatsby site at the gatsbySitePath. But you can pass this directly too
handleAction: (action) => {
// do stuff with this action
// it's a Gatsby core redux action which was emitted in Merlin and stored in GCS
},
})
import { computeSourcingConfigurationId } from "@gatsby-cloud-pkg/merlin-synchronizer"
// ...
const sourcingConfigurationId = await computeSourcingConfigurationId(
pathToGatsbySite
)
You must have previously written a ledger to disk. You can do this by running yarn:start:local in services/cloud-sourcerer in the mansion repo. You may need to set environment variables for the site you are using to generate the ledger.
dev-monolith with yarn:start:local in services/dev-monolithenv file with the SITE_ID you used to generate the ledger and the correct port for the API, e.g. GATSBY_CLOUD_DATALAYER=http://localhost:8201/get-ledger-entries if not using 8083yarn run:local in the merlin-synchronizer directory.FAQs
Synchronizes a gatsby site's data layer with a remote source hosted on GCP
We found that @gatsby-cloud-pkg/merlin-synchronizer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 20 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.

Research
/Security News
We spotted a wave of auto-generated “elf-*” npm packages published every two minutes from new accounts, with simple malware variants and early takedowns underway.

Security News
TypeScript 6.0 will be the last JavaScript-based major release, as the project shifts to the TypeScript 7 native toolchain with major build speedups.