Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm-dep: bump pocketbase from 0.16.0 to 0.17.3 in /frontend #185

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 29, 2023

Bumps pocketbase from 0.16.0 to 0.17.3.

Release notes

Sourced from pocketbase's releases.

v0.17.3 Release

  • Loosen the type check when calling pb.files.getUrl(record, filename) to allow passing the pb.authStore.model without type assertion.

v0.17.2 Release

  • Fixed mulitple File/Blob array values not transformed properly to their FormData equivalent when an object syntax is used.

v0.17.1 Release

v0.17.0 Release

⚠️ Please read carefully the release notes as there are some minor breaking changes!

  • To simplify file uploads, we now allow sending the multipart/form-data request body also as plain object if at least one of the object props has File or Blob value.

    // the standard way to create multipart/form-data body
    const data = new FormData();
    data.set("title", "lorem ipsum...")
    data.set("document", new File(...))
    // this is the same as above
    // (it will be converted behind the scenes to FormData)
    const data = {
    "title":    "lorem ipsum...",
    "document": new File(...),
    };
    await pb.collection("example").create(data);

  • Added new pb.authStore.isAdmin and pb.authStore.isAuthRecord helpers to check the type of the current auth state.

  • The default LocalAuthStore now listen to the browser storage event, so that we can sync automatically the pb.authStore state between multiple tabs.

  • Added new helper AsyncAuthStore class that can be used to integrate with any 3rd party async storage implementation (usually this is needed when working with React Native):

    import AsyncStorage from "@react-native-async-storage/async-storage";
    import PocketBase, { AsyncAuthStore } from "pocketbase";
    const store = new AsyncAuthStore({
    save:    async (serialized) => AsyncStorage.setItem("pb_auth", serialized),
    initial: await AsyncStorage.getItem("pb_auth"),
    });
    const pb = new PocketBase("https://example.com", store)

  • pb.files.getUrl() now returns empty string in case an empty filename is passed.

  • ⚠️ All API actions now return plain object (POJO) as response, aka. the custom class wrapping was removed and you no longer need to manually call structuredClone(response) when using with SSR frameworks.

... (truncated)

Changelog

Sourced from pocketbase's changelog.

0.17.3

  • Loosen the type check when calling pb.files.getUrl(user, filename) to allow passing the pb.authStore.model without type assertion.

0.17.2

  • Fixed mulitple File/Blob array values not transformed properly to their FormData equivalent when an object syntax is used.

0.17.1

0.17.0

  • To simplify file uploads, we now allow sending the multipart/form-data request body also as plain object if at least one of the object props has File or Blob value.

    // the standard way to create multipart/form-data body
    const data = new FormData();
    data.set("title", "lorem ipsum...")
    data.set("document", new File(...))
    // this is the same as above
    // (it will be converted behind the scenes to FormData)
    const data = {
    "title":    "lorem ipsum...",
    "document": new File(...),
    };
    await pb.collection("example").create(data);

  • Added new pb.authStore.isAdmin and pb.authStore.isAuthRecord helpers to check the type of the current auth state.

  • The default LocalAuthStore now listen to the browser storage event, so that we can sync automatically the pb.authStore state between multiple tabs.

  • Added new helper AsyncAuthStore class that can be used to integrate with any 3rd party async storage implementation (usually this is needed when working with React Native):

    import AsyncStorage from "@react-native-async-storage/async-storage";
    import PocketBase, { AsyncAuthStore } from "pocketbase";
    const store = new AsyncAuthStore({
    save:    async (serialized) => AsyncStorage.setItem("pb_auth", serialized),
    initial: await AsyncStorage.getItem("pb_auth"),
    });
    const pb = new PocketBase("https://example.com", store)

... (truncated)

Commits
  • bc0bcb1 bumped package version
  • 87cc42c updated the legacy pb.getFileUrl alias
  • fa26b1c loosen the getUrl() type checks
  • 78bf16c normalized example quotes
  • 08f0f91 simplified file upload example
  • 3da18ad updated readme
  • 14ab4c5 fixed multiple File/Blob arrayvalues in the object->FormData transformation
  • 14b816b updated npmignore
  • c2bc766 bumped package version
  • 5b2a992 #235 fixed "deprecated" typo
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [pocketbase](https://github.com/pocketbase/js-sdk) from 0.16.0 to 0.17.3.
- [Release notes](https://github.com/pocketbase/js-sdk/releases)
- [Changelog](https://github.com/pocketbase/js-sdk/blob/master/CHANGELOG.md)
- [Commits](pocketbase/js-sdk@v0.16.0...v0.17.3)

---
updated-dependencies:
- dependency-name: pocketbase
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Aug 29, 2023
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 2, 2023

Looks like pocketbase is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Sep 2, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/frontend/pocketbase-0.17.3 branch September 2, 2023 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants