Skip to content

[Snyk] Upgrade pocketbase from 0.10.1 to 0.15.2#1

Open
gregstarr wants to merge 1 commit intomainfrom
snyk-upgrade-488da00e4be005cd6b60ae390f6880d9
Open

[Snyk] Upgrade pocketbase from 0.10.1 to 0.15.2#1
gregstarr wants to merge 1 commit intomainfrom
snyk-upgrade-488da00e4be005cd6b60ae390f6880d9

Conversation

@gregstarr
Copy link
Owner

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade pocketbase from 0.10.1 to 0.15.2.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 22 versions ahead of your current version.
  • The recommended version was released 22 days ago, on 2023-06-07.
Release notes
Package name: pocketbase
  • 0.15.2 - 2023-06-07
    • Replaced new URL(...) with manual url parsing as it doesn't seem to be fully supported in React Native (pocketbase#2484).

    • Fixed nested ClientResponseError.originalError wrapping and added ClientResponseError constructor tests.

  • 0.15.1 - 2023-06-01
    • Cancel any pending subscriptions submit requests on realtime disconnect (#204).
  • 0.15.0 - 2023-05-21
    • Added fields to the optional query parameters for limiting the returned API fields (available with PocketBase v0.16.0).

    • Added pb.backups service for the new PocketBase backup and restore APIs (available with PocketBase v0.16.0).

    • Updated pb.settings.testS3(filesystem) to allow specifying a filesystem to test - storage or backups (available with PocketBase v0.16.0).

  • 0.15.0-rc - 2023-05-13
  • 0.14.4 - 2023-05-05
    • Removed the legacy aliased BaseModel.isNew getter since it conflicts with similarly named record fields (pocketbase#2385).
      This helper is mainly used in the Admin UI, but if you are also using it in your code you can replace it with the $ prefixed version, aka. BaseModel.$isNew.
  • 0.14.4-rc - 2023-05-01
  • 0.14.3 - 2023-04-28
    • Added OAuth2AuthConfig.query prop to send optional query parameters (eg. expand) with the authWithOAuth2(config) call.
  • 0.14.2 - 2023-04-28
    • Use location.origin + location.pathname instead of full location.href when constructing the browser absolute url to ignore any extra hash or query parameter from the base url.
      This is a small improvement to the earlier change from v0.14.1.
  • 0.14.1 - 2023-04-28
    • Use an absolute url when the SDK is initialized with a relative base path in a browser env to ensure that the generated OAuth2 redirect and file urls are absolute.
  • 0.14.0 - 2023-04-18
    • Added simplified authWithOAuth2() version without having to implement custom redirect, deeplink or even page reload:

      const authData = await pb.collection('users').authWithOAuth2({
        provider: 'google'
      })

      Works with PocketBase v0.15.0+.

      This method initializes a one-off realtime subscription and will
      open a popup window with the OAuth2 vendor page to authenticate.
      Once the external OAuth2 sign-in/sign-up flow is completed, the popup
      window will be automatically closed and the OAuth2 data sent back
      to the user through the previously established realtime connection.

      Site-note: when creating the OAuth2 app in the provider dashboard
      you have to configure https://yourdomain.com/api/oauth2-redirect
      as redirect URL.

      The "manual" code exchange flow is still supported as authWithOAuth2Code(provider, code, codeVerifier, redirectUrl).

      For backward compatibility it is also available as soft-deprecated function overload of authWithOAuth2(provider, code, codeVerifier, redirectUrl).

    • Added new pb.files service:

      // Builds and returns an absolute record file url for the provided filename.
      🔓 pb.files.getUrl(record, filename, queryParams = {});

      // Requests a new private file access token for the current auth model (admin or record).
      🔐 pb.files.getToken(queryParams = {});

      pb.getFileUrl() is soft-deprecated and acts as alias calling pb.files.getUrl() under the hood.

      Works with PocketBase v0.15.0+.

  • 0.14.0-rc2 - 2023-04-11
  • 0.14.0-rc - 2023-04-05
  • 0.13.1 - 2023-03-26
    • Added option to specify a generic send() return type and defined SendOptions type (#171; thanks @ iamelevich).

    • Deprecated SchemaField.unique prop since its function is replaced by Collection.indexes in the upcoming PocketBase v0.14.0 release.

  • 0.13.0 - 2023-03-24
    • Aliased all BaseModel helpers with $ equivalent to avoid conflicts with the dynamic record props (#169).

      isNew      -> $isNew
      load(data) -> $load(data)
      clone()    -> $clone()
      export()   -> $export()
      // ...

      For backward compatibility, the old helpers will still continue to work if the record doesn't have a conflicting field name.

    • Updated pb.beforeSend and pb.afterSend signatures to allow returning and awaiting an optional Promise (#166; thanks @ Bobby-McBobface).

    • Added Collection.indexes field for the new collection indexes support in the upcoming PocketBase v0.14.0.

    • Added pb.settings.generateAppleClientSecret() for sending a request to generate Apple OAuth2 client secret in the upcoming PocketBase v0.14.0.

  • 0.13.0-rc - 2023-03-16
  • 0.12.1 - 2023-03-09
  • 0.12.1-rc2 - 2023-03-09
  • 0.12.1-rc - 2023-03-09
  • 0.12.0 - 2023-02-27
  • 0.11.1 - 2023-02-23
  • 0.11.0 - 2023-02-19
  • 0.10.2 - 2023-02-16
  • 0.10.1 - 2023-01-21
from pocketbase GitHub release notes
Commit messages
Package name: pocketbase
  • 04b699f replaced URL with manual query parsing and added fixed ClientResponseError wrapping
  • ecc1c2e fixed changelog typo
  • 728c647 [#204] cancel any pending submit requests on realtime disconnect
  • b263cec bumped package version
  • 1fe80f5 updated docs
  • dd0be21 updated chagelog
  • a756fef updated readme
  • fb3ff16 updated tests
  • 8c58fe8 experimental backup service apis
  • 972ad92 fixed changelog typos
  • 2712a4d bumped package version
  • bde1d4c removed the legacy BaseModel.isNew getter
  • 7d1c36b synced with master
  • afa44ae added optional OAuth2AuthConfig query and body props to pass down with the authWithOAuth2 call
  • 586eaf9 replaced location.href
  • b4dcab3 use an absolute url when the SDK is initalized with a relative base path in a browser env
  • 8c73e68 added fields optional query parameter
  • cf5d381 updated changelog and OAuth2UrlCallback type
  • 08ccf66 updated package rc version
  • 65cc124 updated readme and exported new OAuth2 types
  • de624f8 updated changelog
  • a62a500 added simplified authWithOAuth2() version
  • d670acf added pb.files service
  • efa9f6a [#171] added option to specify a generic `send()` return type and defined `SendOptions` type

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

@netlify
Copy link

netlify bot commented Jun 29, 2023

Deploy Preview for shiny-crumble-7dd594 ready!

Name Link
🔨 Latest commit b34ad4a
🔍 Latest deploy log https://app.netlify.com/sites/shiny-crumble-7dd594/deploys/649dae382b9f7b0008762b40
😎 Deploy Preview https://deploy-preview-1--shiny-crumble-7dd594.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants