Skip to content

Commit

Permalink
chore: bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jan 18, 2024
1 parent 5781f52 commit 4cef9e3
Show file tree
Hide file tree
Showing 22 changed files with 32 additions and 34 deletions.
2 changes: 1 addition & 1 deletion adapters/dingtalk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
"@cordisjs/server": "^0.1.3"
},
"peerDependencies": {
"@satorijs/satori": "^3.4.1"
"@satorijs/satori": "^3.4.2"
}
}
2 changes: 1 addition & 1 deletion adapters/discord/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"chat"
],
"peerDependencies": {
"@satorijs/satori": "^3.4.1"
"@satorijs/satori": "^3.4.2"
},
"dependencies": {
"form-data": "^4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion adapters/kook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@cordisjs/server": "^0.1.3"
},
"peerDependencies": {
"@satorijs/satori": "^3.4.1"
"@satorijs/satori": "^3.4.2"
},
"dependencies": {
"form-data": "^4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion adapters/lark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@cordisjs/server": "^0.1.3"
},
"peerDependencies": {
"@satorijs/satori": "^3.4.1"
"@satorijs/satori": "^3.4.2"
},
"dependencies": {
"form-data": "^4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion adapters/line/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"@cordisjs/server": "^0.1.3"
},
"peerDependencies": {
"@satorijs/satori": "^3.4.1"
"@satorijs/satori": "^3.4.2"
}
}
2 changes: 1 addition & 1 deletion adapters/mail/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"chat"
],
"peerDependencies": {
"@satorijs/satori": "^3.4.1"
"@satorijs/satori": "^3.4.2"
},
"dependencies": {
"@types/mailparser": "^3.4.4",
Expand Down
2 changes: 1 addition & 1 deletion adapters/matrix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@cordisjs/server": "^0.1.3"
},
"peerDependencies": {
"@satorijs/satori": "^3.4.1"
"@satorijs/satori": "^3.4.2"
},
"dependencies": {
"html5parser": "^2.0.2",
Expand Down
4 changes: 2 additions & 2 deletions adapters/qq/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@satorijs/adapter-qq",
"description": "QQ Adapter for Satorijs",
"version": "4.3.0",
"version": "4.3.1",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"files": [
Expand Down Expand Up @@ -30,7 +30,7 @@
"chat"
],
"peerDependencies": {
"@satorijs/satori": "^3.4.1"
"@satorijs/satori": "^3.4.2"
},
"dependencies": {
"qface": "^1.4.1"
Expand Down
2 changes: 1 addition & 1 deletion adapters/satori/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"chat"
],
"peerDependencies": {
"@satorijs/satori": "^3.4.1"
"@satorijs/satori": "^3.4.2"
}
}
2 changes: 1 addition & 1 deletion adapters/slack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@cordisjs/server": "^0.1.3"
},
"peerDependencies": {
"@satorijs/satori": "^3.4.1"
"@satorijs/satori": "^3.4.2"
},
"dependencies": {
"@slack/types": "^2.10.0",
Expand Down
2 changes: 1 addition & 1 deletion adapters/telegram/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@cordisjs/server": "^0.1.3"
},
"peerDependencies": {
"@satorijs/satori": "^3.4.1"
"@satorijs/satori": "^3.4.2"
},
"dependencies": {
"file-type": "^16.5.4",
Expand Down
2 changes: 1 addition & 1 deletion adapters/wechat-official/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@types/xml2js": "^0.4.14"
},
"peerDependencies": {
"@satorijs/satori": "^3.4.1"
"@satorijs/satori": "^3.4.2"
},
"dependencies": {
"@wecom/crypto": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion adapters/wecom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@types/xml2js": "^0.4.14"
},
"peerDependencies": {
"@satorijs/satori": "^3.4.1"
"@satorijs/satori": "^3.4.2"
},
"dependencies": {
"@wecom/crypto": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion adapters/whatsapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"@cordisjs/server": "^0.1.3"
},
"peerDependencies": {
"@satorijs/satori": "^3.4.1"
"@satorijs/satori": "^3.4.2"
}
}
2 changes: 1 addition & 1 deletion adapters/zulip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"chat"
],
"peerDependencies": {
"@satorijs/satori": "^3.4.1"
"@satorijs/satori": "^3.4.2"
},
"dependencies": {
"marked": "^9.1.6"
Expand Down
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@satorijs/core",
"description": "Core components of Satorijs",
"version": "3.4.1",
"version": "3.4.2",
"main": "lib/index.cjs",
"module": "lib/index.mjs",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -37,9 +37,9 @@
"dependencies": {
"@cordisjs/logger": "^0.1.3",
"@cordisjs/timer": "^0.2.0",
"@satorijs/element": "^3.0.0",
"@satorijs/element": "^3.1.2",
"@satorijs/protocol": "^1.2.0",
"cordis": "^3.6.0",
"cordis": "^3.6.1",
"cordis-axios": "^4.0.2",
"cosmokit": "^1.5.2",
"schemastery": "^3.14.3",
Expand Down
16 changes: 7 additions & 9 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
/// <reference types="@cordisjs/timer" />

import * as cordis from 'cordis'
import { Awaitable, defineProperty, Dict } from 'cosmokit'
import { Bot } from './bot'
import { Session } from './session'
import Schema from 'schemastery'
import Quester from 'cordis-axios'
import * as logger from '@cordisjs/logger'
import timer from '@cordisjs/timer'
import TimerService from '@cordisjs/timer'
import { Event, SendOptions } from '@satorijs/protocol'
import h from '@satorijs/element'

Expand Down Expand Up @@ -118,6 +116,7 @@ export interface Context {
[Context.session]: Session<this>
baseDir: string
http: Quester
timer: TimerService
}

export class Context extends cordis.Context {
Expand Down Expand Up @@ -149,7 +148,7 @@ export class Context extends cordis.Context {
this.provide('timer', undefined, true)
this.provide('http', undefined, true)
this.plugin(logger)
this.plugin(timer)
this.plugin(TimerService)
this.http = new Quester(config.request)
}

Expand All @@ -162,11 +161,10 @@ export class Context extends cordis.Context {
return session.transform(h.normalize(result))
}
const service = 'component:' + name
this.root.provide(service)
this[service] = render
return this.collect('component', () => {
this[service] = null
return true
this.provide(service)
return this.effect(() => {
this[service] = render
return () => this[service] = null
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"api"
],
"dependencies": {
"@satorijs/element": "^3.0.0",
"@satorijs/element": "^3.1.2",
"cosmokit": "^1.5.2"
}
}
4 changes: 2 additions & 2 deletions packages/satori/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@satorijs/satori",
"description": "Core components of Satorijs",
"version": "3.4.1",
"version": "3.4.2",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"files": [
Expand Down Expand Up @@ -29,7 +29,7 @@
"@types/parseurl": "^1.3.3"
},
"dependencies": {
"@satorijs/core": "3.4.1",
"@satorijs/core": "3.4.2",
"@types/ws": "^8.5.10",
"file-type": "^16.5.4",
"http-proxy-agent": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/server-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
"@cordisjs/server": "^0.1.3"
},
"peerDependencies": {
"@satorijs/satori": "^3.4.1"
"@satorijs/satori": "^3.4.2"
}
}
2 changes: 1 addition & 1 deletion packages/server-satori/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
"@cordisjs/server": "^0.1.3"
},
"peerDependencies": {
"@satorijs/satori": "^3.4.1"
"@satorijs/satori": "^3.4.2"
}
}
2 changes: 1 addition & 1 deletion packages/server-temp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
"@cordisjs/server": "^0.1.3"
},
"peerDependencies": {
"@satorijs/satori": "^3.4.1"
"@satorijs/satori": "^3.4.2"
}
}

0 comments on commit 4cef9e3

Please sign in to comment.