-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: make d1 spaces.metadata nullable and change to kysely #284
Conversation
- d1 tables are now typed
.execute() | ||
return { data: result } | ||
} catch (error) { | ||
return { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why return error and not throw?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cause i need to use the error on the provider side and i dont want to try catch the full provider logic. im working on normalising this all thing in the w3space/account refactor
🤖 I have created a release *beep* *boop* --- ## [9.1.0](access-v9.0.1...access-v9.1.0) (2022-12-13) ### Features * sync encode/decode delegations ([#276](#276)) ([ab981fb](ab981fb)) ### Bug Fixes * destructured save ([#272](#272)) ([a4f20a9](a4f20a9)) * handle Buffer serialization ([#277](#277)) ([6dc77ca](6dc77ca)) * make d1 spaces.metadata nullable and change to kysely ([#284](#284)) ([c8a9ce5](c8a9ce5)), closes [#280](#280) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ## [2.1.0](capabilities-v2.0.0...capabilities-v2.1.0) (2022-12-13) ### Features * sync encode/decode delegations ([#276](#276)) ([ab981fb](ab981fb)) ### Bug Fixes * make d1 spaces.metadata nullable and change to kysely ([#284](#284)) ([c8a9ce5](c8a9ce5)), closes [#280](#280) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ## [4.0.0](access-api-v3.0.0...access-api-v4.0.0) (2022-12-13) ### ⚠ BREAKING CHANGES * upgrade access-api @ucanto/* and @ipld/dag-ucan major versions ([#246](#246)) * access-client store decoupling ([#228](#228)) * upgrade to `@ucanto/{interface,principal}`@^4.0.0 ([#238](#238)) * follow up on the capabilities extract ([#239](#239)) * doc capabilities & make requierd nb non-optionals ([#159](#159)) * Remove 0.8 caps and add account delegation to the service ([#123](#123)) * bump to 0.9 ([#116](#116)) ### Features * [#153](#153) ([#177](#177)) ([d6d448c](d6d448c)) * access-api uses DID env variable when building its ucanto server id ([#275](#275)) ([311da78](311da78)) * **access-client:** cli and recover ([#207](#207)) ([adb3a8d](adb3a8d)) * account recover with email ([#149](#149)) ([6c659ba](6c659ba)) * bump to 0.9 ([#116](#116)) ([3e0b63f](3e0b63f)) * doc capabilities & make requierd nb non-optionals ([#159](#159)) ([6496773](6496773)) * follow up on the capabilities extract ([#239](#239)) ([ef5e779](ef5e779)) * Remove 0.8 caps and add account delegation to the service ([#123](#123)) ([878f8c9](878f8c9)), closes [#117](#117) [#121](#121) * Revert "feat!: upgrade to `@ucanto/{interface,principal}`@^4.0.0" ([#245](#245)) ([c182bbe](c182bbe)) * sync encode/decode delegations ([#276](#276)) ([ab981fb](ab981fb)) * upgrade access-api @ucanto/* and @ipld/dag-ucan major versions ([#246](#246)) ([5e663d1](5e663d1)) * upgrade to `@ucanto/{interface,principal}`@^4.0.0 ([#238](#238)) ([2f3bab8](2f3bab8)) ### Bug Fixes * 0.9 ([#78](#78)) ([1b1ed01](1b1ed01)) * add validation copy ([#257](#257)) ([7f50af4](7f50af4)), closes [#139](#139) * fix Access API cannot get space/info [#243](#243) ([#255](#255)) ([1bacd54](1bacd54)) * fix d1 migrations ([#264](#264)) ([fb8c09d](fb8c09d)) * make d1 spaces.metadata nullable and change to kysely ([#284](#284)) ([c8a9ce5](c8a9ce5)), closes [#280](#280) * make multiformats 9 go away ([#133](#133)) ([2668880](2668880)) * miniflare dev script ([#137](#137)) ([1c5a4e2](1c5a4e2)) * testing staging deploy ([3d500fa](3d500fa)) * try to deploy api staging ([18b7b29](18b7b29)) * try to deploy staging ([c616818](c616818)) ### Code Refactoring * access-client store decoupling ([#228](#228)) ([a785278](a785278)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ## [5.2.0](upload-client-v5.1.0...upload-client-v5.2.0) (2022-12-14) ### Features * update upload-client service conf ([#308](#308)) ([2cb590c](2cb590c)) ### Bug Fixes * make d1 spaces.metadata nullable and change to kysely ([#284](#284)) ([c8a9ce5](c8a9ce5)), closes [#280](#280) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
- spaces.metadata is now nullable - d1 tables are now typed - moved from `workers-qb` to [`kysely`](https://github.com/koskimas/kysely) with [d1 dialect](https://github.com/aidenwallis/kysely-d1) closes #280
🤖 I have created a release *beep* *boop* --- ## [9.1.0](access-v9.0.1...access-v9.1.0) (2022-12-13) ### Features * sync encode/decode delegations ([#276](#276)) ([9d48372](9d48372)) ### Bug Fixes * destructured save ([#272](#272)) ([b6aaf9b](b6aaf9b)) * handle Buffer serialization ([#277](#277)) ([8e8f745](8e8f745)) * make d1 spaces.metadata nullable and change to kysely ([#284](#284)) ([7f09479](7f09479)), closes [#280](#280) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ## [2.1.0](capabilities-v2.0.0...capabilities-v2.1.0) (2022-12-13) ### Features * sync encode/decode delegations ([#276](#276)) ([9d48372](9d48372)) ### Bug Fixes * make d1 spaces.metadata nullable and change to kysely ([#284](#284)) ([7f09479](7f09479)), closes [#280](#280) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ## [4.0.0](access-api-v3.0.0...access-api-v4.0.0) (2022-12-13) ### ⚠ BREAKING CHANGES * upgrade access-api @ucanto/* and @ipld/dag-ucan major versions ([#246](#246)) * access-client store decoupling ([#228](#228)) * upgrade to `@ucanto/{interface,principal}`@^4.0.0 ([#238](#238)) * follow up on the capabilities extract ([#239](#239)) * doc capabilities & make requierd nb non-optionals ([#159](#159)) * Remove 0.8 caps and add account delegation to the service ([#123](#123)) * bump to 0.9 ([#116](#116)) ### Features * [#153](#153) ([#177](#177)) ([7fbf2a1](7fbf2a1)) * access-api uses DID env variable when building its ucanto server id ([#275](#275)) ([e8326ec](e8326ec)) * **access-client:** cli and recover ([#207](#207)) ([720dafb](720dafb)) * account recover with email ([#149](#149)) ([91ad47d](91ad47d)) * bump to 0.9 ([#116](#116)) ([29cf63c](29cf63c)) * doc capabilities & make requierd nb non-optionals ([#159](#159)) ([f6b6d06](f6b6d06)) * follow up on the capabilities extract ([#239](#239)) ([717fcaa](717fcaa)) * Remove 0.8 caps and add account delegation to the service ([#123](#123)) ([c3c58b9](c3c58b9)), closes [#117](#117) [#121](#121) * Revert "feat!: upgrade to `@ucanto/{interface,principal}`@^4.0.0" ([#245](#245)) ([197439e](197439e)) * sync encode/decode delegations ([#276](#276)) ([9d48372](9d48372)) * upgrade access-api @ucanto/* and @ipld/dag-ucan major versions ([#246](#246)) ([65d191c](65d191c)) * upgrade to `@ucanto/{interface,principal}`@^4.0.0 ([#238](#238)) ([309aff0](309aff0)) ### Bug Fixes * 0.9 ([#78](#78)) ([561c68b](561c68b)) * add validation copy ([#257](#257)) ([0bd49ce](0bd49ce)), closes [#139](#139) * fix Access API cannot get space/info [#243](#243) ([#255](#255)) ([1a74031](1a74031)) * fix d1 migrations ([#264](#264)) ([5b8a6e7](5b8a6e7)) * make d1 spaces.metadata nullable and change to kysely ([#284](#284)) ([7f09479](7f09479)), closes [#280](#280) * make multiformats 9 go away ([#133](#133)) ([cdb4109](cdb4109)) * miniflare dev script ([#137](#137)) ([f2cffb2](f2cffb2)) * testing staging deploy ([975cffc](975cffc)) * try to deploy api staging ([5130464](5130464)) * try to deploy staging ([4e56657](4e56657)) ### Code Refactoring * access-client store decoupling ([#228](#228)) ([64c7496](64c7496)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ## [5.2.0](upload-client-v5.1.0...upload-client-v5.2.0) (2022-12-14) ### Features * update upload-client service conf ([#308](#308)) ([b538082](b538082)) ### Bug Fixes * make d1 spaces.metadata nullable and change to kysely ([#284](#284)) ([7f09479](7f09479)), closes [#280](#280) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
first up: improved space creation flow There are few different ways this could work, but the fact that we store `currentSpace` in the Agent combined with the fact that that `currentSpace` is updated automatically when we call `createSpace` makes it harder to implement some designs. Put another way, it would be hard to have a space creator that does not change the currently selected space, so these changes lean into the way state management works right now. https://user-images.githubusercontent.com/1113/213601254-86fd1114-e6d3-45a6-add3-44100166904a.mp4
🤖 I have created a release *beep* *boop* --- ## 1.0.0 (2023-03-23) ### ⚠ BREAKING CHANGES * use new account model ([storacha#400](storacha/w3ui#400)) ### Features * add terms of service page ([storacha#417](storacha/w3ui#417)) ([6deb24d](storacha/w3ui@6deb24d)) * adds space-finder autocomplete combobox ([storacha#268](storacha/w3ui#268)) ([3dcd647](storacha/w3ui@3dcd647)) * allow users to set page size in W3APIProvider ([storacha#308](storacha/w3ui#308)) ([814a293](storacha/w3ui@814a293)) * club tropical w3 auth boxen ([storacha#350](storacha/w3ui#350)) ([2266eb2](storacha/w3ui@2266eb2)) * delegate access to spaces ([storacha#293](storacha/w3ui#293)) ([441d757](storacha/w3ui@441d757)) * import a space into w3console ([storacha#309](storacha/w3ui#309)) ([a69a95b](storacha/w3ui@a69a95b)) * Improve upload component flow ([storacha#285](storacha/w3ui#285)) ([ba9a3bf](storacha/w3ui@ba9a3bf)) * publish console to IPFS & Cloudflare from CI ([storacha#287](storacha/w3ui#287)) ([e2a833e](storacha/w3ui@e2a833e)) * Storybook story improvements ([storacha#294](storacha/w3ui#294)) ([e0de2cc](storacha/w3ui@e0de2cc)) * use new account model ([storacha#400](storacha/w3ui#400)) ([66dd20b](storacha/w3ui@66dd20b)) * w3console example app ([storacha#255](storacha/w3ui#255)) ([df08029](storacha/w3ui@df08029)) ### Bug Fixes * add _headers ([storacha#418](storacha/w3ui#418)) ([4eb1da1](storacha/w3ui@4eb1da1)) * fix w3console styling ([storacha#320](storacha/w3ui#320)) ([74a298c](storacha/w3ui@74a298c)) * remove authenticator class when registed ([storacha#352](storacha/w3ui#352)) ([3668f3b](storacha/w3ui@3668f3b)) * w3console polish ([storacha#284](storacha/w3ui#284)) ([9a67365](storacha/w3ui@9a67365)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## 1.0.0 (2023-11-28) ### Features * adds space-finder autocomplete combobox ([storacha#268](storacha/w3ui#268)) ([3dcd647](storacha/w3ui@3dcd647)) * allow users to set page size in W3APIProvider ([storacha#308](storacha/w3ui#308)) ([814a293](storacha/w3ui@814a293)) * club tropical w3 auth boxen ([storacha#350](storacha/w3ui#350)) ([2266eb2](storacha/w3ui@2266eb2)) * Customizable UI components ([storacha#208](storacha/w3ui#208)) ([0a776fe](storacha/w3ui@0a776fe)) * implement reverse paging ([storacha#381](storacha/w3ui#381)) ([10f059a](storacha/w3ui@10f059a)) * Improve upload component flow ([storacha#285](storacha/w3ui#285)) ([ba9a3bf](storacha/w3ui@ba9a3bf)) * simplify ([storacha#591](storacha/w3ui#591)) ([d1dfdf0](storacha/w3ui@d1dfdf0)) * Storybook story improvements ([storacha#294](storacha/w3ui#294)) ([e0de2cc](storacha/w3ui@e0de2cc)) ### Bug Fixes * fix w3console styling ([storacha#320](storacha/w3ui#320)) ([74a298c](storacha/w3ui@74a298c)) * remove authenticator class when registed ([storacha#352](storacha/w3ui#352)) ([3668f3b](storacha/w3ui@3668f3b)) * w3console polish ([storacha#284](storacha/w3ui#284)) ([9a67365](storacha/w3ui@9a67365)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Alan Shaw <alan.shaw@protocol.ai>
🤖 I have created a release *beep* *boop* --- ## [1.2.0](storacha/w3ui@react-v1.1.1...react-v1.2.0) (2023-11-30) ### Features * add a logout function ([storacha#595](storacha/w3ui#595)) ([0995fd5](storacha/w3ui@0995fd5)) * adds space-finder autocomplete combobox ([storacha#268](storacha/w3ui#268)) ([3dcd647](storacha/w3ui@3dcd647)) * allow users to set page size in W3APIProvider ([storacha#308](storacha/w3ui#308)) ([814a293](storacha/w3ui@814a293)) * club tropical w3 auth boxen ([storacha#350](storacha/w3ui#350)) ([2266eb2](storacha/w3ui@2266eb2)) * Customizable UI components ([storacha#208](storacha/w3ui#208)) ([0a776fe](storacha/w3ui@0a776fe)) * implement reverse paging ([storacha#381](storacha/w3ui#381)) ([10f059a](storacha/w3ui@10f059a)) * Improve upload component flow ([storacha#285](storacha/w3ui#285)) ([ba9a3bf](storacha/w3ui@ba9a3bf)) * simplify ([storacha#591](storacha/w3ui#591)) ([d1dfdf0](storacha/w3ui@d1dfdf0)) * Storybook story improvements ([storacha#294](storacha/w3ui#294)) ([e0de2cc](storacha/w3ui@e0de2cc)) ### Bug Fixes * fix w3console styling ([storacha#320](storacha/w3ui#320)) ([74a298c](storacha/w3ui@74a298c)) * homepage URL in package.json ([1229119](storacha/w3ui@1229119)) * remove authenticator class when registed ([storacha#352](storacha/w3ui#352)) ([3668f3b](storacha/w3ui@3668f3b)) * w3console polish ([storacha#284](storacha/w3ui#284)) ([9a67365](storacha/w3ui@9a67365)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
first up: improved space creation flow There are few different ways this could work, but the fact that we store `currentSpace` in the Agent combined with the fact that that `currentSpace` is updated automatically when we call `createSpace` makes it harder to implement some designs. Put another way, it would be hard to have a space creator that does not change the currently selected space, so these changes lean into the way state management works right now. https://user-images.githubusercontent.com/1113/213601254-86fd1114-e6d3-45a6-add3-44100166904a.mp4
🤖 I have created a release *beep* *boop* --- ## 1.0.0 (2023-03-23) ### ⚠ BREAKING CHANGES * use new account model ([storacha#400](storacha/w3ui#400)) ### Features * add terms of service page ([storacha#417](storacha/w3ui#417)) ([e216efd](storacha/w3ui@e216efd)) * adds space-finder autocomplete combobox ([storacha#268](storacha/w3ui#268)) ([5894cdc](storacha/w3ui@5894cdc)) * allow users to set page size in W3APIProvider ([storacha#308](storacha/w3ui#308)) ([22d917a](storacha/w3ui@22d917a)) * club tropical w3 auth boxen ([storacha#350](storacha/w3ui#350)) ([92fa065](storacha/w3ui@92fa065)) * delegate access to spaces ([storacha#293](storacha/w3ui#293)) ([d99c96c](storacha/w3ui@d99c96c)) * import a space into w3console ([storacha#309](storacha/w3ui#309)) ([f9df8a8](storacha/w3ui@f9df8a8)) * Improve upload component flow ([storacha#285](storacha/w3ui#285)) ([4f5cf4f](storacha/w3ui@4f5cf4f)) * publish console to IPFS & Cloudflare from CI ([storacha#287](storacha/w3ui#287)) ([df4715a](storacha/w3ui@df4715a)) * Storybook story improvements ([storacha#294](storacha/w3ui#294)) ([c031ff7](storacha/w3ui@c031ff7)) * use new account model ([storacha#400](storacha/w3ui#400)) ([b594536](storacha/w3ui@b594536)) * w3console example app ([storacha#255](storacha/w3ui#255)) ([fbcdc42](storacha/w3ui@fbcdc42)) ### Bug Fixes * add _headers ([storacha#418](storacha/w3ui#418)) ([625199d](storacha/w3ui@625199d)) * fix w3console styling ([storacha#320](storacha/w3ui#320)) ([31cbe91](storacha/w3ui@31cbe91)) * remove authenticator class when registed ([storacha#352](storacha/w3ui#352)) ([e115f9f](storacha/w3ui@e115f9f)) * w3console polish ([storacha#284](storacha/w3ui#284)) ([654d507](storacha/w3ui@654d507)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## 1.0.0 (2023-11-28) ### Features * adds space-finder autocomplete combobox ([storacha#268](storacha/w3ui#268)) ([5894cdc](storacha/w3ui@5894cdc)) * allow users to set page size in W3APIProvider ([storacha#308](storacha/w3ui#308)) ([22d917a](storacha/w3ui@22d917a)) * club tropical w3 auth boxen ([storacha#350](storacha/w3ui#350)) ([92fa065](storacha/w3ui@92fa065)) * Customizable UI components ([storacha#208](storacha/w3ui#208)) ([1107544](storacha/w3ui@1107544)) * implement reverse paging ([storacha#381](storacha/w3ui#381)) ([0077b34](storacha/w3ui@0077b34)) * Improve upload component flow ([storacha#285](storacha/w3ui#285)) ([4f5cf4f](storacha/w3ui@4f5cf4f)) * simplify ([storacha#591](storacha/w3ui#591)) ([7309e1d](storacha/w3ui@7309e1d)) * Storybook story improvements ([storacha#294](storacha/w3ui#294)) ([c031ff7](storacha/w3ui@c031ff7)) ### Bug Fixes * fix w3console styling ([storacha#320](storacha/w3ui#320)) ([31cbe91](storacha/w3ui@31cbe91)) * remove authenticator class when registed ([storacha#352](storacha/w3ui#352)) ([e115f9f](storacha/w3ui@e115f9f)) * w3console polish ([storacha#284](storacha/w3ui#284)) ([654d507](storacha/w3ui@654d507)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Alan Shaw <alan.shaw@protocol.ai>
🤖 I have created a release *beep* *boop* --- ## [1.2.0](storacha/w3ui@react-v1.1.1...react-v1.2.0) (2023-11-30) ### Features * add a logout function ([storacha#595](storacha/w3ui#595)) ([3cd276b](storacha/w3ui@3cd276b)) * adds space-finder autocomplete combobox ([storacha#268](storacha/w3ui#268)) ([5894cdc](storacha/w3ui@5894cdc)) * allow users to set page size in W3APIProvider ([storacha#308](storacha/w3ui#308)) ([22d917a](storacha/w3ui@22d917a)) * club tropical w3 auth boxen ([storacha#350](storacha/w3ui#350)) ([92fa065](storacha/w3ui@92fa065)) * Customizable UI components ([storacha#208](storacha/w3ui#208)) ([1107544](storacha/w3ui@1107544)) * implement reverse paging ([storacha#381](storacha/w3ui#381)) ([0077b34](storacha/w3ui@0077b34)) * Improve upload component flow ([storacha#285](storacha/w3ui#285)) ([4f5cf4f](storacha/w3ui@4f5cf4f)) * simplify ([storacha#591](storacha/w3ui#591)) ([7309e1d](storacha/w3ui@7309e1d)) * Storybook story improvements ([storacha#294](storacha/w3ui#294)) ([c031ff7](storacha/w3ui@c031ff7)) ### Bug Fixes * fix w3console styling ([storacha#320](storacha/w3ui#320)) ([31cbe91](storacha/w3ui@31cbe91)) * homepage URL in package.json ([5f8b616](storacha/w3ui@5f8b616)) * remove authenticator class when registed ([storacha#352](storacha/w3ui#352)) ([e115f9f](storacha/w3ui@e115f9f)) * w3console polish ([storacha#284](storacha/w3ui#284)) ([654d507](storacha/w3ui@654d507)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
workers-qb
tokysely
with d1 dialectcloses #280