Socket
Socket
Sign inDemoInstall

@payloadcms/db-mongodb

Package Overview
Dependencies
Maintainers
6
Versions
306
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@payloadcms/db-mongodb - npm Package Versions

1
31

1.3.1

Diff

Changelog

Source

@payloadcms/richtext-slate 1.3.1 (2023-12-07)

Bug Fixes

  • richtext-*: loosen RichTextAdapter types due to re-occuring ts strict mode errors (#4416) (48f1299)
  • richtext-lexical: lexicalHTML field not working when used inside of Blocks field (128f9c4)
elliotpayload
published 1.3.0 •

Changelog

Source

1.3.0 (2022-12-09)

Bug Fixes

  • #1547, global afterChange hook not falling back to original global if nothing returned (a72123d)

  • #1632 graphQL non-nullable relationship and upload fields (#1633) (eff3f18)

  • change edit key to prevent richtext editor from crashing (#1616) (471d214)

  • filterOptions function argument relationTo is an array (#1627) (11b1c0e)

  • resets slate state when initialValue changes, fixes #1600, #1546 (9558a22)

  • sanitizes global find query params (512bc1e)

  • Select with hasMany and localized (#1636) (756edb8)

  • translation key in revert published modal (#1628) (b6c597a)

  • unflattens fields in filterOptions callback (acff46b)

  • feat!: no longer sanitize collection slugs to kebab case (#1607) (ba2f2d6), closes #1607

Features

BREAKING CHANGES

  • collection slugs are no longer automatically sanitized to be kebab case. This will only be an issue if your current slugs were in camel case. The upgrade path will be to change those slugs to the kebab case version that the slug was automatically being sanitized to on the backend.

If you only use kebab case or single word slugs: no action needed.

If you have existing slugs with camel case and populated data: you'll need to convert these to the kebab case version to match the previously sanitized value.

ie. myOldSlug is your slug, you should convert it to my-old-slug.

Any future slugs after updating will be used as-is.

elliotpayload
published 1.2.0 •

Changelog

Source

1.2.0 (2022-11-18)

🐛 Bug Fixes

  • build errors (65f0e1c)
  • components optional chaining (d5e725c)
  • corrects exported custom component type (2878b4b)
  • corrects type for CollapsibleLabel example type, adjusts custom component filenames (ccb4231)
  • sets pointer-events to none so the entire label bar is clickable (e458087)

✨ Features

  • add i18n to admin panel (#1326) (bab34d8)
  • adds docs example (2bf0fff)
  • adds playwright tests for array fields (57a8c35)
  • converts rowHeader to collapsibleLabel, extends data passed to functions/components (13ec1e0)
  • customizable header-labels (d45de99)
  • simplifies collapsible label API, adds e2e tests (d9df98f)
  • specifies component names for arrays/collapsibles, simplifies threaded data (b74ea21)

🚨 BREAKING CHANGES

  • You might need to update your config. This change affects collections, globals and block fields with custom labeling.

    • Collections: are affected if you have a custom labels.singular defined that differs from your collection slug.

      // ExampleCollection.ts
      
      // Before
      const ExampleCollection: CollectionConfig = {
        slug: 'case-studies',
        labels: {
          // Before Payload used `labels.singular` to generate types/graphQL schema
          singular: 'Project',
          plural: 'Projects',
        },
      }
      
      // After
      const ExampleCollection: CollectionConfig = {
        // Now Payload uses `slug` to generate types/graphQL schema
        slug: 'case-studies',
        labels: {
          singular: 'Project',
          plural: 'Projects',
        },
        // To override the usage of slug in graphQL schema generation
        graphQL: {
          singularName: 'Project',
          pluralName: 'Projects',
        },
        // To override the usage of slug in type file generation
        typescript: {
          interface: 'Project',
        },
      }
      
    • Globals: are affected if you have a label defined that differs from your global slug.

      // ExampleGlobal.ts
      
      // Before
      const ExampleGlobal: GlobalConfig = {
        slug: 'footer',
        // Before Payload used `label` to generate types/graphQL schema
        label: 'Page Footer',
      }
      
      // After
      const ExampleGlobal: GlobalConfig = {
        // Now Payload uses `slug` to generate types/graphQL schema
        slug: 'footer',
        label: 'Page Footer',
        // To override the usage of slug in graphQL schema generation
        graphQL: {
          name: 'PageFooter',
        },
        // To override the usage of slug in type file generation
        typescript: {
          interface: 'PageFooter',
        },
      }
      
    • Block Fields: are affected if you have a label defined that differs from your block slug.

      // ExampleBlock.ts
      
          // Before
          const ExampleBlock: Block = {
            slug: 'content',
            // Before Payload used `label` to generate graphQL schema
            label: 'Content Block',
          }
      
          // After
          const ExampleBlock: Block = {
            // Now Payload uses `slug` to generate graphQL schema
            slug: 'content',
            label: 'Content Block',
            // To override the usage of slug in graphQL schema generation
            graphQL: {
              singularName: 'ContentBlock',
            },
          }
          ```
      
      **Breaking changes recap**:
      
  • On Collections

    • Use graphQL.singularName, graphQL.pluralName for GraphQL schema names.
    • Use typescript.interface for typescript generation name.
  • On Globals

    • Use graphQL.name for GraphQL Schema name.
    • Use typescript.interface for typescript generation name.
  • On Blocks (within Block fields)

    • Use graphQL.singularName for graphQL schema names.
elliotpayload
published 1.1.1 •

Changelog

Source

1.1.1 (2022-09-13)

Bug Fixes

  • conditions on collapsible fields (9c4f2b6)
  • dashboard links to globals (dcc8dad)
elliotpayload
published 1.1.0 •

Changelog

Source

1.1.0 (2022-09-13)

Bug Fixes

Features

  • #1001 - builds a way to allow list view to search multiple fields (a108372)
  • collection groups (dffeaf6)
  • globals groups (59af872)
  • hide nav labels with no un-grouped collections (c40e232)
  • implement gravatar (#1107) (ca434b8)
  • support localized tab fields (a83921a)
  • tabs support localization at the tab level (6a6a691)
  • WIP tab compatible with traverseFields (2ae33b6)
elliotpayload
published 1.0.8 •

Changelog

Source

1.0.8 (2022-07-20)

Bug Fixes

Features

  • export PayloadRequest (66c820c)
  • improves generated types by removing unnecessary optional properties (#784) (6f748f1)
elliotpayload
published 1.0.7 •

Changelog

Source

1.0.7 (2022-07-19)

elliotpayload
published 1.0.6 •

Changelog

Source

1.0.6 (2022-07-19)

Features

  • improves initAsync pattern (428edb0)
elliotpayload
published 1.0.5 •

Changelog

Source

1.0.5 (2022-07-19)

Features

elliotpayload
published 1.0.4 •

Changelog

Source

1.0.4 (2022-07-19)

Features

  • Updated UI: Dark Mode
  • Updated UI: Collapsibles (60bfb1c)
  • Updated UI: Tabs field (68e7c41)
  • Updated UI: Styling Revamp and responsive improvements
  • More maintainable colors via CSS vars
  • Improved test coverage through granular Payload configs
  • Introduction of E2E tests through Playwright
  • allow clear select value (#735) (3132d35)

BREAKING CHANGES

We have removed our reliance on SCSS variables like color and font, replacing them instead with CSS variables wherever possible.

Due to this change, the admin.scss functionality has become obsolete, and overriding SCSS variables is not longer needed or supported. If you want to customize CSS, you can still do so, but via the admin.css property instead.

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