Joooye_34
338c3001b0
feat: support sign-in with subscription coupon ( #5768 )
2024-02-01 08:43:47 +00:00
Yifeng Wang
fec2090de5
feat: bump blocksuite ( #5767 )
...
Co-authored-by: LongYinan <lynweklm@gmail.com>
2024-02-01 16:28:22 +08:00
LongYinan
61677b2ac4
chore: change bump-blocksuite script to js ( #5763 )
...
`./scripts/bump-blocksuite.js`
2024-02-01 07:16:19 +00:00
EYHN
799fa9cfa6
fix(workspace): fix sync stuck ( #5762 )
...
* remove MultipleBatchSyncSender
* add timeout (30 seconds) on socket.emit
2024-02-01 06:58:09 +00:00
Chen
aa33bf60d6
fix: update blocksuite local debug config ( #5742 )
...
Due to the reconstruction of the blocksuite package, the corresponding local debug configuration needs to be updated.
The related commit: https://github.com/toeverything/blocksuite/pull/6133
2024-02-01 06:49:16 +00:00
DarkSky
1db8019292
feat: ignore case for email ( #5754 )
...
fix #5738
2024-02-01 05:05:16 +00:00
LongYinan
349f7c3f15
chore: bump up codecov/codecov-action action to v4 ( #5758 )
...
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [codecov/codecov-action](https://togithub.com/codecov/codecov-action ) | action | major | `v3` -> `v4` |
---
### Release Notes
<details>
<summary>codecov/codecov-action (codecov/codecov-action)</summary>
### [`v4`](https://togithub.com/codecov/codecov-action/compare/v3...v4 )
[Compare Source](https://togithub.com/codecov/codecov-action/compare/v3...v4 )
</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjE1My4yIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5In0=-->
2024-02-01 02:17:20 +00:00
LongYinan
057796e691
chore: bump up kentaro-m/auto-assign-action action to v2 ( #5757 )
...
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [kentaro-m/auto-assign-action](https://togithub.com/kentaro-m/auto-assign-action ) | action | major | `v1.2.5` -> `v2.0.0` |
---
### Release Notes
<details>
<summary>kentaro-m/auto-assign-action (kentaro-m/auto-assign-action)</summary>
### [`v2.0.0`](https://togithub.com/kentaro-m/auto-assign-action/releases/tag/v2.0.0 )
[Compare Source](https://togithub.com/kentaro-m/auto-assign-action/compare/v1.2.6...v2.0.0 )
#### What's Changed
- chore(deps): update dependency prettier to v3.2.4 by [@​renovate](https://togithub.com/renovate ) in [https://github.com/kentaro-m/auto-assign-action/pull/166 ](https://togithub.com/kentaro-m/auto-assign-action/pull/166 )
- fix: update Node.js version and action configuration by [@​kentaro-m](https://togithub.com/kentaro-m ) in [https://github.com/kentaro-m/auto-assign-action/pull/170 ](https://togithub.com/kentaro-m/auto-assign-action/pull/170 )
- fix: update [@​types/node](https://togithub.com/types/node ) version to 20.11.13 by [@​kentaro-m](https://togithub.com/kentaro-m ) in [https://github.com/kentaro-m/auto-assign-action/pull/171 ](https://togithub.com/kentaro-m/auto-assign-action/pull/171 )
**Full Changelog**: https://github.com/kentaro-m/auto-assign-action/compare/v1.2.6...v2.0.0
### [`v1.2.6`](https://togithub.com/kentaro-m/auto-assign-action/releases/tag/v1.2.6 )
[Compare Source](https://togithub.com/kentaro-m/auto-assign-action/compare/v1.2.5...v1.2.6 )
#### Changes
- fix: fix security issue ([#​165](https://togithub.com/kentaro-m/auto-assign-action/issues/165 )) [@​kentaro-m](https://togithub.com/kentaro-m )
- chore(deps): update dependency prettier to v3.1.1 ([#​163](https://togithub.com/kentaro-m/auto-assign-action/issues/163 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update actions/setup-node action to v4 ([#​158](https://togithub.com/kentaro-m/auto-assign-action/issues/158 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update actions/checkout action to v4 ([#​152](https://togithub.com/kentaro-m/auto-assign-action/issues/152 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency typescript to v5.3.3 ([#​162](https://togithub.com/kentaro-m/auto-assign-action/issues/162 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency typescript to v5.3.2 ([#​161](https://togithub.com/kentaro-m/auto-assign-action/issues/161 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency prettier to v3.1.0 ([#​160](https://togithub.com/kentaro-m/auto-assign-action/issues/160 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update unit test packages ([#​138](https://togithub.com/kentaro-m/auto-assign-action/issues/138 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency typescript to v5.2.2 ([#​151](https://togithub.com/kentaro-m/auto-assign-action/issues/151 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency [@​vercel/ncc](https://togithub.com/vercel/ncc ) to v0.38.1 ([#​156](https://togithub.com/kentaro-m/auto-assign-action/issues/156 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency lint-staged to v13.3.0 ([#​150](https://togithub.com/kentaro-m/auto-assign-action/issues/150 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency [@​vercel/ncc](https://togithub.com/vercel/ncc ) to v0.38.0 ([#​149](https://togithub.com/kentaro-m/auto-assign-action/issues/149 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency [@​octokit/webhooks-types](https://togithub.com/octokit/webhooks-types ) to v7.3.1 ([#​143](https://togithub.com/kentaro-m/auto-assign-action/issues/143 )) [@​renovate](https://togithub.com/renovate )
- fix(deps): update dependency [@​actions/core](https://togithub.com/actions/core ) to v1.10.1 ([#​148](https://togithub.com/kentaro-m/auto-assign-action/issues/148 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency prettier to v3.0.3 ([#​147](https://togithub.com/kentaro-m/auto-assign-action/issues/147 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency node to v16.20.2 ([#​142](https://togithub.com/kentaro-m/auto-assign-action/issues/142 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency [@​octokit/webhooks-types](https://togithub.com/octokit/webhooks-types ) to v7 ([#​135](https://togithub.com/kentaro-m/auto-assign-action/issues/135 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency prettier to v3.0.1 ([#​141](https://togithub.com/kentaro-m/auto-assign-action/issues/141 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency prettier to v3 ([#​140](https://togithub.com/kentaro-m/auto-assign-action/issues/140 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency typescript to v5.1.6 ([#​139](https://togithub.com/kentaro-m/auto-assign-action/issues/139 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency lint-staged to v13.2.3 ([#​137](https://togithub.com/kentaro-m/auto-assign-action/issues/137 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update node.js to v16.20.1 ([#​134](https://togithub.com/kentaro-m/auto-assign-action/issues/134 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency typescript to v5.1.3 ([#​132](https://togithub.com/kentaro-m/auto-assign-action/issues/132 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update node.js to v16.20.0 ([#​126](https://togithub.com/kentaro-m/auto-assign-action/issues/126 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency ts-jest to v29.1.0 ([#​130](https://togithub.com/kentaro-m/auto-assign-action/issues/130 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency [@​octokit/webhooks-types](https://togithub.com/octokit/webhooks-types ) to v6.11.0 ([#​129](https://togithub.com/kentaro-m/auto-assign-action/issues/129 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency prettier to v2.8.8 ([#​131](https://togithub.com/kentaro-m/auto-assign-action/issues/131 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency lint-staged to v13.2.2 ([#​127](https://togithub.com/kentaro-m/auto-assign-action/issues/127 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency typescript to v5.0.4 ([#​128](https://togithub.com/kentaro-m/auto-assign-action/issues/128 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency typescript to v5.0.3 ([#​125](https://togithub.com/kentaro-m/auto-assign-action/issues/125 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency prettier to v2.8.7 ([#​123](https://togithub.com/kentaro-m/auto-assign-action/issues/123 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency typescript to v5 ([#​122](https://togithub.com/kentaro-m/auto-assign-action/issues/122 )) [@​renovate](https://togithub.com/renovate )
- fix(deps): update dependency js-yaml to v3.14.1 ([#​121](https://togithub.com/kentaro-m/auto-assign-action/issues/121 )) [@​renovate](https://togithub.com/renovate )
- fix(deps): update dependency [@​actions/github](https://togithub.com/actions/github ) to v5.1.1 ([#​120](https://togithub.com/kentaro-m/auto-assign-action/issues/120 )) [@​renovate](https://togithub.com/renovate )
- fix(deps): update dependency [@​actions/core](https://togithub.com/actions/core ) to v1.10.0 ([#​119](https://togithub.com/kentaro-m/auto-assign-action/issues/119 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update unit test packages to v29.5.0 ([#​118](https://togithub.com/kentaro-m/auto-assign-action/issues/118 )) [@​renovate](https://togithub.com/renovate )
- chore(deps): update dependency lint-staged to v13.2.0 ([#​117](https://togithub.com/kentaro-m/auto-assign-action/issues/117 )) [@​renovate](https://togithub.com/renovate )
</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjE1My4yIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5In0=-->
2024-01-31 15:19:32 +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
Cats Juice
5f3c04b51e
fix(core): set createDate to journal's date when journal created ( #5701 )
2024-01-30 23:11:07 +08:00
Cats Juice
6b350b1735
feat(core): append to today's joruanl via CMDK ( #5692 )
2024-01-30 23:08:25 +08:00
EYHN
329fc19852
refactor(infra): migrate to new infra ( #5565 )
2024-01-30 07:16:39 +00:00
EYHN
1e3499c323
feat(infra): page infra ( #5618 )
2024-01-30 06:31:26 +00:00
EYHN
2e71c980cf
feat(infra): new workspace infra ( #5617 )
...
This PR copying @affine/workspace into common/infra, and adding definitions for services and unit tests.
2024-01-30 06:31:24 +00:00
EYHN
4f7e0d012d
chore: fix vitest error on tinykeys ( #5693 )
2024-01-30 06:31:21 +00:00
EYHN
88cd83fed1
feat(infra): standard lifecycle service ( #5564 )
2024-01-30 06:31:19 +00:00
EYHN
b3a8e62984
feat(infra): standard storage service ( #5563 )
2024-01-30 06:31:15 +00:00
EYHN
48eb6c50e1
feat(infra): di container ( #5497 )
...
docs: https://insider.affine.pro/share/055f9c4b-497a-43ec-a1c9-29d5baf184b9/N785YJ__oLMb2fUaLOv-k
2024-01-30 06:31:13 +00:00
EYHN
c9f8e49f75
feat(infra): livedata ( #5562 )
...
LiveData is a reactive data type.
## basic usage
@example
```ts
const livedata = new LiveData(0); // create livedata with initial value
livedata.next(1); // update value
console.log(livedata.value); // get current value
livedata.subscribe(v => { // subscribe to value changes
console.log(v); // 1
});
```
## observable
LiveData is a rxjs observable, you can use rxjs operators.
@example
```ts
new LiveData(0).pipe(
map(v => v + 1),
filter(v => v > 1),
...
)
```
NOTICE: different from normal observable, LiveData will always emit the latest value when you subscribe to it.
## from observable
LiveData can be created from observable or from other livedata.
@example
```ts
const A = LiveData.from(
of(1, 2, 3, 4), // from observable
0 // initial value
);
const B = LiveData.from(
A.pipe(map(v => 'from a ' + v)), // from other livedata
'' // initial value
);
```
NOTICE: LiveData.from will not complete when the observable completes, you can use `spreadComplete` option to change
this behavior.
## Why is it called LiveData
This API is very similar to LiveData in Android, as both are based on Observable, so I named it LiveData.
2024-01-30 06:31:11 +00:00
LongYinan
588b3bcf33
chore: revert "chore: bump up @reforged/maker-appimage version to v4" ( #5736 )
...
link #5709
This reverts commit 59788aa334
.
2024-01-29 08:41:35 +00:00
Yifeng Wang
1cf902bdb6
feat: bump blocksuite ( #5735 )
2024-01-29 16:40:23 +08:00
DarkSky
fc8a48fb43
feat: add business blob limit ( #5734 )
2024-01-29 08:32:35 +00:00
LongYinan
0044be972f
chore: bump up @blocksuite/icons version to v2.1.44 ( #5732 )
...
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@blocksuite/icons](https://togithub.com/toeverything/icons ) | [`2.1.43` -> `2.1.44`](https://renovatebot.com/diffs/npm/@blocksuite%2ficons/2.1.43/2.1.44 ) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@blocksuite%2ficons/2.1.44?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@blocksuite%2ficons/2.1.44?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@blocksuite%2ficons/2.1.43/2.1.44?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@blocksuite%2ficons/2.1.43/2.1.44?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>toeverything/icons (@​blocksuite/icons)</summary>
### [`v2.1.44`](13299f7ede...bc31d70961
)
[Compare Source](13299f7ede...bc31d70961
)
</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjE1My4yIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5In0=-->
2024-01-29 07:39:17 +00:00
LongYinan
5bd339bed7
feat: generate blocksuite changelog ( #5724 )
2024-01-29 07:28:02 +00:00
LongYinan
25e8b8306f
fix: path issue on Windows ( #5725 )
2024-01-29 07:18:25 +00:00
DarkSky
070d5ca471
feat: impl unlimited features ( #5659 )
2024-01-26 08:28:54 +00:00
Yifeng Wang
04b9029d1b
feat: bump blocksuite ( #5720 )
...
Co-authored-by: xiaoxin <hongtao.lye@toeverything.info>
2024-01-26 16:27:58 +08:00
Cats Juice
387e292ed9
fix(core): journal title's day tag may be invalid ( #5703 )
...
Fix [TOV-470](https://linear.app/affine-design/issue/TOV-470/journal-invalid-date )
2024-01-26 07:55:35 +00:00
JimmFly
18068f4ae2
feat(core): add collection and tag filters to all pages ( #5567 )
...
close TOV-69
Added the `filterMode` parameter to the `/all` route.
Abstracted the `PageList` and associated components into more universal ones.
Added the `useTagMetas` hook to get and update the workspace tags.
https://github.com/toeverything/AFFiNE/assets/102217452/7595944d-a056-40c2-8d89-d8df9e901a4b
2024-01-26 07:42:47 +00:00
Peng Xiao
b867dcbdeb
fix: add padding between editor and link panel ( #5713 )
...
Fix [AFF-561](https://linear.app/affine-design/issue/AFF-561/bi-directional-link-与文本编辑区域的-top-padding )
2024-01-26 07:32:22 +00:00
Cats Juice
6ca2043697
feat(component): optimize week-date-picker keyboard navigation ( #5684 )
2024-01-26 07:05:19 +00:00
LongYinan
16ef255f51
chore: upgrade husky to latest ( #5719 )
...
- https://github.com/typicode/husky/pull/1336
2024-01-26 06:37:39 +00:00
LongYinan
1cf182b7ca
ci: add postUpdateOptions to renovate ( #5714 )
2024-01-26 06:19:38 +00:00
Peng Xiao
e8a6b6ad5e
fix(core): bidi links rendering issue ( #5707 )
2024-01-26 06:07:04 +00:00
Joooye_34
fd9a7f6aad
chore: remove unused blocksuite deps in e2e ( #5717 )
2024-01-26 05:55:13 +00:00
LongYinan
af45b93d26
chore: bump up husky version to v9 ( #5694 )
...
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [husky](https://togithub.com/typicode/husky ) | [`^8.0.3` -> `^9.0.0`](https://renovatebot.com/diffs/npm/husky/8.0.3/9.0.6 ) | [![age](https://developer.mend.io/api/mc/badges/age/npm/husky/9.0.6?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/husky/9.0.6?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/husky/8.0.3/9.0.6?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/husky/8.0.3/9.0.6?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>typicode/husky (husky)</summary>
### [`v9.0.6`](https://togithub.com/typicode/husky/releases/tag/v9.0.6 )
[Compare Source](https://togithub.com/typicode/husky/compare/v9.0.5...v9.0.6 )
- docs: add favicon by [@​rakleed](https://togithub.com/rakleed ) in [https://github.com/typicode/husky/pull/1354 ](https://togithub.com/typicode/husky/pull/1354 )
- chore: apply editorconfig to code only by [@​typicode](https://togithub.com/typicode ) in [https://github.com/typicode/husky/pull/1355 ](https://togithub.com/typicode/husky/pull/1355 )
- docs: update install script to mjs and fix CI checks by [@​starnayuta](https://togithub.com/starnayuta ) in [https://github.com/typicode/husky/pull/1357 ](https://togithub.com/typicode/husky/pull/1357 )
- Fix unbound variable by [@​typicode](https://togithub.com/typicode ) in [https://github.com/typicode/husky/pull/1359 ](https://togithub.com/typicode/husky/pull/1359 )
### [`v9.0.5`](https://togithub.com/typicode/husky/releases/tag/v9.0.5 )
[Compare Source](https://togithub.com/typicode/husky/compare/v9.0.4...v9.0.5 )
- docs: update path to startup files by [@​ManuelRauber](https://togithub.com/ManuelRauber ) in [https://github.com/typicode/husky/pull/1350 ](https://togithub.com/typicode/husky/pull/1350 )
- fix: init error by [@​typicode](https://togithub.com/typicode ) in [https://github.com/typicode/husky/pull/1353 ](https://togithub.com/typicode/husky/pull/1353 )
### [`v9.0.4`](https://togithub.com/typicode/husky/releases/tag/v9.0.4 )
[Compare Source](https://togithub.com/typicode/husky/compare/v9.0.3...v9.0.4 )
- fix: init create dir before by [@​typicode](https://togithub.com/typicode ) in [https://github.com/typicode/husky/pull/1348 ](https://togithub.com/typicode/husky/pull/1348 )
- refactor: simplify by [@​typicode](https://togithub.com/typicode ) in [https://github.com/typicode/husky/pull/1349 ](https://togithub.com/typicode/husky/pull/1349 )
- fix: init not working on pnpm [#​1334](https://togithub.com/typicode/husky/issues/1334 ) by [@​rozbo](https://togithub.com/rozbo ) in [https://github.com/typicode/husky/pull/1347 ](https://togithub.com/typicode/husky/pull/1347 )
### [`v9.0.3`](https://togithub.com/typicode/husky/releases/tag/v9.0.3 )
[Compare Source](https://togithub.com/typicode/husky/compare/v9.0.2...v9.0.3 )
- docs: fix link by [@​typicode](https://togithub.com/typicode ) in [https://github.com/typicode/husky/pull/1340 ](https://togithub.com/typicode/husky/pull/1340 )
- chore: fix links in issue template by [@​julien-f](https://togithub.com/julien-f ) in [https://github.com/typicode/husky/pull/1341 ](https://togithub.com/typicode/husky/pull/1341 )
- fix: add scripts field if not present by [@​chalkygames123](https://togithub.com/chalkygames123 ) in [https://github.com/typicode/husky/pull/1338 ](https://togithub.com/typicode/husky/pull/1338 )
- docs: changelog link by [@​typicode](https://togithub.com/typicode ) in [https://github.com/typicode/husky/pull/1343 ](https://togithub.com/typicode/husky/pull/1343 )
- fix: insert final newline by [@​chalkygames123](https://togithub.com/chalkygames123 ) in [https://github.com/typicode/husky/pull/1339 ](https://togithub.com/typicode/husky/pull/1339 )
- fix: fix git hooks path on windows by [@​rozbo](https://togithub.com/rozbo ) in [https://github.com/typicode/husky/pull/1346 ](https://togithub.com/typicode/husky/pull/1346 )
### [`v9.0.2`](https://togithub.com/typicode/husky/releases/tag/v9.0.2 )
[Compare Source](https://togithub.com/typicode/husky/compare/v9.0.1...v9.0.2 )
#### What's Changed
- fix: exit code by [@​gergelypap](https://togithub.com/gergelypap ) in [https://github.com/typicode/husky/pull/1336 ](https://togithub.com/typicode/husky/pull/1336 )
- docs: typo by [@​chalkygames123](https://togithub.com/chalkygames123 ) in [https://github.com/typicode/husky/pull/1337 ](https://togithub.com/typicode/husky/pull/1337 )
#### New Contributors
- [@​gergelypap](https://togithub.com/gergelypap ) made their first contribution in [https://github.com/typicode/husky/pull/1336 ](https://togithub.com/typicode/husky/pull/1336 )
**Full Changelog**: https://github.com/typicode/husky/compare/v9.0.1...v9.0.2
### [`v9.0.1`](https://togithub.com/typicode/husky/releases/tag/v9.0.1 )
[Compare Source](https://togithub.com/typicode/husky/compare/v8.0.3...v9.0.1 )
<p align="center">
Kicking off the year with an exciting update!
</p>
<p align="center">
<img src="https://github.com/typicode/husky/assets/5502029/457ab087-e935-4196-b99f-601ecf37f263 " height="400px" alt="" />
</p>
#### TLDR;
Improved user experience and a (even) smaller package size while packing in more features!
#### 👋 By the Way
**I'm available for remote work** (Front-end/Back-end mainly JS/TS but open to other stacks Rails, Go, Elixir). You can contact me at my mail: typicode at gmail 🙂
#### Introducing `husky init`
Adding husky to a project is now easier than ever. Although the installation process was straightforward, it often required consulting the documentation.
##### v8
```shell
npm pkg set scripts.prepare="husky install"
npm run prepare
npx husky add .husky/pre-commit "npm test"
```
##### v9
```shell
npx husky init
```
#### Adding a New Hook
Adding a hook is now as simple as creating a file. This can be accomplished using your favorite editor, a script or a basic `echo` command.
##### v8
```shell
npx husky add .husky/pre-commit "npm test"
git add --chmod=+x .husky/pre-commit # On Windows
```
##### v9
```shell
echo "npm test" > .husky/pre-commit
```
#### Further Size Reduction
`v8` was already the most compact Git hooks manager at approximately `6kB`.
`v9` takes this a step further, reducing the size to just `3kB`, likely making it the smallest devDependency in your toolkit.
**To give you an idea of how small it is, the biggest file in the project is the MIT license 😄 **
#### More to Come
Additional features are in the pipeline for `v9`. Stay tuned 🙌
#### Other Changes
- **Enhanced security** with CI and npm `--provenance` for safer publishing.
- Added **`$XDG_CONFIG_HOME`** support. Move `~/.huskyrc` to `~/.config/husky/init.sh` for centralized configuration.
- **Fixed permission issue for Windows-created hooks**; they no longer need to be executable.
- Removed `husky install`. Use `husky` or `husky some/dir` for the same functionality (deprecation notice to be added).
- Modified behavior when `.git` is missing; it now triggers a warning instead of failure.
- Replaced `HUSKY_DEBUG=1` with `HUSKY=2` for debugging.
- Updated the Husky API for module usage.
- Transitioned to `ESM` for module usage.
- Dropped support for Node 14 and 16.
- Revamped docs.
#### How to Migrate
`v9` is backward compatible with `v8`, allowing you to freely upgrade and migrate your hooks later.
`package.json`
```diff
{
"scripts": {
- "prepare": "husky install"
+ "prepare": "husky"
}
}
```
`.husky/pre-commit`
```diff
- #!/usr/bin/env sh
- . "$(dirname -- "$0")/_/husky.sh"
npm test
```
</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5In0=-->
2024-01-26 02:53:34 +00:00
LongYinan
59788aa334
chore: bump up @reforged/maker-appimage version to v4 ( #5709 )
...
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@reforged/maker-appimage](https://togithub.com/SpacingBat3/ReForged ) | [`^3.3.1` -> `^4.0.0`](https://renovatebot.com/diffs/npm/@reforged%2fmaker-appimage/3.3.1/4.0.0 ) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@reforged%2fmaker-appimage/4.0.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@reforged%2fmaker-appimage/4.0.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@reforged%2fmaker-appimage/3.3.1/4.0.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@reforged%2fmaker-appimage/3.3.1/4.0.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>SpacingBat3/ReForged (@​reforged/maker-appimage)</summary>
### [`v4.0.0`](1657b03766...f829e7a954
)
[Compare Source](1657b03766...f829e7a954
)
### [`v3.3.2`](45d28765c2...1657b03766
)
[Compare Source](45d28765c2...1657b03766
)
</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5In0=-->
2024-01-26 02:41:08 +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
LongYinan
db3891ba33
chore: bump up @blocksuite/icons version to v2.1.43 ( #5702 )
...
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@blocksuite/icons](https://togithub.com/toeverything/icons ) | [`2.1.42` -> `2.1.43`](https://renovatebot.com/diffs/npm/@blocksuite%2ficons/2.1.42/2.1.43 ) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@blocksuite%2ficons/2.1.43?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@blocksuite%2ficons/2.1.43?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@blocksuite%2ficons/2.1.42/2.1.43?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@blocksuite%2ficons/2.1.42/2.1.43?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>toeverything/icons (@​blocksuite/icons)</summary>
### [`v2.1.43`](fe902db67e...13299f7ede
)
[Compare Source](fe902db67e...13299f7ede
)
</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5In0=-->
2024-01-25 08:56:39 +00:00
Cats Juice
e7307d969c
chore(core): remove journal experimental flag ( #5698 )
2024-01-25 05:33:57 +00:00
Joooye_34
bd8c7751db
chore: update base version to 0.12.0 ( #5695 )
2024-01-25 05:17:35 +00:00
Cats Juice
9aa421d5e1
fix(core): modify journal page title today style, add weekday tag ( #5687 )
...
fix [TOV-434](https://linear.app/affine-design/issue/TOV-434/修改-journal-中-「today」的字体大小和日期-title-大小 )
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/toeverything/AFFiNE/assets/39363750/ac0ab085-5ff7-4d27-a0b1-11d97fdd8074 ">
<img width="100%" alt="" src="https://github.com/toeverything/AFFiNE/assets/39363750/3b311130-ded2-4651-badd-65dd059b7bc5 ">
</picture>
2024-01-24 13:07:20 +00:00
Cats Juice
3f96b9778f
fix(core): change journal header week-date-picker's max-width ( #5688 )
...
Fix [TOV-444](https://linear.app/affine-design/issue/TOV-444/修改-journal-date-picker-max-width )
2024-01-24 12:54:34 +00:00
JimmFly
ad1521fd81
feat(core): adjust member order ( #5685 )
...
close #5686
`Owner >> Unaccepted > Admin > Write > Read`
This algorithm contains two parts: firstly, it calculates the weight of the Member (calculateWeight), and then, it uses set weights to sort the Members (useMembers).
In the calculateWeight part, the computation of the weight involves three primary factors:
1. **Permission Level**: The `Owner` is given the highest weight of `4`, followed by `Admin` with a weight of `3`, then `Write` with a weight of `2`, and finally, `Read`, with a weight of `1`.
2. **Acceptance Status**: `Unaccepted` members have a higher weight, this weight is `1`.
3. The weight corresponding to the permission level, if the member does not exist, this weight is 0.
These three `factors` are stored in the factors array and then processed through the reduce function for weighted sum calculation. Among them, `factor * Math.pow(10, arr.length - 1 - index)` means the more significant weight factors (i.e., the earlier factors) will be assigned a higher value.
Sorting rules are primarily based on the weight values obtained from the calculateWeight function. If the weights are identical, it then sorts by name, here assuming the weight of the name being `null` is the highest. If the names are not `null`, they are sorted alphabetically.
2024-01-24 12:44:01 +00:00
liuyi
0f67c683c9
fix(server): add metrics missing attributes ( #5682 )
2024-01-24 08:06:34 +00:00