Skip to content

Commit

Permalink
deps: bump logux
Browse files Browse the repository at this point in the history
  • Loading branch information
euaaaio committed Nov 12, 2023
1 parent c02d68b commit 2cb569b
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 43 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## next
* Drop NodeJS 12, 14 support
* Update dependencies

## 0.10.3
* Update dependencies
Expand Down
6 changes: 2 additions & 4 deletions component/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,7 @@ it('unsubscribes', async () => {
component.trigger('click', { users: { a: '1' } })
await nextTick()
expect(log.actions()).toEqual([
{ type: 'logux/subscribe', channel: 'users/1', fields: ['photo'] },
{ type: 'logux/subscribe', channel: 'users/2', fields: ['photo'] },
{ type: 'logux/unsubscribe', channel: 'users/2', fields: ['photo'] }
{ type: 'logux/subscribe', channel: 'users/1', fields: ['photo'] }
])
})

Expand Down Expand Up @@ -237,9 +235,9 @@ it('changes subscription', async () => {

component.trigger('click', { id: '2' })
await nextTick()
await delay(10)
expect(component.client.log.actions()).toEqual([
{ type: 'logux/subscribe', channel: 'users/1', fields: ['photo'] },
{ type: 'logux/unsubscribe', channel: 'users/1', fields: ['photo'] },
{ type: 'logux/subscribe', channel: 'users/2', fields: ['photo'] }
])
})
Expand Down
5 changes: 1 addition & 4 deletions composable/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ it('unsubscribes', async () => {
component.trigger('click', { users: { a: '1' } })
await nextTick()
expect(log.actions()).toEqual([
{ type: 'logux/subscribe', channel: 'users/1', fields: ['photo'] },
{ type: 'logux/subscribe', channel: 'users/2', fields: ['photo'] },
{ type: 'logux/unsubscribe', channel: 'users/2', fields: ['photo'] }
{ type: 'logux/subscribe', channel: 'users/1', fields: ['photo'] }
])
})

Expand Down Expand Up @@ -190,7 +188,6 @@ it('changes subscription', async () => {
await nextTick()
expect(log.actions()).toEqual([
{ type: 'logux/subscribe', channel: 'users/1', fields: ['photo'] },
{ type: 'logux/unsubscribe', channel: 'users/1', fields: ['photo'] },
{ type: 'logux/subscribe', channel: 'users/2', fields: ['photo'] }
])
})
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
},
"devDependencies": {
"@jest/globals": "^27.5.1",
"@logux/actions": "^0.2.3",
"@logux/client": "^0.15.3",
"@logux/core": "^0.7.3",
"@logux/actions": "^0.3.1",
"@logux/client": "^0.18.4",
"@logux/core": "^0.8.5",
"@logux/eslint-config": "46.0.1",
"@size-limit/preset-small-lib": "^7.0.8",
"@types/jest": "^27.4.0",
Expand Down
68 changes: 37 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion store/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,6 @@ it('does not replays actions on logux/ actions', async () => {
expect(commited).toEqual(['A', 'B', 'A'])
expect(store.log.actions()).toEqual([
{ type: 'logux/subscribe' },
{ type: 'logux/unsubscribe' },
{ type: 'B' },
{ type: 'A' }
])
Expand Down

0 comments on commit 2cb569b

Please sign in to comment.