Commit Graph

243 Commits

Author SHA1 Message Date
renovate
aaeae8ebcd
chore: bump up stripe version to v15 (#6512)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [stripe](https://togithub.com/stripe/stripe-node) | [`^14.18.0` -> `^15.0.0`](https://renovatebot.com/diffs/npm/stripe/14.18.0/15.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/stripe/15.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/stripe/15.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/stripe/14.18.0/15.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/stripe/14.18.0/15.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>stripe/stripe-node (stripe)</summary>

### [`v15.0.0`](https://togithub.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1500---2024-04-10)

[Compare Source](https://togithub.com/stripe/stripe-node/compare/v14.25.0...v15.0.0)

-   [#&#8203;2057](https://togithub.com/stripe/stripe-node/pull/2057)

    -   This release changes the pinned API version to `2024-04-10`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-04-10) and carefully review the API changes before upgrading.

##### ⚠️ Breaking changes

-   Rename event type `InvoiceitemCreatedEvent` to `InvoiceItemCreatedEvent`
-   Rename event type `InvoiceitemDeletedEvent` to `InvoiceItemDeletedEvent`
-   Rename `features` to `marketing_features` on `ProductCreateOptions`, `ProductUpdateOptions`, and `Product`.

##### ⚠️ Removal of enum values, properties and events that are no longer part of the publicly documented Stripe API

-   Remove `subscription_pause` from the below as the feature to pause subscription on the portal has been deprecated.
    -   `BillingPortal.Configuration.Features`
    -   `BillingPortal.ConfigurationCreateParams.Features`
    -   `BillingPortal.ConfigurationUpdateParams.Features`
-   Remove the below deprecated values for the type `BalanceTransaction.Type`
    -   `obligation_inbound`
    -   `obligation_payout`
    -   `obligation_payout_failure`
    -   `'obligation_reversal_outbound'`
-   Remove deprecated value `various` for the type `Climate.Supplier.RemovalPathway`
-   Remove deprecated events
    -   `invoiceitem.updated`
    -   `order.created`
    -   `recipient.created`
    -   `recipient.deleted`
    -   `recipient.updated`
    -   `sku.created`
    -   `sku.deleted`
    -   `sku.updated`
-   Remove types for the deprecated events
    -   `InvoiceItemUpdatedEvent`
    -   `OrderCreatedEvent`
    -   `RecipientCreatedEvent`
    -   `RecipientDeletedEvent`
    -   `RecipientUpdatedEvent`
    -   `SKUCreatedEvent`
    -   `SKUDeletedEvent`
-   Remove the deprecated value `include_and_require` for the type`InvoiceCreateParams.PendingInvoiceItemsBehavior`
-   Remove the deprecated value `service_tax` for the types `TaxRate.TaxType`, `TaxRateCreateParams.TaxType`, `TaxRateUpdateParams.TaxType`, and `InvoiceUpdateLineItemParams.TaxAmount.TaxRateData`
-   Remove `request_incremental_authorization` from `PaymentIntentCreateParams.PaymentMethodOptions.CardPresent`, `PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent` and `PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent`
-   Remove support for `id_bank_transfer`, `multibanco`, `netbanking`, `pay_by_bank`, and `upi` on `PaymentMethodConfiguration`
-   Remove the deprecated value `obligation` for the type `Reporting.ReportRunCreateParams.Parameters.ReportingCategory`
-   Remove the deprecated value `challenge_only` from the type `SetupIntent.PaymentMethodOptions.Card.RequestThreeDSecure`
-   Remove the legacy field `rendering_options` in `Invoice`, `InvoiceCreateOptions` and `InvoiceUpdateOptions`. Use `rendering` instead.

### [`v14.25.0`](https://togithub.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#14250---2024-04-09)

[Compare Source](https://togithub.com/stripe/stripe-node/compare/v14.24.0...v14.25.0)

-   [#&#8203;2059](https://togithub.com/stripe/stripe-node/pull/2059) Update generated code
    -   Add support for new resources `Entitlements.ActiveEntitlement` and `Entitlements.Feature`
    -   Add support for `list` and `retrieve` methods on resource `ActiveEntitlement`
    -   Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Feature`
    -   Add support for `controller` on `AccountCreateParams`
    -   Add support for `fees`, `losses`, `requirement_collection`, and `stripe_dashboard` on `Account.controller`
    -   Add support for new value `none` on enum `Account.type`
    -   Add support for `event_name` on `Billing.MeterEventAdjustmentCreateParams` and `Billing.MeterEventAdjustment`
    -   Add support for `cancel` and `type` on `Billing.MeterEventAdjustment`

### [`v14.24.0`](https://togithub.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#14240---2024-04-04)

[Compare Source](https://togithub.com/stripe/stripe-node/compare/v14.23.0...v14.24.0)

-   [#&#8203;2053](https://togithub.com/stripe/stripe-node/pull/2053) Update generated code
    -   Change `Charge.payment_method_details.us_bank_account.payment_reference`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.hosted_instructions_url`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.mobile_auth_url`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.data`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_png`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_svg`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code`, and `PaymentIntent.payment_method_options.swish.reference` to be required
    -   Change type of `Checkout.SessionCreateParams.payment_method_options.swish.reference` from `emptyable(string)` to `string`
    -   Add support for `subscription_item` on `Discount`
    -   Add support for `email` and `phone` on `Identity.VerificationReport`, `Identity.VerificationSession.options`, `Identity.VerificationSession.verified_outputs`, `Identity.VerificationSessionCreateParams.options`, and `Identity.VerificationSessionUpdateParams.options`
    -   Add support for `verification_flow` on `Identity.VerificationReport`, `Identity.VerificationSessionCreateParams`, and `Identity.VerificationSession`
    -   Add support for new value `verification_flow` on enums `Identity.VerificationReport.type` and `Identity.VerificationSession.type`
    -   Add support for `provided_details` on `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionUpdateParams`, and `Identity.VerificationSession`
    -   Change `Identity.VerificationSessionCreateParams.type` to be optional
    -   Add support for new values `email_unverified_other`, `email_verification_declined`, `phone_unverified_other`, and `phone_verification_declined` on enum `Identity.VerificationSession.last_error.code`
    -   Add support for `promotion_code` on `InvoiceCreateParams.discounts[]`, `InvoiceItemCreateParams.discounts[]`, `InvoiceItemUpdateParams.discounts[]`, `InvoiceUpdateParams.discounts[]`, `QuoteCreateParams.discounts[]`, and `QuoteUpdateParams.discounts[]`
    -   Add support for `discounts` on `InvoiceUpcomingLinesParams.subscription_items[]`, `InvoiceUpcomingParams.subscription_items[]`, `QuoteCreateParams.line_items[]`, `QuoteUpdateParams.line_items[]`, `SubscriptionCreateParams.add_invoice_items[]`, `SubscriptionCreateParams.items[]`, `SubscriptionCreateParams`, `SubscriptionItemCreateParams`, `SubscriptionItemUpdateParams`, `SubscriptionItem`, `SubscriptionSchedule.phases[].add_invoice_items[]`, `SubscriptionSchedule.phases[].items[]`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleCreateParams.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleUpdateParams.phases[].items[]`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams.add_invoice_items[]`, `SubscriptionUpdateParams.items[]`, `SubscriptionUpdateParams`, and `Subscription`
    -   Change type of `Invoice.discounts` from `array(expandable(deletable($Discount))) | null` to `array(expandable(deletable($Discount)))`
    -   Add support for `allowed_merchant_countries` and `blocked_merchant_countries` on `Issuing.Card.spending_controls`, `Issuing.CardCreateParams.spending_controls`, `Issuing.CardUpdateParams.spending_controls`, `Issuing.Cardholder.spending_controls`, `Issuing.CardholderCreateParams.spending_controls`, and `Issuing.CardholderUpdateParams.spending_controls`
    -   Add support for `zip` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
    -   Add support for `offline` on `SetupAttempt.payment_method_details.card_present`
    -   Add support for `card_present` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options`
    -   Add support for new value `mobile_phone_reader` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type`

### [`v14.23.0`](https://togithub.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#14230---2024-03-28)

[Compare Source](https://togithub.com/stripe/stripe-node/compare/v14.22.0...v14.23.0)

-   [#&#8203;2046](https://togithub.com/stripe/stripe-node/pull/2046) Update generated code
    -   Add support for new resources `Billing.MeterEventAdjustment`, `Billing.MeterEvent`, and `Billing.Meter`
    -   Add support for `create`, `deactivate`, `list`, `reactivate`, `retrieve`, and `update` methods on resource `Meter`
    -   Add support for `create` method on resources `MeterEventAdjustment` and `MeterEvent`
    -   Add support for `amazon_pay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
    -   Add support for new value `verification_failed_representative_authority` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code`
    -   Add support for `destination_on_behalf_of_charge_management` on `AccountSession.components.payment_details.features`, `AccountSession.components.payments.features`, `AccountSessionCreateParams.components.payment_details.features`, and `AccountSessionCreateParams.components.payments.features`
    -   Add support for `mandate` on `Charge.payment_method_details.us_bank_account`, `Treasury.InboundTransfer.origin_payment_method_details.us_bank_account`, `Treasury.OutboundPayment.destination_payment_method_details.us_bank_account`, and `Treasury.OutboundTransfer.destination_payment_method_details.us_bank_account`
    -   Add support for `second_line` on `Issuing.CardCreateParams`
    -   Add support for `meter` on `PlanCreateParams`, `Plan`, `Price.recurring`, `PriceCreateParams.recurring`, and `PriceListParams.recurring`
-   [#&#8203;2045](https://togithub.com/stripe/stripe-node/pull/2045) esbuild test project fixes

### [`v14.22.0`](https://togithub.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#14220---2024-03-21)

[Compare Source](https://togithub.com/stripe/stripe-node/compare/v14.21.0...v14.22.0)

-   [#&#8203;2040](https://togithub.com/stripe/stripe-node/pull/2040) Update generated code
    -   Add support for new resources `ConfirmationToken` and `Forwarding.Request`
    -   Add support for `retrieve` method on resource `ConfirmationToken`
    -   Add support for `create`, `list`, and `retrieve` methods on resource `Request`
    -   Add support for `mobilepay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
    -   Add support for new values `forwarding_api_inactive`, `forwarding_api_invalid_parameter`, `forwarding_api_upstream_connection_error`, and `forwarding_api_upstream_connection_timeout` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
    -   Add support for `mobilepay` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
    -   Add support for `payment_reference` on `Charge.payment_method_details.us_bank_account`
    -   Add support for new value `mobilepay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
    -   Add support for `confirmation_token` on `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `SetupIntentConfirmParams`, and `SetupIntentCreateParams`
    -   Add support for new value `mobilepay` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type`
    -   Add support for new value `mobilepay` on enum `PaymentMethod.type`
    -   Add support for `name` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration`
    -   Add support for `payout` on `Treasury.ReceivedDebit.linked_flows`
-   [#&#8203;2043](https://togithub.com/stripe/stripe-node/pull/2043) Don't mutate error.type during minification

### [`v14.21.0`](https://togithub.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#14210---2024-03-14)

[Compare Source](https://togithub.com/stripe/stripe-node/compare/v14.20.0...v14.21.0)

-   [#&#8203;2035](https://togithub.com/stripe/stripe-node/pull/2035) Update generated code
    -   Add support for new resources `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
    -   Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PersonalizationDesign`
    -   Add support for `list` and `retrieve` methods on resource `PhysicalBundle`
    -   Add support for `personalization_design` on `Issuing.CardCreateParams`, `Issuing.CardListParams`, `Issuing.CardUpdateParams`, and `Issuing.Card`
    -   Change type of `SubscriptionCreateParams.application_fee_percent` and `SubscriptionUpdateParams.application_fee_percent` from `number` to `emptyStringable(number)`
    -   Add support for `sepa_debit` on `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options`

### [`v14.20.0`](https://togithub.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#14200---2024-03-07)

[Compare Source](https://togithub.com/stripe/stripe-node/compare/v14.19.0...v14.20.0)

-   [#&#8203;2033](https://togithub.com/stripe/stripe-node/pull/2033) Update generated code
    -   Add support for `documents` on `AccountSession.components` and `AccountSessionCreateParams.components`
    -   Add support for `request_three_d_secure` on `Checkout.Session.payment_method_options.card` and `Checkout.SessionCreateParams.payment_method_options.card`
    -   Add support for `created` on `CreditNoteListParams`
    -   Add support for `sepa_debit` on `Invoice.payment_settings.payment_method_options`, `InvoiceCreateParams.payment_settings.payment_method_options`, and `InvoiceUpdateParams.payment_settings.payment_method_options`

### [`v14.19.0`](https://togithub.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#14190---2024-02-29)

[Compare Source](https://togithub.com/stripe/stripe-node/compare/v14.18.0...v14.19.0)

-   [#&#8203;2029](https://togithub.com/stripe/stripe-node/pull/2029) Update generated code
    -   Change `Identity.VerificationReport.type`, `SubscriptionSchedule.default_settings.invoice_settings.account_tax_ids`, `SubscriptionSchedule.phases[].invoice_settings.account_tax_ids`, and `TaxId.owner` to be required
    -   Change type of `Identity.VerificationSession.type` from `enum('document'|'id_number') | null` to `enum('document'|'id_number')`
    -   Add support for `number` on `InvoiceCreateParams` and `InvoiceUpdateParams`
    -   Add support for `enable_customer_cancellation` on `Terminal.Reader.action.process_payment_intent.process_config`, `Terminal.Reader.action.process_setup_intent.process_config`, `Terminal.ReaderProcessPaymentIntentParams.process_config`, and `Terminal.ReaderProcessSetupIntentParams.process_config`
    -   Add support for `refund_payment_config` on `Terminal.Reader.action.refund_payment` and `Terminal.ReaderRefundPaymentParams`
    -   Add support for `payment_method` on `TokenCreateParams.bank_account`
-   [#&#8203;2027](https://togithub.com/stripe/stripe-node/pull/2027) vscode settings: true -> "explicit"

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5In0=-->
2024-04-11 03:12:46 +00:00
darkskygit
9f349a2300
feat: text to image impl (#6437)
fix CLOUD-18
fix CLOUD-28
fix CLOUD-29
2024-04-10 12:13:39 +00:00
darkskygit
7c38a54f81
feat: copilot controller (#6272)
fix CLOUD-27
2024-04-10 11:58:40 +00:00
darkskygit
e6a576551a
feat: add copilot impl (#6230)
fix CLOUD-22
fix CLOUD-24
2024-04-10 11:15:32 +00:00
darkskygit
46a368d7f1
feat: add session impl (#6254) 2024-04-10 11:15:25 +00:00
forehalo
b01a8bb2ab
fix(server): give s3 client a default request timeout (#6483) 2024-04-08 08:41:55 +00:00
liuyi
edef9b2735
fix(server): only auto apply coupon in pro subscription (#6452) 2024-04-03 17:13:18 +08:00
CatsJuice
3e9e2ce93b
feat(core): pricing plans ai subscription ui (#6449) 2024-04-03 08:04:30 +00:00
forehalo
2dc628eca5
fix(server): doc cache makes publish mode updating failed (#6444) 2024-04-03 03:34:01 +00:00
darkskygit
3c01d944fb
feat: add prompt service (#6241)
fix CLOUD-19
2024-04-02 07:04:54 +00:00
darkskygit
593161dccb
feat: basic copilot plugin implement (#6229)
fix CLOUD-25
2024-04-02 07:04:49 +00:00
EYHN
366e0a4b60
feat(server): adjust telemetry config (#6424) 2024-04-02 03:44:48 +00:00
forehalo
54c06777a6
fix(server): always set new session cookie (#6323) 2024-03-26 09:56:39 +00:00
forehalo
5637676222
fix(server): wrong import path (#6317) 2024-03-26 09:26:56 +00:00
fundon
8ee9f6ec05
chore: improve password error message (#6255)
chore: improve error message

chore: add password minlength & maxlength i18n

chore: check max length

fix: i18n variables

feat: add CredentialsRequirementType
2024-03-26 07:15:06 +00:00
liuyi
b8e6d7d6cb
chore(server): cache blob list result (#6297) 2024-03-26 14:23:47 +08:00
forehalo
1a1af83375
test(server): auth tests (#6135) 2024-03-26 02:24:17 +00:00
EYHN
f2adbdaba4
style: enable import-x/no-duplicates (#6279) 2024-03-25 03:55:33 +00:00
EYHN
2b42a75e5a
style: enable rxjs/finnish (#6276)
chore(infra): use finnish notation for observables

do rename
2024-03-24 17:04:51 +00:00
EYHN
34703a3b7d
feat(infra): new doc sync engine (#6205)
https://github.com/toeverything/AFFiNE/blob/eyhn/feat/new-sync/packages/common/infra/src/workspace/engine/doc/README.md
2024-03-22 16:43:26 +00:00
Brooooooklyn
150c22936d
chore(core): add mixpanel track (#6202) 2024-03-22 09:24:41 +00:00
Brooooooklyn
10af0ab48d
feat(server): support ai plan (#6216) 2024-03-22 08:39:18 +00:00
Brooooooklyn
aecc523663
fix(server): avoid error when other prices added but logic is not released (#6191) 2024-03-22 08:39:12 +00:00
forehalo
540e456704
ci: set private key from env (#6239) 2024-03-21 10:09:26 +00:00
liuyi
4f5907766f
fix(server): decode uri component before verify token (#6231) 2024-03-20 18:17:11 +08:00
liuyi
06a5b2e5a5
fix(server): wrong google oauth param (#6227) 2024-03-20 17:45:22 +08:00
LongYinan
332cd3b380
refactor(core): split web entry from core (#6082)
This pr is trying to split `web` and `electron` entries from `core`. It allows more platform-related optimization to be addressed in each entry.
We should remove all browser/electron only codes from `core` eventually, this is the very first step for that.
2024-03-19 07:48:56 +00:00
liuyi
797e3c5b35
fix(server): do not force sign in password length (#6188)
hotfix
2024-03-19 10:58:34 +08:00
liuyi
bba1a95f9c
chore: bump base version to 0.14.0 (#6170) 2024-03-19 02:34:18 +00:00
DarkSky
da32682afb
fix(server): handle expired lock re-release & external locker injection (#6145) 2024-03-19 02:16:47 +00:00
liuyi
4702c1a9ca
fix(server): inject correct locker to request scope mutex (#6140) 2024-03-19 02:16:35 +00:00
DarkSky
f18133af82
fix(server): wrap read-modify-write apis with distributed lock (#6142) 2024-03-19 02:16:24 +00:00
liuyi
a4cd8d6ca3
chore(server): organize server configs (#6169) 2024-03-19 02:05:56 +00:00
liuyi
a721b3887b
fix(server): hotfix auth & doc push (#6168) 2024-03-18 16:32:35 +08:00
liuyi
268ca03f62
fix(server): ensure selfhost admin created after all data migrated (#6163)
fix #6154 

cp to canary
2024-03-18 11:43:12 +08:00
LongYinan
58c81dd1ac
chore: bump up get-stream version to v9 (#6139)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [get-stream](https://togithub.com/sindresorhus/get-stream) | [`^8.0.1` -> `^9.0.0`](https://renovatebot.com/diffs/npm/get-stream/8.0.1/9.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/get-stream/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/get-stream/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/get-stream/8.0.1/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/get-stream/8.0.1/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>sindresorhus/get-stream (get-stream)</summary>

### [`v9.0.0`](https://togithub.com/sindresorhus/get-stream/releases/tag/v9.0.0)

[Compare Source](https://togithub.com/sindresorhus/get-stream/compare/v8.0.1...v9.0.0)

##### Breaking

-   Require Node.js 18 ([#&#8203;111](https://togithub.com/sindresorhus/get-stream/issues/111))  [`7ccab70`](https://togithub.com/sindresorhus/get-stream/commit/7ccab70)

##### Improvements

-   Fix browser support ([#&#8203;122](https://togithub.com/sindresorhus/get-stream/issues/122))  [`4d233d3`](https://togithub.com/sindresorhus/get-stream/commit/4d233d3)
-   Allow multiple readers at once ([#&#8203;121](https://togithub.com/sindresorhus/get-stream/issues/121))  [`a51d085`](https://togithub.com/sindresorhus/get-stream/commit/a51d085)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNDUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI0NS4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5In0=-->
2024-03-18 03:08:03 +00:00
liuyi
e94be8968b
fix(server): hotfix (#6161) 2024-03-18 10:41:11 +08:00
LongYinan
bc465f9704
Revert "fix(server): wrap read-modify-write apis with distributed lock (#5979)"
This reverts commit 34f892b05b.
2024-03-15 16:55:48 +08:00
DarkSky
34f892b05b
fix(server): wrap read-modify-write apis with distributed lock (#5979) 2024-03-15 13:31:11 +08:00
liuyi
533c181640
feat(server): cleanup gateway code (#6118) 2024-03-15 02:00:40 +00:00
liuyi
79ffca314d
feat(server): allow prefetch doc stats before sync (#6115) 2024-03-14 17:34:33 +00:00
Peng Xiao
dd9a253772
feat(core): add split view to experimental features settings (#6093) 2024-03-14 05:13:04 +00:00
liuyi
c5d8c6cc8c
fix(server): blob api should be public (#6109) 2024-03-14 02:36:13 +00:00
DarkSky
282b788258
fix: allow empty mailer password (#6066)
fix #6046
smtp relay may allow empty password, although this is usually not safe
2024-03-13 10:07:18 +00:00
liuyi
f2ec81b2d0
feat(server): user connected accounts migration (#6103) 2024-03-13 09:28:52 +00:00
liuyi
573528be41
fix(server): user can not signup through oauth if ever invited (#6101) 2024-03-13 07:50:11 +00:00
liuyi
495855cc07
fix(server): server info api should be public (#6098) 2024-03-13 03:59:26 +00:00
liuyi
fb3a0e7b8f
refactor(server): auth (#5895)
Remove `next-auth` and implement our own Authorization/Authentication system from scratch.

## Server

- [x] tokens
  - [x] function
  - [x] encryption

- [x] AuthController
  - [x] /api/auth/sign-in
  - [x] /api/auth/sign-out
  - [x] /api/auth/session
  - [x] /api/auth/session (WE SUPPORT MULTI-ACCOUNT!)

- [x] OAuthPlugin
  - [x] OAuthController
  - [x] /oauth/login
  - [x] /oauth/callback
  - [x] Providers
    - [x] Google
    - [x] GitHub

## Client

- [x] useSession
- [x] cloudSignIn
- [x] cloudSignOut

## NOTE:

Tests will be adding in the future
2024-03-12 10:00:09 +00:00
Peng Xiao
1c5279747b
fix(server): migration script running on windows (#6077) 2024-03-12 16:19:48 +08:00
Peng Xiao
83e1217f61
fix(server): server startup on windows (#6071) 2024-03-12 06:41:42 +00:00