forehalo
d853fc879d
fix(server): deal with nested optional modules ( #7101 )
2024-05-29 08:12:59 +00:00
forehalo
bffbb1ea9f
feat(server): add users management api ( #7092 )
2024-05-29 08:02:26 +00:00
forehalo
4b30fbc1e2
feat(server): add copilot prompts management api ( #7082 )
2024-05-28 13:14:17 +00:00
darkskygit
1a269a4b52
fix: missing quota resolver ( #7094 )
2024-05-28 12:05:49 +00:00
Tao Chen
e417c4cd44
fix(server): OIDC bug ( #7061 )
2024-05-28 18:19:37 +08:00
darkskygit
40b35b7bc2
chore: update prompts ( #7091 )
2024-05-28 08:07:12 +00:00
forehalo
638fc62601
feat(server): runtime setting support ( #5602 )
...
---
<details open="true"><summary>Generated summary (powered by <a href="https://app.graphite.dev ">Graphite</a>)</summary>
> ## TL;DR
> This pull request adds a new migration file, a new model, and new modules related to runtime settings. It also introduces a new `Runtime` service that allows getting, setting, and updating runtime configurations.
>
> ## What changed
> - Added a new migration file `migration.sql` that creates a table called `application_settings` with columns `key` and `value`.
> - Added a new model `ApplicationSetting` with properties `key` and `value`.
> - Added a new module `RuntimeSettingModule` that exports the `Runtime` service.
> - Added a new service `Runtime` that provides methods for getting, setting, and updating runtime configurations.
> - Modified the `app.module.ts` file to import the `RuntimeSettingModule`.
> - Modified the `index.ts` file in the `fundamentals` directory to export the `Runtime` service.
> - Added a new file `def.ts` in the `runtime` directory that defines the runtime configurations and provides a default implementation.
> - Added a new file `service.ts` in the `runtime` directory that implements the `Runtime` service.
>
> ## How to test
> 1. Run the migration script to create the `application_settings` table.
> 2. Use the `Runtime` service to get, set, and update runtime configurations.
> 3. Verify that the runtime configurations are stored correctly in the database and can be retrieved and modified using the `Runtime` service.
>
> ## Why make this change
> This change introduces a new feature related to runtime settings. The `Runtime` service allows the application to dynamically manage and modify runtime configurations without requiring a restart. This provides flexibility and allows for easier customization and configuration of the application.
</details>
2024-05-28 06:43:53 +00:00
doouding
0dd0432531
fix(server): update mind map prompt ( #7079 )
2024-05-27 12:01:45 +00:00
forehalo
aff166a0ef
feat(server): add administrator feature ( #6995 )
2024-05-27 11:17:21 +00:00
darkskygit
5ba9e2e9b1
fix: choose provider correctly ( #7081 )
...
fix no provider error in caption generate action
2024-05-27 09:57:39 +00:00
Chen
919e40f28e
feat: support more ai image actions ( #7027 )
2024-05-24 18:35:32 +08:00
darkskygit
0302a85585
feat: add customer event ( #7029 )
2024-05-24 08:40:33 +00:00
darkskygit
937b8bf166
feat: history cleanup ( #7007 )
...
fix AFF-1069
2024-05-24 08:00:05 +00:00
Tao Chen
22a8a2663e
feat(server): add OIDC for AFFiNE ( #6991 )
...
Co-authored-by: LongYinan <lynweklm@gmail.com>
Co-authored-by: DarkSky <darksky2048@gmail.com>
2024-05-24 00:35:30 +08:00
darkskygit
0c42849bc3
feat: update i2i model ( #7041 )
2024-05-23 14:27:12 +00:00
darkskygit
535254fdf6
feat: adapt new fal response ( #7042 )
2024-05-23 10:43:12 +00:00
darkskygit
f511b02bf9
fix: use flexible year number in mail template ( #7033 )
...
close #7010
2024-05-23 07:08:02 +00:00
darkskygit
f8fee55b3d
fix: combine message correctly ( #7038 )
2024-05-23 06:16:31 +00:00
forehalo
29e7fa1371
chore(server): cleanup expired sessions ( #7018 )
2024-05-22 03:31:41 +00:00
darkskygit
df73b6ddc7
feat: revoke token after sensitive operations ( #6993 )
...
fix #6914
2024-05-20 06:38:48 +00:00
darkskygit
f2866f57c9
feat: add lora support ( #6977 )
2024-05-20 05:05:34 +00:00
darkskygit
a3f3d09764
feat: add upscaler & bg remover ( #6967 )
2024-05-16 11:09:34 +00:00
renovate
f37bbb0784
chore: bump up @sentry/react version to v8 ( #6919 )
...
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@sentry/react](https://togithub.com/getsentry/sentry-javascript/tree/master/packages/react ) ([source](https://togithub.com/getsentry/sentry-javascript )) | [`^7.109.0` -> `^8.0.0`](https://renovatebot.com/diffs/npm/@sentry%2freact/7.111.0/8.0.0 ) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@sentry%2freact/8.0.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@sentry%2freact/8.0.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@sentry%2freact/7.111.0/8.0.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@sentry%2freact/7.111.0/8.0.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>getsentry/sentry-javascript (@​sentry/react)</summary>
### [`v8.0.0`](https://togithub.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#800-rc3 )
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.114.0...8.0.0 )
##### Important Changes
- **feat(bun): Add Bun Global Unhandled Handlers ([#​11960](https://togithub.com/getsentry/sentry-javascript/issues/11960 ))**
The Bun SDK will now capture global unhandled errors.
##### Other Changes
- feat(node): Log process and thread info on initialisation ([#​11972](https://togithub.com/getsentry/sentry-javascript/issues/11972 ))
- fix(aws-serverless): Include ESM artifacts in package ([#​11973](https://togithub.com/getsentry/sentry-javascript/issues/11973 ))
- fix(browser): Only start `http.client` spans if there is an active parent span ([#​11974](https://togithub.com/getsentry/sentry-javascript/issues/11974 ))
- fix(feedback): Improve CSS theme variable names and layout ([#​11964](https://togithub.com/getsentry/sentry-javascript/issues/11964 ))
- fix(node): Ensure `execArgv` are not sent to worker threads ([#​11963](https://togithub.com/getsentry/sentry-javascript/issues/11963 ))
- ref(feedback): Simplify feedback function params ([#​11957](https://togithub.com/getsentry/sentry-javascript/issues/11957 ))
### [`v7.114.0`](https://togithub.com/getsentry/sentry-javascript/releases/tag/7.114.0 )
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.113.0...7.114.0 )
##### Important Changes
- **fix(browser/v7): Continuously record CLS ([#​11935](https://togithub.com/getsentry/sentry-javascript/issues/11935 ))**
This release fixes a bug that caused the cumulative layout shift (CLS) web vital not to be reported in a majority of the
cases where it should have been reported. With this change, the CLS web vital should now always be reported for
pageloads with layout shift. If a pageload did not have layout shift, no CLS web vital should be reported.
**Please note that upgrading the SDK to this version may cause data in your dashboards to drastically change.**
##### Other Changes
- build(aws-lambda/v7): Turn off lambda layer publishing ([#​11875](https://togithub.com/getsentry/sentry-javascript/issues/11875 ))
- feat(v7): Add `tunnel` support to multiplexed transport ([#​11851](https://togithub.com/getsentry/sentry-javascript/issues/11851 ))
- fix(opentelemetry-node): support `HTTP_REQUEST_METHOD` attribute ([#​11929](https://togithub.com/getsentry/sentry-javascript/issues/11929 ))
- fix(react/v7): Fix react router v4/v5 span names ([#​11940](https://togithub.com/getsentry/sentry-javascript/issues/11940 ))
### [`v7.113.0`](https://togithub.com/getsentry/sentry-javascript/releases/tag/7.113.0 )
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.112.2...7.113.0 )
##### Important Changes
- **feat(node): Support Node 22 ([#​11754](https://togithub.com/getsentry/sentry-javascript/issues/11754 ))**
This release adds support for Node 22! 🎉
It also adds prebuilt-binaries for Node 22 to `@sentry/profiling-node`.
##### Other Changes
- feat(feedback): \[v7] New feedback button design ([#​11841](https://togithub.com/getsentry/sentry-javascript/issues/11841 ))
- feat(replay/v7): Upgrade rrweb packages to 2.15.0 ([#​11752](https://togithub.com/getsentry/sentry-javascript/issues/11752 ))
- fix(ember/v7): Ensure unnecessary spans are avoided ([#​11848](https://togithub.com/getsentry/sentry-javascript/issues/11848 ))
### [`v7.112.2`](https://togithub.com/getsentry/sentry-javascript/releases/tag/7.112.2 )
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.112.1...7.112.2 )
- fix(nextjs|sveltekit): Ensure we can pass `browserTracingIntegration` ([#​11765](https://togithub.com/getsentry/sentry-javascript/issues/11765 ))
### [`v7.112.1`](https://togithub.com/getsentry/sentry-javascript/releases/tag/7.112.1 )
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.112.0...7.112.1 )
- fix(ember/v7): Do not create rendering spans without transaction ([#​11750](https://togithub.com/getsentry/sentry-javascript/issues/11750 ))
### [`v7.112.0`](https://togithub.com/getsentry/sentry-javascript/releases/tag/7.112.0 )
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.111.0...7.112.0 )
##### Important Changes
- **feat: Export pluggable integrations from SDK packages ([#​11723](https://togithub.com/getsentry/sentry-javascript/issues/11723 ))**
Instead of installing `@sentry/integrations`, you can now import the pluggable integrations directly from your SDK
package:
```js
// Before
import * as Sentry fromv '@​sentry/browser';
import { dedupeIntegration } from '@​sentry/integrations';
Sentry.init({
integrations: [dedupeIntegration()],
});
// After
import * as Sentry from '@​sentry/browser';
Sentry.init({
integrations: [Sentry.dedupeIntegration()],
});
```
Note that only the functional integrations (e.g. `xxxIntegration()`) are re-exported.
##### Other Changes
- feat(replay): Add "maxCanvasSize" option for replay canvases ([#​11732](https://togithub.com/getsentry/sentry-javascript/issues/11732 ))
- fix(serverless): \[v7] Check if cloud event callback is a function ([#​11734](https://togithub.com/getsentry/sentry-javascript/issues/11734 ))
#### Bundle size 📦
| Path | Size |
| ---------------------------------------------------------------------------------- | ----------------- |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing, Replay, Feedback) - Webpack (gzipped) | 80.72 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing, Replay) - Webpack (gzipped) | 71.69 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing, Replay with Canvas) - Webpack (gzipped) | 75.91 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) | 65.32 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing) - Webpack (gzipped) | 35.62 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. browserTracingIntegration) - Webpack (gzipped) | 35.5 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Feedback) - Webpack (gzipped) | 31.57 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. sendFeedback) - Webpack (gzipped) | 31.58 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) - Webpack (gzipped) | 22.78 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) | 78.9 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 70.27 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing) - ES6 CDN Bundle (gzipped) | 36.02 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) - ES6 CDN Bundle (gzipped) | 25.28 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 221.25 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 109.01 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) - ES6 CDN Bundle (minified & uncompressed) | 75.79 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing) - ES5 CDN Bundle (gzipped) | 39.3 KB |
| [@​sentry/react](https://togithub.com/sentry/react ) (incl. Tracing, Replay) - Webpack (gzipped) | 72.18 KB |
| [@​sentry/react](https://togithub.com/sentry/react ) - Webpack (gzipped) | 22.81 KB |
| [@​sentry/nextjs](https://togithub.com/sentry/nextjs ) Client (incl. Tracing, Replay) - Webpack (gzipped) | 90.01 KB |
| [@​sentry/nextjs](https://togithub.com/sentry/nextjs ) Client - Webpack (gzipped) | 54.15 KB |
| [@​sentry-internal/feedback](https://togithub.com/sentry-internal/feedback ) - Webpack (gzipped) | 17.32 KB |
</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 these updates 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjM1MS4yIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->
2024-05-16 10:06:35 +00:00
Brooooooklyn
c7ddd679fd
feat(server): use native tokenizer impl ( #6960 )
...
### Benchmark
`yarn workspace @affine/server-native bench`
```
┌─────────┬────────────┬─────────┬────────────────────┬──────────┬─────────┐
│ (index) │ Task Name │ ops/sec │ Average Time (ns) │ Margin │ Samples │
├─────────┼────────────┼─────────┼────────────────────┼──────────┼─────────┤
│ 0 │ 'tiktoken' │ '5' │ 176932518.76000002 │ '±4.71%' │ 100 │
│ 1 │ 'native' │ '16' │ 61041597.51000003 │ '±0.60%' │ 100 │
└─────────┴────────────┴─────────┴────────────────────┴──────────┴─────────┘
```
2024-05-16 07:55:10 +00:00
darkskygit
37cb5b86f4
fix: migrate typo ( #6948 )
2024-05-15 14:03:09 +00:00
darkskygit
0076359d6a
feat: add retry support for copilot ( #6947 )
2024-05-15 11:02:37 +00:00
darkskygit
7e7a4120aa
feat: renew models ( #6934 )
2024-05-15 09:13:05 +00:00
darkskygit
98e218af93
feat: allow undefined new model ( #6933 )
2024-05-14 13:05:07 +00:00
LongYinan
b036f1b5c9
Revert "feat: renew models ( #6926 )"
...
This reverts commit 5bf9351be4
.
2024-05-14 18:46:32 +08:00
darkskygit
8881286025
chore: adjust log level ( #6913 )
2024-05-14 09:32:29 +00:00
darkskygit
5bf9351be4
feat: renew models ( #6926 )
2024-05-14 08:54:58 +00:00
fundon
d8b3a0b6d5
fix: improve make it real action ( #6830 )
2024-05-09 08:15:34 +00:00
renovate
0912fe113f
chore: bump up oxlint version to v0.3.2 ( #6763 )
...
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [oxlint](https://oxc-project.github.io ) ([source](https://togithub.com/oxc-project/oxc/tree/HEAD/npm/oxlint )) | [`0.3.1` -> `0.3.2`](https://renovatebot.com/diffs/npm/oxlint/0.3.1/0.3.2 ) | [![age](https://developer.mend.io/api/mc/badges/age/npm/oxlint/0.3.2?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/oxlint/0.3.2?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/oxlint/0.3.1/0.3.2?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/oxlint/0.3.1/0.3.2?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>oxc-project/oxc (oxlint)</summary>
### [`v0.3.2`](https://togithub.com/oxc-project/oxc/releases/tag/oxlint_v0.3.2 ): oxlint v0.3.2
[Compare Source](99d46f9e48...a7940868c6
)
#### What's Changed
[Oxlint Import Plugin Alpha Release](http://localhost:5173/blog/2024-05-04-import-plugin-alpha.html )
- feat(linter): [@​typescript-eslint/prefer-literal-enum-member](https://togithub.com/typescript-eslint/prefer-literal-enum-member ) by [@​kaykdm](https://togithub.com/kaykdm ) in [https://github.com/oxc-project/oxc/pull/3134 ](https://togithub.com/oxc-project/oxc/pull/3134 )
- feat(linter): add more "ban-ts-comment" test cases. by [@​woai3c](https://togithub.com/woai3c ) in [https://github.com/oxc-project/oxc/pull/3107 ](https://togithub.com/oxc-project/oxc/pull/3107 )
- feat(linter): eslint-plugin-jest/require-hook by [@​eryue0220](https://togithub.com/eryue0220 ) in [https://github.com/oxc-project/oxc/pull/3110 ](https://togithub.com/oxc-project/oxc/pull/3110 )
- feat(linter): eslint/no-await-in-loop by [@​woai3c](https://togithub.com/woai3c ) in [https://github.com/oxc-project/oxc/pull/3070 ](https://togithub.com/oxc-project/oxc/pull/3070 )
- feat(linter): typescript-eslint/prefer-enum-initializers by [@​todor-a](https://togithub.com/todor-a ) in [https://github.com/oxc-project/oxc/pull/3097 ](https://togithub.com/oxc-project/oxc/pull/3097 )
- feat(linter/jsdoc): Implement `implements-on-classes` rule by [@​leaysgur](https://togithub.com/leaysgur ) in [https://github.com/oxc-project/oxc/pull/3081 ](https://togithub.com/oxc-project/oxc/pull/3081 )
- feat(linter/jsdoc): Implement check-tag-names rule by [@​leaysgur](https://togithub.com/leaysgur ) in [https://github.com/oxc-project/oxc/pull/3029 ](https://togithub.com/oxc-project/oxc/pull/3029 )
- feat(linter/jsdoc): Implement no-defaults rule by [@​leaysgur](https://togithub.com/leaysgur ) in [https://github.com/oxc-project/oxc/pull/3098 ](https://togithub.com/oxc-project/oxc/pull/3098 )
- feat(linter/jsdoc): Implement require-yields rule by [@​leaysgur](https://togithub.com/leaysgur ) in [https://github.com/oxc-project/oxc/pull/3150 ](https://togithub.com/oxc-project/oxc/pull/3150 )
- feat(linter/jsdoc): Support settings.ignore(Private|Internal) by [@​leaysgur](https://togithub.com/leaysgur ) in [https://github.com/oxc-project/oxc/pull/3147 ](https://togithub.com/oxc-project/oxc/pull/3147 )
#### New Contributors
- [@​vsn4ik](https://togithub.com/vsn4ik ) made their first contribution in [https://github.com/oxc-project/oxc/pull/3118 ](https://togithub.com/oxc-project/oxc/pull/3118 )
**Full Changelog**: https://github.com/oxc-project/oxc/compare/oxlint_v0.3.1...oxlint_v0.3.2
</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMzEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjMzMS4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->
2024-05-07 11:22:19 +00:00
darkskygit
8e0a0a7f02
fix: wait activated event ( #6814 )
2024-05-07 09:44:38 +00:00
forehalo
7041991967
fix(server): allow promotion codes if no discount applied ( #6810 )
2024-05-07 07:44:41 +00:00
darkskygit
8194cb7773
chore: update prompts ( #6782 )
2024-05-06 12:42:12 +00:00
forehalo
d657f4091a
fix(server): do not allow registration through gql ( #6775 )
2024-05-06 11:11:57 +00:00
pengx17
4ea31cbb35
fix: update prompts ( #6779 )
...
fix AFF-1021
2024-05-06 10:58:56 +00:00
darkskygit
13f40f435d
feat: improve query performence ( #6764 )
2024-05-06 09:12:04 +00:00
pengx17
1303a6a8b4
fix: update prompts (find actions) ( #6773 )
...
fix AFF-1019
2024-05-06 08:29:51 +00:00
forehalo
3ee794a8f2
fix(server): do not throttle healthy checking api ( #6771 )
2024-05-06 06:59:50 +00:00
forehalo
cebb841430
feat(server): add flag to disable new sign ups ( #6752 )
2024-04-30 15:19:30 +00:00
forehalo
f566457dcf
test(server): payment tests ( #6737 )
2024-04-30 06:59:54 +00:00
pengx17
eb7904bf62
fix(core): prompt message tunning ( #6747 )
...
fix AFF-1003
2024-04-30 13:18:20 +08:00
forehalo
a14194c482
fix(server): blob controller permission ( #6746 )
2024-04-30 03:47:00 +00:00
pengx17
7c5a259e84
fix(core): update prompts ( #6738 )
...
Update prompts:
When sending a message to openai, we actually send two messages.
There are two issues here:
1. the role in the first message shall be user or system
2. the content in the first message is not being interpolated at all.
```
[
{
role: "assistant",
createdAt: "2024-04-27T06:30:34.820Z",
params: {
language: "French",
},
content: "You are a translation expert, please translate the following content into French, and only perform the translation action, keeping the translated content in the same format as the original content:\n\n \"\"\"\"\n\n \n\n \"\"\"\"",
},
{
role: "user",
content: "Basic things you should know:",
attachments: undefined,
params: {
language: "French",
},
createdAt: "2024-04-29T09:42:11.466Z",
},
]
```
In this PR I removed `content` from prompts and let open ai use the second message (user) as the input.
2024-04-29 11:02:16 +00:00
Brooooooklyn
81729703d9
chore(server): use native file-type implementation ( #6686 )
2024-04-29 04:46:26 +00:00
Brooooooklyn
fed2503782
refactor(server): rename @affine/storage to @affine/server-native ( #6682 )
...
- Close https://github.com/toeverything/AFFiNE/issues/6680
2024-04-29 02:14:20 +00:00
darkskygit
b639e52dca
feat: allow custom seed ( #6709 )
2024-04-26 11:40:07 +00:00
darkskygit
850bbee629
test: copilot unit & e2e test ( #6649 )
...
fix CLOUD-31
2024-04-26 09:43:35 +00:00
darkskygit
8bdd940ac8
fix: some event missing with multiple env webhook ( #6705 )
2024-04-26 02:56:09 +00:00
darkskygit
15c1e46680
chore: use default throttler replace strict throttler ( #6698 )
2024-04-26 02:18:20 +00:00
forehalo
2c228a35f8
fix(server): stripe webhook calls in random order ( #6702 )
2024-04-25 12:22:07 +00:00
darkskygit
a0c219e036
feat: use default params if not provided ( #6701 )
2024-04-25 10:59:46 +00:00
forehalo
3297486e31
fix(server): skip throttle for currentUser ( #6700 )
2024-04-25 09:45:31 +00:00
darkskygit
ea3f427918
fix: large transaction ( #6695 )
2024-04-25 08:33:21 +00:00
pengx17
050efe3749
fix(core): update prompts ( #6693 )
...
update based on latest docs
2024-04-25 05:26:50 +00:00
doouding
6525c99631
feat(server): new prompt for expand mind map ( #6678 )
...
feat(server): new prompt for expand mind map
feat: add migration file
2024-04-24 07:10:11 +00:00
darkskygit
cbe9e10d44
chore: add copilot vision dev mode polyfill ( #6671 )
2024-04-23 07:41:02 +00:00
darkskygit
64ad83f889
feat: handle stream error ( #6653 )
2024-04-23 03:46:46 +00:00
darkskygit
01a0f60d03
fix: history attachment query ( #6670 )
2024-04-23 03:34:59 +00:00
pengx17
71a5be5385
fix(server): update prompts ( #6664 )
...
fix AFF-921
2024-04-22 14:09:53 +00:00
forehalo
94de6f5853
fix(server): always return created timestamp of chat messages ( #6658 )
2024-04-22 08:39:42 +00:00
forehalo
e8bcb75602
fix(server): use post request to consume magic link token ( #6656 )
2024-04-22 07:15:26 +00:00
darkskygit
ae679a937f
fix: copilot storage config ( #6650 )
2024-04-22 03:00:18 +00:00
forehalo
098e717688
chore(server): remove useless free subscription enum ( #6634 )
2024-04-19 13:34:59 +00:00
darkskygit
657a5250ad
feat: update chat prompt ( #6639 )
...
fix AFF-878
fix AFF-852 (maybe)
2024-04-19 12:34:02 +00:00
darkskygit
97669acb40
chore: enable ai feature in dev ( #6618 )
2024-04-19 08:12:53 +00:00
EYHN
5e243de392
feat(server): auto refresh session ( #6613 )
2024-04-19 07:00:12 +00:00
fundon
7772a103fa
fix(server): dev user configuration issue ( #6619 )
2024-04-19 03:40:04 +00:00
darkskygit
3cc3af8d5d
feat: remove message query ( #6622 )
...
related #6620
2024-04-18 16:30:10 +00:00
darkskygit
28f2ff24b9
fix: copilot blob process ( #6612 )
2024-04-18 15:36:30 +00:00
darkskygit
b3b9e9a056
chore: cleanup outdated api ( #6604 )
2024-04-18 14:42:46 +00:00
soumyasen10
19f8407d7f
fix: disable default save page as ( #6548 )
...
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
2024-04-18 16:19:03 +08:00
forehalo
d9e6561762
feat(server): add created timestamp to history ( #6607 )
2024-04-18 07:06:47 +00:00
pengx17
5fc56a20ac
feat: adopt createMessage upload api ( #6596 )
2024-04-18 06:55:29 +00:00
DarkSky
ccb3bed91e
feat: add blob upload support for copilot ( #6584 )
2024-04-17 14:05:38 +00:00
liuyi
07aeab6ac8
fix(server): app cannot start in graphql only flavor ( #6598 )
2024-04-17 18:29:04 +08:00
DarkSky
ec186a65e7
fix(server): avoid store unpaid subscriptions ( #6593 )
2024-04-17 16:43:17 +08:00
liuyi
e53d5e2e3d
chore(server): clean up throttler ( #6326 )
2024-04-17 16:32:26 +08:00
forehalo
651a99a48e
fix(server): avoid store unpaid subscriptions
2024-04-17 16:25:03 +08:00
liuyi
5b315bfc81
fix(server): only returns active subscriptions ( #6590 )
2024-04-17 16:19:34 +08:00
EYHN
06fda3b62c
feat(infra): framework
2024-04-17 15:09:09 +08:00
darkskygit
83d8587a45
fix: missing feature upsert ( #6585 )
2024-04-17 02:01:01 +00:00
forehalo
e1c292b8b5
feat(server): support registering ai early access users ( #6565 )
2024-04-16 13:54:08 +00:00
darkskygit
677c4711df
feat: unsplash api proxy ( #6572 )
2024-04-16 13:33:07 +00:00
darkskygit
3d15e8353b
feat: refresh prompts ( #6568 )
2024-04-16 10:26:54 +00:00
darkskygit
1b0864eb60
feat: check quota correctly ( #6561 )
2024-04-16 09:41:48 +00:00
darkskygit
1a3d1a5421
fix: upgrade plan correctly ( #6543 )
2024-04-15 06:20:24 +00:00
pengx17
9b620ecbc9
fix(core): use backend prompts ( #6542 )
2024-04-12 21:29:14 +08:00
darkskygit
2336638996
fix: cannot query chat history ( #6539 )
2024-04-12 12:16:43 +00:00
darkskygit
fc51b68674
fix: pick copilot provider depend on model ( #6540 )
2024-04-12 12:01:39 +00:00
darkskygit
e77475aca5
feat: detailed copilot histories ( #6523 )
2024-04-12 08:39:32 +00:00
EYHN
9e7a2fcf0e
feat(server): add pro quota to dev user ( #6532 )
2024-04-12 06:45:18 +00:00
regischen
244e3fd71b
fix: change action ( #6519 )
2024-04-12 05:17:10 +00:00
fundon
13b39fc5f3
feat(core): ai images ( #6506 )
2024-04-12 03:58:33 +00:00
renovate
66231e0e41
chore: bump up oxlint version to v0.2.17 ( #5778 )
...
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [oxlint](https://oxc-project.github.io ) ([source](https://togithub.com/oxc-project/oxc/tree/HEAD/npm/oxlint )) | [`0.2.14` -> `0.2.17`](https://renovatebot.com/diffs/npm/oxlint/0.2.14/0.2.17 ) | [![age](https://developer.mend.io/api/mc/badges/age/npm/oxlint/0.2.17?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/oxlint/0.2.17?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/oxlint/0.2.14/0.2.17?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/oxlint/0.2.14/0.2.17?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>oxc-project/oxc (oxlint)</summary>
### [`v0.2.17`](https://togithub.com/oxc-project/oxc/releases/tag/oxlint_v0.2.17 ): oxlint v0.2.17
[Compare Source](7066d55153...df11d10a22
)
##### What's Changed
- feat(linter): eslint-plugin-jest/prefer-lowercase-title by [@​eryue0220](https://togithub.com/eryue0220 ) in [https://github.com/oxc-project/oxc/pull/2911 ](https://togithub.com/oxc-project/oxc/pull/2911 )
- feat(linter): typescript-eslint/consistent-type-definitions by [@​todor-a](https://togithub.com/todor-a ) in [https://github.com/oxc-project/oxc/pull/2885 ](https://togithub.com/oxc-project/oxc/pull/2885 )
- fix(cli): fix `oxlint --format json` yields 0 files to lint by [@​Boshen](https://togithub.com/Boshen ) in [https://github.com/oxc-project/oxc/pull/2940 ](https://togithub.com/oxc-project/oxc/pull/2940 )
- fix(cli): if format is json do not print summary information ([#​2899](https://togithub.com/oxc-project/oxc/issues/2899 )) by [@​kalvenschraut](https://togithub.com/kalvenschraut ) in [https://github.com/oxc-project/oxc/pull/2925 ](https://togithub.com/oxc-project/oxc/pull/2925 )
- fix(linter): import/no-cycle ignore type-only imports by [@​JohnDaly](https://togithub.com/JohnDaly ) in [https://github.com/oxc-project/oxc/pull/2924 ](https://togithub.com/oxc-project/oxc/pull/2924 )
- refactor(semantic/jsdoc): Rework JSDoc struct for better Span handling by [@​leaysgur](https://togithub.com/leaysgur ) in [https://github.com/oxc-project/oxc/pull/2917 ](https://togithub.com/oxc-project/oxc/pull/2917 )
##### New Contributors
- [@​bradzacher](https://togithub.com/bradzacher ) made their first contribution in [https://github.com/oxc-project/oxc/pull/2938 ](https://togithub.com/oxc-project/oxc/pull/2938 )
**Full Changelog**: https://github.com/oxc-project/oxc/compare/oxlint_v0.2.16...oxlint_v0.2.17
### [`v0.2.16`](https://togithub.com/oxc-project/oxc/releases/tag/oxlint_v0.2.16 ): oxlint v0.2.16
[Compare Source](e7307ed23c...7066d55153
)
#### What's Changed
- feat(linter): [@​typescript-eslint/prefer-for-of](https://togithub.com/typescript-eslint/prefer-for-of ) by [@​charnog](https://togithub.com/charnog ) in [https://github.com/oxc-project/oxc/pull/2789 ](https://togithub.com/oxc-project/oxc/pull/2789 )
- feat(linter): Implement jsdoc/check-access by [@​leaysgur](https://togithub.com/leaysgur ) in [https://github.com/oxc-project/oxc/pull/2642 ](https://togithub.com/oxc-project/oxc/pull/2642 )
- feat(linter): Implement jsdoc/empty-tags by [@​leaysgur](https://togithub.com/leaysgur ) in [https://github.com/oxc-project/oxc/pull/2893 ](https://togithub.com/oxc-project/oxc/pull/2893 )
- feat(linter): eslint-plugin-jest/prefer-mock-promise-sorthand by [@​eryue0220](https://togithub.com/eryue0220 ) in [https://github.com/oxc-project/oxc/pull/2864 ](https://togithub.com/oxc-project/oxc/pull/2864 )
- feat(linter/import): Add `ignoreTypes` option for the `import/no-cycle` rule by [@​JohnDaly](https://togithub.com/JohnDaly ) in [https://github.com/oxc-project/oxc/pull/2905 ](https://togithub.com/oxc-project/oxc/pull/2905 )
- fix(ast): `FinallyClause` won't get visited as `BlockStatement` anymore. by [@​rzvxa](https://togithub.com/rzvxa ) in [https://github.com/oxc-project/oxc/pull/2881 ](https://togithub.com/oxc-project/oxc/pull/2881 )
- fix(linter): handle self closing script tags in astro partial loader ([#​2017](https://togithub.com/oxc-project/oxc/issues/2017 )) by [@​kalvenschraut](https://togithub.com/kalvenschraut ) in [https://github.com/oxc-project/oxc/pull/2907 ](https://togithub.com/oxc-project/oxc/pull/2907 )
- fix(linter): svelte partial loader handle generics ([#​2875](https://togithub.com/oxc-project/oxc/issues/2875 )) by [@​kalvenschraut](https://togithub.com/kalvenschraut ) in [https://github.com/oxc-project/oxc/pull/2906 ](https://togithub.com/oxc-project/oxc/pull/2906 )
#### New Contributors
- [@​charnog](https://togithub.com/charnog ) made their first contribution in [https://github.com/oxc-project/oxc/pull/2789 ](https://togithub.com/oxc-project/oxc/pull/2789 )
- [@​kalvenschraut](https://togithub.com/kalvenschraut ) made their first contribution in [https://github.com/oxc-project/oxc/pull/2906 ](https://togithub.com/oxc-project/oxc/pull/2906 )
- [@​JohnDaly](https://togithub.com/JohnDaly ) made their first contribution in [https://github.com/oxc-project/oxc/pull/2905 ](https://togithub.com/oxc-project/oxc/pull/2905 )
**Full Changelog**: https://github.com/oxc-project/oxc/compare/oxlint_v0.2.15...oxlint_v0.2.16
### [`v0.2.15`](https://togithub.com/oxc-project/oxc/releases/tag/oxlint_v0.2.15 ): oxlint v0.2.15
[Compare Source](b1343d7bcb...e7307ed23c
)
#### What's Changed
- feat(linter): default_param_last by [@​JoSeBu1](https://togithub.com/JoSeBu1 ) in [https://github.com/oxc-project/oxc/pull/2756 ](https://togithub.com/oxc-project/oxc/pull/2756 )
- feat(linter): eslint-plugin-jest/no-untyped-mock-factory by [@​eryue0220](https://togithub.com/eryue0220 ) in [https://github.com/oxc-project/oxc/pull/2807 ](https://togithub.com/oxc-project/oxc/pull/2807 )
- feat(linter): eslint-plugin-jest/prefer-comparison-matcher by [@​eryue0220](https://togithub.com/eryue0220 ) in [https://github.com/oxc-project/oxc/pull/2806 ](https://togithub.com/oxc-project/oxc/pull/2806 )
- feat(linter): eslint-plugin-react checked-requires-onchange-or-readonly by [@​keita-hino](https://togithub.com/keita-hino ) in [https://github.com/oxc-project/oxc/pull/2754 ](https://togithub.com/oxc-project/oxc/pull/2754 )
- feat(linter): eslint/no-iterator by [@​JoSeBu1](https://togithub.com/JoSeBu1 ) in [https://github.com/oxc-project/oxc/pull/2758 ](https://togithub.com/oxc-project/oxc/pull/2758 )
- feat(linter): fallback to the default tsconfig path by [@​Dunqing](https://togithub.com/Dunqing ) in [https://github.com/oxc-project/oxc/pull/2842 ](https://togithub.com/oxc-project/oxc/pull/2842 )
- feat(linter): no_script_url by [@​JoSeBu1](https://togithub.com/JoSeBu1 ) in [https://github.com/oxc-project/oxc/pull/2761 ](https://togithub.com/oxc-project/oxc/pull/2761 )
- feat(linter/import) check deep namespace in namespace rule by [@​Dunqing](https://togithub.com/Dunqing ) in [https://github.com/oxc-project/oxc/pull/2805 ](https://togithub.com/oxc-project/oxc/pull/2805 )
- feat(linter/import) check module import in no_duplicates by [@​Dunqing](https://togithub.com/Dunqing ) in [https://github.com/oxc-project/oxc/pull/2771 ](https://togithub.com/oxc-project/oxc/pull/2771 )
- feat(linter/import) check type import in no_duplicates by [@​Dunqing](https://togithub.com/Dunqing ) in [https://github.com/oxc-project/oxc/pull/2777 ](https://togithub.com/oxc-project/oxc/pull/2777 )
- feat(linter/import) support allow_computed option in namespace by [@​Dunqing](https://togithub.com/Dunqing ) in [https://github.com/oxc-project/oxc/pull/2840 ](https://togithub.com/oxc-project/oxc/pull/2840 )
- feat(linter/import) support check re-export in named by [@​Dunqing](https://togithub.com/Dunqing ) in [https://github.com/oxc-project/oxc/pull/2769 ](https://togithub.com/oxc-project/oxc/pull/2769 )
- feat(linter/import): ignore type-only imports and exports in no_unresolved by [@​Dunqing](https://togithub.com/Dunqing ) in [https://github.com/oxc-project/oxc/pull/2849 ](https://togithub.com/oxc-project/oxc/pull/2849 )
- fix(linter/import): false positive for indirect export in namespace by [@​Dunqing](https://togithub.com/Dunqing ) in [https://github.com/oxc-project/oxc/pull/2862 ](https://togithub.com/oxc-project/oxc/pull/2862 )
- fix(linter/import): ignore export declaration in no-duplicates by [@​Dunqing](https://togithub.com/Dunqing ) in [https://github.com/oxc-project/oxc/pull/2863 ](https://togithub.com/oxc-project/oxc/pull/2863 )
- fix(linter/max-lines): only report codes that exceed the line limit by [@​mysteryven](https://togithub.com/mysteryven ) in [https://github.com/oxc-project/oxc/pull/2778 ](https://togithub.com/oxc-project/oxc/pull/2778 )
- fix(parser): add support for empty module declaration by [@​rzvxa](https://togithub.com/rzvxa ) in [https://github.com/oxc-project/oxc/pull/2834 ](https://togithub.com/oxc-project/oxc/pull/2834 )
#### New Contributors
- [@​rzvxa](https://togithub.com/rzvxa ) made their first contribution in [https://github.com/oxc-project/oxc/pull/2764 ](https://togithub.com/oxc-project/oxc/pull/2764 )
**Full Changelog**: https://github.com/oxc-project/oxc/compare/oxlint_v0.2.14...oxlint_v0.2.15
</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5In0=-->
2024-04-11 10:51:02 +00:00
DarkSky
db1206dbd5
fix: re-create session should skip rewrite messages ( #6513 )
2024-04-11 12:22:45 +08: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
liuyi
797e3c5b35
fix(server): do not force sign in password length ( #6188 )
...
hotfix
2024-03-19 10:58:34 +08: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
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
DarkSky
3432f355b0
feat: backend module awareness & optional request ( #5909 )
2024-02-28 08:29:37 +00:00
liuyi
a38f7ee252
fix(server): sender passed to nextauth is never used ( #5938 )
2024-02-28 05:44:25 +00:00
liuyi
540d079308
ci: fix selfhost ( #5920 )
...
## **Type**
enhancement
___
## **Description**
- Introduced a new ESM module resolution setup using `ts-node` to enhance the development and deployment process.
- Implemented a dynamic loader script registration mechanism to facilitate ESM module loading.
- Simplified the predeploy script execution by refining environment variable handling and stdout configuration.
- Updated `package.json` to reflect changes in script commands for better ESM support and added necessary dependencies for `ts-node` and `typescript`.
___
## **Changes walkthrough**
<table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>loader.js</strong><dd><code>Introduce ESM Module Resolution via ts-node</code> </dd></summary>
<hr>
packages/backend/server/scripts/loader.js
<li>Introduced <code>ts-node</code> configuration for ESM module resolution.<br> <li> Exported a <code>resolve</code> function for module resolution.<br>
</details>
</td>
<td><a href="https:/toeverything/AFFiNE/pull/5920/files#diff-9ed793897a493633028d510db0742ff38d2d86471c54b17513d4354c51597ef8">+11/-0</a> </td>
</tr>
<tr>
<td>
<details>
<summary><strong>register.js</strong><dd><code>Implement Dynamic Loader Script Registration</code> </dd></summary>
<hr>
packages/backend/server/scripts/register.js
<li>Implemented dynamic registration of the loader script.<br> <li> Utilized <code>node:module</code> and <code>node:url</code> for script registration.<br>
</details>
</td>
<td><a href="https:/toeverything/AFFiNE/pull/5920/files#diff-64831012a09f2bc4bc5a611ddb8e0871b0e83588de6c5d4f2f5cb1dae8fff244">+4/-0</a> </td>
</tr>
<tr>
<td>
<details>
<summary><strong>self-host-predeploy.js</strong><dd><code>Simplify Predeploy Script Execution</code> </dd></summary>
<hr>
packages/backend/server/scripts/self-host-predeploy.js
<li>Simplified environment variable passing to <code>execSync</code>.<br> <li> Changed stdout handling to inherit from the parent process.<br>
</details>
</td>
<td><a href="https:/toeverything/AFFiNE/pull/5920/files#diff-bd7b0be14c198018c21dadda6945a779c57d13e4c8584ee62da4baa99d370664">+3/-5</a> </td>
</tr>
<tr>
<td>
<details>
<summary><strong>package.json</strong><dd><code>Update Scripts and Dependencies for ESM Support</code> </dd></summary>
<hr>
packages/backend/server/package.json
<li>Updated script commands for ESM compatibility.<br> <li> Added <code>ts-node</code> and <code>typescript</code> dependencies.<br> <li> Removed redundant <code>--es-module-specifier-resolution=node</code> flags.<br>
</details>
</td>
<td><a href="https:/toeverything/AFFiNE/pull/5920/files#diff-a6530c6fe539aaa49ff0a7a80bc4362c1d95c419fdd19125415dcc869b31a443">+6/-6</a> </td>
</tr>
</table></td></tr></tr></tbody></table>
___
> ✨ **PR-Agent usage**:
>Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions
2024-02-27 07:22:21 +00:00
LongYinan
ae41c6c544
chore: bump all dependencies ( #5891 )
2024-02-23 09:37:14 +00:00
DarkSky
d9fee81b10
fix(server): handle unexpected error from storage provider ( #5888 )
...
![image](https://github.com/toeverything/AFFiNE/assets/25152247/5a914c7d-0cc2-44ad-97a9-3d39199d8131 )
handle unexpected error in workspace usage calc
2024-02-23 08:53:32 +00:00
liuyi
4d421a324f
refactor(server): import prisma from @prisma/client
( #5863 )
2024-02-22 07:46:57 +00:00
LongYinan
18e212b95c
chore: bump up linter to v7 (major) ( #5820 )
...
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/typescript-eslint ) ([source](https://togithub.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin )) | [`^6.13.1` -> `^7.0.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2feslint-plugin/6.13.1/7.0.2 ) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@typescript-eslint%2feslint-plugin/7.0.2?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@typescript-eslint%2feslint-plugin/7.0.2?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@typescript-eslint%2feslint-plugin/6.13.1/7.0.2?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@typescript-eslint%2feslint-plugin/6.13.1/7.0.2?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) |
| [@typescript-eslint/parser](https://togithub.com/typescript-eslint/typescript-eslint ) ([source](https://togithub.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser )) | [`^6.13.1` -> `^7.0.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2fparser/6.13.1/7.0.2 ) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@typescript-eslint%2fparser/7.0.2?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@typescript-eslint%2fparser/7.0.2?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@typescript-eslint%2fparser/6.13.1/7.0.2?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@typescript-eslint%2fparser/6.13.1/7.0.2?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>typescript-eslint/typescript-eslint (@​typescript-eslint/eslint-plugin)</summary>
### [`v7.0.2`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#702-2024-02-19 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v7.0.1...v7.0.2 )
##### 🩹 Fixes
- fix tsconfig-less check errors, fix `@types/eslint` incompatibilities, add tests
##### ❤️ Thank You
- Brad Zacher
- Gareth Jones
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v7.0.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#701-2024-02-12 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v7.0.0...v7.0.1 )
##### 🩹 Fixes
- **eslint-plugin:** update peer dep for parser
##### ❤️ Thank You
- Tim Dorr
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v7.0.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#700-2024-02-12 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.21.0...v7.0.0 )
##### 🚀 Features
- ⚠️ bump ESLint, NodeJS, and TS minimum version requirements
- add support for flat configs
##### 🩹 Fixes
- **eslint-plugin:** \[prefer-find] stop throwing type errors when converting symbols to numbers
##### ⚠️ Breaking Changes
- ⚠️ bump ESLint, NodeJS, and TS minimum version requirements
##### ❤️ Thank You
- Brad Zacher
- Kirk Waiblinger
- StyleShit
- YeonJuan
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
#### 6.21.0 (2024-02-05)
##### 🚀 Features
- export plugin metadata
- allow `parserOptions.project: false`
- **eslint-plugin:** add rule prefer-find
##### 🩹 Fixes
- **eslint-plugin:** \[no-unused-vars] don't report on types referenced in export assignment expression
- **eslint-plugin:** \[switch-exhaustiveness-check] better support for intersections, infinite types, non-union values
- **eslint-plugin:** \[consistent-type-imports] dont report on types used in export assignment expressions
- **eslint-plugin:** \[no-unnecessary-condition] handle left-hand optional with exactOptionalPropertyTypes option
- **eslint-plugin:** \[class-literal-property-style] allow getter when same key setter exists
- **eslint-plugin:** \[no-unnecessary-type-assertion] provide valid fixes for assertions with extra tokens before `as` keyword
##### ❤️ Thank You
- auvred
- Brad Zacher
- Kirk Waiblinger
- Pete Gonzalez
- YeonJuan
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
#### 6.20.0 (2024-01-29)
##### 🚀 Features
- **eslint-plugin:** \[member-ordering] allow easy reuse of the default ordering
##### 🩹 Fixes
- **eslint-plugin:** \[no-useless-template-literals] incorrect bigint autofix result
- **eslint-plugin:** \[prefer-nullish-coalescing] treat any/unknown as non-nullable
- **eslint-plugin:** \[no-useless-template-literals] report Infinity & NaN
- **eslint-plugin:** \[prefer-readonly] disable checking accessors
##### ❤️ Thank You
- Alex Parloti
- auvred
- James Browning
- StyleShit
- YeonJuan
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
#### 6.19.1 (2024-01-22)
##### 🩹 Fixes
- **type-utils:** preventing isUnsafeAssignment infinite recursive calls
- **eslint-plugin:** \[no-unnecessary-condition] fix false positive for type variable
##### ❤️ Thank You
- YeonJuan
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
#### 6.19.0 (2024-01-15)
##### 🚀 Features
- **eslint-plugin:** \[prefer-promise-reject-errors] add rule
- **eslint-plugin:** \[no-array-delete] add new rule
- **eslint-plugin:** \[no-useless-template-literals] add fix suggestions
##### 🩹 Fixes
- **eslint-plugin:** \[no-unnecessary-type-assertion] detect unnecessary non-null-assertion on a call expression
- **eslint-plugin:** \[no-unnecesary-type-assertion] treat unknown/any as nullable
##### ❤️ Thank You
- auvred
- Brad Zacher
- Josh Goldberg ✨
- Joshua Chen
- LJX
- Steven
- StyleShit
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
#### 6.18.1 (2024-01-08)
##### 🩹 Fixes
- **eslint-plugin:** \[no-non-null-assertion] provide valid fix when member access is on next line
- **eslint-plugin:** \[no-unnecessary-condition] improve checking optional callee
- **eslint-plugin:** \[prefer-readonly] support modifiers of unions and intersections
- **eslint-plugin:** \[switch-exhaustiveness-check] fix new allowDefaultCaseForExhaustiveSwitch option
##### ❤️ Thank You
- auvred
- James
- Josh Goldberg ✨
- YeonJuan
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
#### 6.18.0 (2024-01-06)
##### 🚀 Features
- **typescript-estree:** throw on invalid update expressions
- **eslint-plugin:** \[no-var-requires, no-require-imports] allow option
##### ❤️ Thank You
- auvred
- Joshua Chen
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.21.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#6210-2024-02-05 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.20.0...v6.21.0 )
##### 🚀 Features
- export plugin metadata
- allow `parserOptions.project: false`
- **eslint-plugin:** add rule prefer-find
##### 🩹 Fixes
- **eslint-plugin:** \[no-unused-vars] don't report on types referenced in export assignment expression
- **eslint-plugin:** \[switch-exhaustiveness-check] better support for intersections, infinite types, non-union values
- **eslint-plugin:** \[consistent-type-imports] dont report on types used in export assignment expressions
- **eslint-plugin:** \[no-unnecessary-condition] handle left-hand optional with exactOptionalPropertyTypes option
- **eslint-plugin:** \[class-literal-property-style] allow getter when same key setter exists
- **eslint-plugin:** \[no-unnecessary-type-assertion] provide valid fixes for assertions with extra tokens before `as` keyword
##### ❤️ Thank You
- auvred
- Brad Zacher
- Kirk Waiblinger
- Pete Gonzalez
- YeonJuan
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.20.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#6200-2024-01-29 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.19.1...v6.20.0 )
##### 🚀 Features
- **eslint-plugin:** \[member-ordering] allow easy reuse of the default ordering
##### 🩹 Fixes
- **eslint-plugin:** \[no-useless-template-literals] incorrect bigint autofix result
- **eslint-plugin:** \[prefer-nullish-coalescing] treat any/unknown as non-nullable
- **eslint-plugin:** \[no-useless-template-literals] report Infinity & NaN
- **eslint-plugin:** \[prefer-readonly] disable checking accessors
##### ❤️ Thank You
- Alex Parloti
- auvred
- James Browning
- StyleShit
- YeonJuan
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.19.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#6191-2024-01-22 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.19.0...v6.19.1 )
##### 🩹 Fixes
- **type-utils:** preventing isUnsafeAssignment infinite recursive calls
- **eslint-plugin:** \[no-unnecessary-condition] fix false positive for type variable
##### ❤️ Thank You
- YeonJuan
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.19.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#6190-2024-01-15 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.18.1...v6.19.0 )
##### 🚀 Features
- **eslint-plugin:** \[prefer-promise-reject-errors] add rule
- **eslint-plugin:** \[no-array-delete] add new rule
- **eslint-plugin:** \[no-useless-template-literals] add fix suggestions
##### 🩹 Fixes
- **eslint-plugin:** \[no-unnecessary-type-assertion] detect unnecessary non-null-assertion on a call expression
- **eslint-plugin:** \[no-unnecesary-type-assertion] treat unknown/any as nullable
##### ❤️ Thank You
- auvred
- Brad Zacher
- Josh Goldberg ✨
- Joshua Chen
- LJX
- Steven
- StyleShit
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.18.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#6181-2024-01-08 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.18.0...v6.18.1 )
##### 🩹 Fixes
- **eslint-plugin:** \[no-non-null-assertion] provide valid fix when member access is on next line
- **eslint-plugin:** \[no-unnecessary-condition] improve checking optional callee
- **eslint-plugin:** \[prefer-readonly] support modifiers of unions and intersections
- **eslint-plugin:** \[switch-exhaustiveness-check] fix new allowDefaultCaseForExhaustiveSwitch option
##### ❤️ Thank You
- auvred
- James
- Josh Goldberg ✨
- YeonJuan
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.18.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#6180-2024-01-06 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.17.0...v6.18.0 )
##### 🚀 Features
- **typescript-estree:** throw on invalid update expressions
- **eslint-plugin:** \[no-var-requires, no-require-imports] allow option
##### ❤️ Thank You
- auvred
- Joshua Chen
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.17.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#6170-2024-01-01 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.16.0...v6.17.0 )
##### Bug Fixes
- **eslint-plugin:** \[no-restricted-imports] prevent crash when `patterns` or `paths` in options are empty ([#​8108](https://togithub.com/typescript-eslint/typescript-eslint/issues/8108 )) ([675e987](675e987ca1
))
##### Features
- **eslint-plugin:** \[no-floating-promises] flag result of .map(async) ([#​7897](https://togithub.com/typescript-eslint/typescript-eslint/issues/7897 )) ([5857356](5857356962
))
- **eslint-plugin:** \[switch-exhaustiveness-check] add an option to warn against a `default` case on an already exhaustive `switch` ([#​7539](https://togithub.com/typescript-eslint/typescript-eslint/issues/7539 )) ([6a219bd](6a219bdfe6
))
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.16.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#6160-2023-12-25 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.15.0...v6.16.0 )
##### Bug Fixes
- **eslint-plugin:** \[unbound-method] exempt all non-Promise built-in statics ([#​8096](https://togithub.com/typescript-eslint/typescript-eslint/issues/8096 )) ([3182959](31829591e2
))
##### Features
- **eslint-plugin:** deprecate formatting (meta.type: layout) rules ([#​8073](https://togithub.com/typescript-eslint/typescript-eslint/issues/8073 )) ([04dea84](04dea84e8e
))
- **eslint-plugin:** deprecate no-extra-semi in favor of ESLint Stylistic equivalent ([#​8123](https://togithub.com/typescript-eslint/typescript-eslint/issues/8123 )) ([9368bf3](9368bf390a
))
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.15.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#6150-2023-12-18 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.14.0...v6.15.0 )
##### Features
- **eslint-plugin:** \[no-useless-template-literals] add new rule ([#​7957](https://togithub.com/typescript-eslint/typescript-eslint/issues/7957 )) ([ff75785](ff75785f4c
)), closes [#​2846](https://togithub.com/typescript-eslint/typescript-eslint/issues/2846 )
- require-array-sort-compare + toSorted ([#​8052](https://togithub.com/typescript-eslint/typescript-eslint/issues/8052 )) ([c9661c8](c9661c8bbf
))
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.14.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#6140-2023-12-11 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.13.2...v6.14.0 )
##### Bug Fixes
- **eslint-plugin:** add no-unsafe-unary-minus, prefer-destructuring to disable-type-checked ([#​8038](https://togithub.com/typescript-eslint/typescript-eslint/issues/8038 )) ([431cd15](431cd1559f
))
- **eslint-plugin:** correct message for `no-unsafe-unary-minus` ([#​7998](https://togithub.com/typescript-eslint/typescript-eslint/issues/7998 )) ([705370a](705370ac0d
))
##### Features
- **eslint-plugin:** \[explicit-function-return-type] add support for typed class property definitions ([#​8027](https://togithub.com/typescript-eslint/typescript-eslint/issues/8027 )) ([bff47d7](bff47d7885
))
- **eslint-plugin:** \[require-await] allow yielding Promise in async generators ([#​8003](https://togithub.com/typescript-eslint/typescript-eslint/issues/8003 )) ([4c3e704](4c3e704b97
))
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
#### [6.13.2](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.13.1...v6.13.2 ) (2023-12-04)
**Note:** Version bump only for package [@​typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin )
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
#### [6.13.1](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.13.0...v6.13.1 ) (2023-11-28)
**Note:** Version bump only for package [@​typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin )
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.13.2`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#6132-2023-12-04 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.13.1...v6.13.2 )
**Note:** Version bump only for package [@​typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin )
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
</details>
<details>
<summary>typescript-eslint/typescript-eslint (@​typescript-eslint/parser)</summary>
### [`v7.0.2`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#702-2024-02-19 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v7.0.1...v7.0.2 )
##### 🩹 Fixes
- fix tsconfig-less check errors, fix `@types/eslint` incompatibilities, add tests
##### ❤️ Thank You
- Brad Zacher
- Gareth Jones
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v7.0.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#701-2024-02-12 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v7.0.0...v7.0.1 )
This was a version bump only for parser to align it with other projects, there were no code changes.
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v7.0.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#700-2024-02-12 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.21.0...v7.0.0 )
##### 🚀 Features
- ⚠️ bump ESLint, NodeJS, and TS minimum version requirements
- add support for flat configs
##### ⚠️ Breaking Changes
- ⚠️ bump ESLint, NodeJS, and TS minimum version requirements
##### ❤️ Thank You
- Brad Zacher
- Kirk Waiblinger
- StyleShit
- YeonJuan
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
#### 6.21.0 (2024-02-05)
##### 🚀 Features
- allow `parserOptions.project: false`
##### ❤️ Thank You
- auvred
- Brad Zacher
- Kirk Waiblinger
- Pete Gonzalez
- YeonJuan
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
#### 6.20.0 (2024-01-29)
This was a version bump only for parser to align it with other projects, there were no code changes.
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
#### 6.19.1 (2024-01-22)
This was a version bump only for parser to align it with other projects, there were no code changes.
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
#### 6.19.0 (2024-01-15)
This was a version bump only for parser to align it with other projects, there were no code changes.
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
#### 6.18.1 (2024-01-08)
This was a version bump only for parser to align it with other projects, there were no code changes.
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
#### 6.18.0 (2024-01-06)
This was a version bump only for parser to align it with other projects, there were no code changes.
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.21.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#6210-2024-02-05 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.20.0...v6.21.0 )
##### 🚀 Features
- allow `parserOptions.project: false`
##### ❤️ Thank You
- auvred
- Brad Zacher
- Kirk Waiblinger
- Pete Gonzalez
- YeonJuan
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.20.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#6200-2024-01-29 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.19.1...v6.20.0 )
This was a version bump only for parser to align it with other projects, there were no code changes.
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.19.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#6191-2024-01-22 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.19.0...v6.19.1 )
This was a version bump only for parser to align it with other projects, there were no code changes.
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.19.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#6190-2024-01-15 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.18.1...v6.19.0 )
This was a version bump only for parser to align it with other projects, there were no code changes.
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.18.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#6181-2024-01-08 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.18.0...v6.18.1 )
This was a version bump only for parser to align it with other projects, there were no code changes.
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.18.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#6180-2024-01-06 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.17.0...v6.18.0 )
This was a version bump only for parser to align it with other projects, there were no code changes.
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.17.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#6170-2024-01-01 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.16.0...v6.17.0 )
**Note:** Version bump only for package [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser )
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.16.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#6160-2023-12-25 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.15.0...v6.16.0 )
**Note:** Version bump only for package [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser )
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.15.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#6150-2023-12-18 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.14.0...v6.15.0 )
**Note:** Version bump only for package [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser )
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.14.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#6140-2023-12-11 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.13.2...v6.14.0 )
**Note:** Version bump only for package [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser )
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
#### [6.13.2](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.13.1...v6.13.2 ) (2023-12-04)
**Note:** Version bump only for package [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser )
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
#### [6.13.1](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.13.0...v6.13.1 ) (2023-11-28)
**Note:** Version bump only for package [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser )
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
### [`v6.13.2`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#6132-2023-12-04 )
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.13.1...v6.13.2 )
**Note:** Version bump only for package [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser )
You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning ) and [releases](https://main--typescript-eslint.netlify.app/users/releases ) on our website.
</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 these updates 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIwMC4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5In0=-->
2024-02-20 04:14:37 +00:00
DarkSky
fd18732e6e
feat: use custom verify token policy ( #5836 )
2024-02-20 09:47:27 +08:00
liuyi
df157819dc
feat(server): allow customize mailer server ( #5835 )
2024-02-19 14:37:08 +00:00
DarkSky
d665eaec34
feat: refresh new workspace feature ( #5834 )
2024-02-19 21:58:54 +08:00
liuyi
296d47f102
refactor(server): separate s3 & r2 storage to plugin ( #5805 )
2024-02-05 15:10:09 +00:00
DarkSky
25e8a2a22f
feat: sync client versioning ( #5645 )
...
after this pr, server will only accept client that have some major version
the client version <0.12 will be rejected by the server, >= 0.12 can receive outdated messages and notify users
2024-02-05 08:43:50 +00:00
liuyi
d9c2dc8dfb
fix(server): apply env overrides after all config merged ( #5795 )
2024-02-04 06:38:31 +00:00
liuyi
bef266ae3b
refactor(server): reorganize server configs ( #5753 )
2024-02-02 08:32:07 +00:00
liuyi
2f3c6f104e
fix(server): doc upsert without row lock ( #5765 )
2024-02-01 09:49:02 +00:00
DarkSky
1db8019292
feat: ignore case for email ( #5754 )
...
fix #5738
2024-02-01 05:05:16 +00:00
LongYinan
e26d978b26
fix(server): resolve cherry-pick issue
2024-01-31 22:00:20 +08:00
liuyi
e3b8d0dba4
feat(server): allow pass coupon to checkout session ( #5749 )
2024-01-31 21:34:22 +08:00
liuyi
f1ccc504b5
fix(server): doc upsert race condition ( #5755 )
2024-01-31 21:13:29 +08:00
liuyi
26db1d436d
refactor(server): server errors ( #5741 )
...
standardize the error raising in both GraphQL Resolvers and Controllers.
Now, All user aware errors should be throwed with `HttpException`'s variants, for example `NotFoundException`.
> Directly throwing `GraphQLError` are forbidden.
The GraphQL errorFormatter will handle it automatically and set `code`, `status` in error extensions.
At the same time, the frontend `GraphQLError` should be imported from `@affine/graphql`, which introduce a better error extensions type.
----
controller example:
```js
@Get('/docs/${id}')
doc() {
// ...
// imported from '@nestjs/common'
throw new NotFoundException('Doc is not found.');
// ...
}
```
the above will response as:
```
status: 404 Not Found
{
"message": "Doc is not found.",
"statusCode": 404,
"error": "Not Found"
}
```
resolver example:
```js
@Mutation()
invite() {
// ...
throw new PayloadTooLargeException('Workspace seats is full.')
// ...
}
```
the above will response as:
```
status: 200 Ok
{
"data": null,
"errors": [
{
"message": "Workspace seats is full.",
"extensions": {
"code": 404,
"status": "Not Found"
}
}
]
}
```
for frontend GraphQLError user-friend, a helper function introduced:
```js
import { findGraphQLError } from '@affine/graphql'
fetch(query)
.catch(errOrArr => {
const e = findGraphQLError(errOrArr, e => e.extensions.code === 404)
if (e) {
// handle
}
})
```
2024-01-31 08:43:03 +00:00
liuyi
72d9cc1e5b
chore(storage): bump y-octo ( #5751 )
2024-01-31 06:54:33 +00:00
liuyi
db8e49b046
refactor(server): throw Unauthorized instead if user is not signed in ( #5746 )
2024-01-31 02:12:22 +00:00
DarkSky
fc8a48fb43
feat: add business blob limit ( #5734 )
2024-01-29 08:32:35 +00:00
DarkSky
070d5ca471
feat: impl unlimited features ( #5659 )
2024-01-26 08:28:54 +00:00
DarkSky
fdffe90892
fix: consume blob stream correctly ( #5706 )
...
- use correctly endpoint in r2
- consume blob stream correctly
2024-01-25 10:59:53 +00:00
liuyi
0f67c683c9
fix(server): add metrics missing attributes ( #5682 )
2024-01-24 08:06:34 +00:00
JimmFly
25897dc404
feat(workspace): add blob and storage limit ( #5535 )
...
close TOV-343 AFF-508 TOV-461 TOV-460 TOV-419
Add `isOverCapacity ` status to detect if blob usage exceeds limits.
Add `onCapacityChange` and `onBlobSet` to monitor if the storage or blob exceeds the capacity limit.
Global modals `LocalQuotaModal` and `CloudQuotaModal` have been added, with the upload size of the blob being limited within the modal components.
The notification component has been adjusted, now you can pass in `action` click events and `actionLabel` .
2024-01-24 07:34:51 +00:00
liuyi
151a53c575
fix(server): disable payment module requirements temporarily ( #5683 )
2024-01-24 03:17:21 +00:00
liuyi
62169c59c8
fix(server): del staled update count cache if unmatch ( #5674 )
2024-01-23 08:19:29 +00:00
liuyi
e516e0db23
refactor(server): plugin modules ( #5630 )
...
- [x] separates modules into `fundamental`, `core`, `plugins`
- [x] optional modules with `@OptionalModule` decorator to install modules with requirements met(`requires`, `if`)
- [x] `module.contributesTo` defines optional features that will be enabled if module registered
- [x] `AFFiNE.plugins.use('payment', {})` to enable a optional/plugin module
- [x] `PaymentModule` is the first plugin module
- [x] GraphQLSchema will not be generated for non-included modules
- [x] Frontend can use `ServerConfigType` query to detect which features are enabled
- [x] override existing provider globally
2024-01-22 07:40:28 +00:00
DarkSky
ae8401b6f4
feat: skip update quota if same as latest activated quota ( #5631 )
2024-01-22 06:50:05 +00:00
LongYinan
fa8655e43e
style: apply prefer-node-protocol lint rule ( #5627 )
...
it makes it perfectly clear that the package is a Node.js builtin module.
2024-01-19 03:47:08 +00:00
LongYinan
c5ea6fd2c3
fix(server): selfhost issues ( #5623 )
...
- env name in helm chart
- omit health check controller in selfhost env
2024-01-18 05:55:54 +00:00
liuyi
9fdbb3ac3d
fix(server): should not listen on user defined host ( #5622 )
2024-01-18 04:59:53 +00:00
liuyi
f419867437
chore(server): remove useless log ( #5620 )
2024-01-18 03:19:20 +00:00
liuyi
d9324286d4
chore(server): add port to host if it is 0.0.0.0 ( #5619 )
2024-01-18 03:04:36 +00:00
DarkSky
ee8ec47a4f
feat: use SafeInt
replace Float
( #5613 )
2024-01-17 12:36:21 +00:00
liuyi
bf88b6edaa
chore(server): remove too verbose logs ( #5555 )
...
chore(server): remove too verbose logs
chore(server): make logs less verbose
2024-01-17 10:37:22 +00:00
liuyi
00acc49342
chore(server): remove octobase storage usage ( #5594 )
...
since all blobs have been successfully migrated to r2, the octobase blob functions are no longer necessary.
2024-01-17 10:22:35 +00:00
DarkSky
8f80bdb7af
feat: new free plan ( #5604 )
2024-01-17 07:20:18 +00:00
DarkSky
ee2520ec18
feat: add query quota of workspace ( #5603 )
2024-01-16 09:45:55 +00:00
liuyi
75fb0a9f1a
fix(server): standalone early access users detection ( #5601 )
2024-01-16 03:27:44 +00:00
liuyi
24e18dd475
fix: improve self-host convenience ( #5582 )
2024-01-15 09:24:53 +00:00
DarkSky
2f9b4fd0cf
fix: add field polyfill for old feature ( #5586 )
2024-01-15 08:33:06 +00:00
liuyi
4c49b62ab7
fix(server): node imports order ( #5583 )
2024-01-14 05:47:56 +00:00
DarkSky
18907ebe57
fix: return empty resp if user not exists in login preflight ( #5588 )
2024-01-13 15:26:55 +00:00
liuyi
89b5c96d25
refactor(server): folder structure ( #5573 )
2024-01-12 04:18:39 +00:00
DarkSky
d6f65ea414
feat: blob size limit with quota ( #5524 )
...
fix AFF-506 TOV-342
2024-01-11 10:21:40 +00:00
liuyi
12fdb18a80
test(server): make server testing utils ( #5544 )
2024-01-11 06:40:55 +00:00
liuyi
9253e522aa
test(server): avoid progress get hold after tests finished ( #5522 )
2024-01-11 06:40:53 +00:00
LongYinan
237722f7f9
feat: support self-host docker build ( #5506 )
...
Test command: `docker compose -f ./.github/deployment/self-host/compose.yaml up`
2024-01-10 08:35:21 +00:00
DarkSky
0d7ffb0511
feat: add unlimited workspace support ( #5523 )
...
fix AFF-505
2024-01-10 07:28:53 +00:00
DarkSky
a59fe1b49e
feat: adapted user quota for member api ( #5521 )
...
fix AFF-494 TOV-337
2024-01-10 07:28:46 +00:00
liuyi
ddbb5e1121
fix(server): better error handling and logging for storage ( #5553 )
2024-01-09 10:37:24 +00:00
DarkSky
b9fa002e67
fix: only return activated features ( #5536 )
2024-01-08 15:58:59 +08:00
liuyi
d7b9462d1c
fix(server): backward compatibility for beta+stable envs ( #5510 )
2024-01-08 05:15:32 +00:00