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

@payloadcms/db-mongodb

Package Overview
Dependencies
Maintainers
9
Versions
358
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
36

1.4.1

Diff

Changelog

Source

1.4.1 (2022-12-24)

Bug Fixes

  • #1761, avoids rich text modifying form due to selection change (9f4ce8d)
elliotpayload
published 1.4.0 •

Changelog

Source

1.4.0 (2022-12-23)

Bug Fixes

  • #1611, unable to query draft versions with draft=true (44b31a9)
  • #1656 remove size data (389ee26)
  • #1698 - globals and autosave not working (915f1e2)
  • #1738 save image dimensions to svg uploads (2de435f)
  • #1747, rich text in arrays improperly updating initialValue when moving rows (d417e50)
  • #1748, bails out of autosave if doc is published while autosaving (95e9300)
  • #1752, removes label from row field type (ff3ab18)
  • #551 - rich text nested list structure (542ea8e)
  • allows cleared file to be reselected (35abe81)
  • get relationships in locale of i18n language setting (#1648) (60bb265)
  • missing file after reselect in upload component (6bc1758)
  • prevents special characters breaking relationship field search (#1710) (9af4c1d)
  • refreshes document drawer on save (9567328)
  • removes update and created at fields when duplicating, ensures updatedAt data is reactive (bd4ed5b)
  • safely clears sort #1736 (341c163)
  • simplifies radio validation (0dfed3b)
  • translated tab classnames (238bada)
  • updates relationship label on drawer save and prevents stepnav update (59de4f7)
  • updates richtext toolbar position if inside a drawer (468b0d2)
  • use the slug for authentication header API Key (5b70ebd)

Features

BREAKING CHANGES

  • replaced the useAPIKey authentication header format to use the collection slug instead of the collection label. Previous: ${collection.labels.singular} API-Key ${apiKey}, updated: ${collection.slug} API-Key ${apiKey}
elliotpayload
published 1.3.2 •

Changelog

Source

1.3.2 (2022-12-15)

Bug Fixes

  • safely handles rich text deselection (420eef4)
elliotpayload
published 1.3.1 •

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)

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