Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@payloadcms/plugin-cloud

Package Overview
Dependencies
Maintainers
7
Versions
324
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@payloadcms/plugin-cloud - npm Package Versions

1
33

2.1.0

Diff

Changelog

Source

2.1.0 (2023-11-08)

Features

  • add internationalization (i18n) to locales (#4005) (6a0a859)
  • Custom Error, Label, and before/after field components (#3747) (266c327)

Bug Fixes

  • error on graphql multiple queries (#3985) (57da3c9)
  • focal and cropping issues, adds test (#4039) (acba5e4)
  • handle invalid tokens in refresh token operation (#3647) (131d89c)
  • hasMany number and select fields unable to save within arrays (#4047) (182c57b)
  • injects array and block ids into fieldSchemaToJSON (#4043) (d068ef7)
  • parse predefined migrations via file arg or name prefix (#4001) (eb42c03)
  • polymorphic hasMany relationships missing in postgres admin (#4053) (7a9af44)
  • resets list filter row when the filter on field is changed (#3956) (8d14c21)
  • Update API Views (b008b6c)
  • vite not replacing env vars correctly when building (67b3baa)
elliotpayload
published 2.1.0-beta.0 •

payloadjs
published 2.0.0 •

Changelog

Source

2.0.0 (2023-10-09)

Features

  • New database adapter pattern
  • Official Postgres adapter released, built on Drizzle ORM
  • Database transactions added
  • Full, first-party migration support added
  • The admin UI has been redesigned to be more extensible and offer more horizontal real estate
  • Admin UI sidebar is now collapsible
  • Live preview added to admin UI, including usable frontend hooks
  • New "Views" API added, which allows for custom sub-views on List and Edit views within Admin UI
  • New bundler adapter pattern released
  • Official Vite bundler released
  • Offical Lexical rich text adapter released
  • Lexical rich text editor now supports drag and drop of rich text elements
  • Lexical rich text now supports Payload blocks directly within rich text editor
  • Upload image cropping added
  • Upload "focal point" controls added
  • New "API" view added to Edit view(s), allowing for quick and customizable references to API response
  • MongoDB draft querying has been significantly improved and is now much faster
  • Arabic / RTL UI support added
  • Locales can now be further configured to accept settings like rtl, human-friendly labels, etc.
  • The tsconfig path pointing to your generated Payload types is no longer required for types to work

BREAKING CHANGES

⚠️ You now need to provide your Payload config with a database, a bundler, and a rich text adapter

Here's an example of a barebones Payload config, set up to work as 1.0 did:

import { mongooseAdapter } from "@payloadcms/db-mongodb";
import { slateEditor } from "@payloadcms/richtext-slate";
import { webpackBundler } from "@payloadcms/bundler-webpack";
import { buildConfig } from "payload/config";

export default buildConfig({
  admin: {
    bundler: webpackBundler(),
  },
  editor: slateEditor({}),
  collections: [
    // your collections here
  ],
  db: mongooseAdapter({
    url: process.env.DATABASE_URI,
  }),
});

These new properties are all now required for Payload to function, and you will have to install each separate adapter that you use. Feel free to swap out any of the adapters with your choice (Lexical, Postgres, Vite, etc.)

Make sure to install the packages that you need. In the above example, you would need to install the following:

npm install --save @payloadcms/db-mongodb @payloadcms/richtext-slate @payloadcms/bundler-webpack

⚠️ Draft versions now require a latest: true property to be set on the most recent draft in your _versions collections(s)

We have a ready-to-go migration script for your versions from v1 to v2, and to use it, all you have to do is run the following commands:

1. First, make sure you have a payload npm script in your package.json

{
  "scripts": {
    "payload": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts payload"
  }
}

Adjust the PAYLOAD_CONFIG_PATH to point to your Payload config file if necessary.

2. Create a migration, using the new Payload migration API

npm run payload migrate:create --file @payloadcms/db-mongodb/versions-v1-v2

The above command will output a migration file into your ./src/migrations folder (default migrations location). It contains a migration script to automatically add a latest: true flag to each of your newest drafts, for all draft-enabled collections. It works out of the box!

3. Run migrations

From there, you need to run migrations. Run the following command to execute your new migration:

npm run payload migrate

And you'll be all good!

payloadjs
published 2.0.0-0 •

payloadjs
published 1.1.0-beta.7 •

payloadjs
published 1.1.0-beta.6 •

payloadjs
published 1.1.0-beta.5 •

payloadjs
published 1.1.0-beta.4 •

payloadjs
published 1.1.0-beta.3 •

payloadjs
published 1.0.1 •

Changelog

Source

1.0.20 (2022-08-11)

Bug Fixes

  • E11000 duplicate key error has no keyValue (#916) (50972b9)
  • number validation works with 0 min and max (#906) (874c001)

Features

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc