Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@hcengineering/kafka",
"comment": "Compress Kafka messages",
"type": "patch"
}
],
"packageName": "@hcengineering/kafka"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"changes": [
{
"packageName": "@hcengineering/middleware",
"comment": "Fix formatting",
"type": "none"
"comment": "Fix exception in findAll",
"type": "patch"
}
],
"packageName": "@hcengineering/middleware"
Expand Down
12 changes: 12 additions & 0 deletions packages/kafka/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "@hcengineering/kafka",
"entries": [
{
"version": "0.7.17",
"tag": "@hcengineering/kafka_v0.7.17",
"date": "Wed, 19 Nov 2025 06:47:45 GMT",
"comments": {
"patch": [
{
"comment": "Compress Kafka messages"
}
]
}
},
{
"version": "0.7.16",
"tag": "@hcengineering/kafka_v0.7.16",
Expand Down
9 changes: 8 additions & 1 deletion packages/kafka/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log - @hcengineering/kafka

This log was last generated on Thu, 06 Nov 2025 10:21:28 GMT and should not be manually modified.
This log was last generated on Wed, 19 Nov 2025 06:47:45 GMT and should not be manually modified.

## 0.7.17
Wed, 19 Nov 2025 06:47:45 GMT

### Patches

- Compress Kafka messages

## 0.7.16
Thu, 06 Nov 2025 10:21:28 GMT
Expand Down
2 changes: 1 addition & 1 deletion packages/kafka/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hcengineering/kafka",
"version": "0.7.16",
"version": "0.7.17",
"main": "lib/index.js",
"svelte": "src/index.ts",
"types": "types/index.d.ts",
Expand Down
5 changes: 3 additions & 2 deletions packages/kafka/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
type PlatformQueue,
type PlatformQueueProducer
} from '@hcengineering/server-core'
import { Kafka, Partitioners, type Consumer, type Producer } from 'kafkajs'
import { Kafka, Partitioners, type Consumer, type Producer, CompressionTypes } from 'kafkajs'
import type * as tls from 'tls'

export interface QueueConfig {
Expand Down Expand Up @@ -223,7 +223,8 @@ class PlatformQueueProducerImpl implements PlatformQueueProducer<any> {
workspace,
meta: JSON.stringify(ctx.extractMeta())
}
}))
})),
compression: CompressionTypes.GZIP
})
)
}
Expand Down
17 changes: 17 additions & 0 deletions packages/middleware/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
{
"name": "@hcengineering/middleware",
"entries": [
{
"version": "0.7.20",
"tag": "@hcengineering/middleware_v0.7.20",
"date": "Wed, 19 Nov 2025 06:47:45 GMT",
"comments": {
"patch": [
{
"comment": "Fix exception in findAll"
}
],
"none": [
{
"comment": "Fix formatting"
}
]
}
},
{
"version": "0.7.19",
"tag": "@hcengineering/middleware_v0.7.19",
Expand Down
9 changes: 8 additions & 1 deletion packages/middleware/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log - @hcengineering/middleware

This log was last generated on Fri, 07 Nov 2025 16:12:16 GMT and should not be manually modified.
This log was last generated on Wed, 19 Nov 2025 06:47:45 GMT and should not be manually modified.

## 0.7.20
Wed, 19 Nov 2025 06:47:45 GMT

### Patches

- Fix exception in findAll

## 0.7.19
Fri, 07 Nov 2025 16:12:16 GMT
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hcengineering/middleware",
"version": "0.7.19",
"version": "0.7.20",
"main": "lib/index.js",
"svelte": "src/index.ts",
"types": "types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware/src/findSecurity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class FindSecurityMiddleware extends BaseMiddleware implements Middleware
query: DocumentQuery<T>,
options?: FindOptions<T>
): Promise<FindResult<T>> {
if (options !== undefined) {
if (options != null) {
const { limit, sort, lookup, projection, associations, total, showArchived } = options
return this.provideFindAll(ctx, _class, query, {
limit,
Expand Down