Add update message capability in the SDK, react hooks, and demo app #1644
dev.yml
on: pull_request
audit
24s
format-check
23s
lint
32s
test-typescript
26s
test
1m 45s
build
29s
demo-app
57s
Annotations
8 errors and 14 warnings
format-check
Process completed with exit code 1.
|
test-typescript:
test/react/hooks/use-messages.test.tsx#L1
Argument of type '{ type: MessageEvents; message: { timestamp: Date; text: string; timeserial: string; action: string; clientId: string; roomId: string; createdAt: Date; isDeleted: Mock<Procedure>; ... 5 more ...; metadata: {}; }; }' is not assignable to parameter of type 'MessageEventPayload'.
|
test-typescript
Process completed with exit code 2.
|
lint:
test/react/hooks/use-messages.integration.test.tsx#L186
Forbidden non-null assertion
|
lint
Process completed with exit code 1.
|
test/core/chat-api.test.ts > config > calls the api with the correct protocol version:
test/core/chat-api.test.ts#L30
AssertionError: expected "request" to be called with arguments: [ 'GET', …(4) ]
Received:
1st request call:
Array [
"GET",
"/chat/v1/rooms/test/occupancy",
3,
- Object {},
+ undefined,
undefined,
]
Number of calls: 1
❯ test/core/chat-api.test.ts:30:34
❯ test/core/chat-api.test.ts:23:5
|
test/core/messages.integration.test.ts > messages integration > should be able to retrieve chat deletion in history:
test/core/messages.integration.test.ts#L192
AssertionError: expected [ DefaultMessage{ …(14) } ] to deeply equal [ ObjectContaining{…} ]
- Expected
+ Received
Array [
- ObjectContaining {
- "clientId": "ably-chat-js-client-7umov5",
- "deletedAt": 2024-10-24T09:53:25.779Z,
- "deletedBy": "ably-chat-js-client-7umov5",
- "deletionDetail": Object {
- "description": "Deleted message",
- "metadata": undefined,
+ DefaultMessage {
+ "_calculatedTimeserial": DefaultTimeserial {
+ "counter": 0,
+ "index": 0,
+ "seriesId": "e7dK-IhVABhmSQ53128741",
+ "timestamp": 1729763605745,
},
+ "clientId": "ably-chat-js-client-7umov5",
+ "createdAt": 2024-10-24T09:53:25.745Z,
+ "deletedAt": undefined,
+ "deletedBy": undefined,
+ "deletionDetail": undefined,
+ "headers": Object {},
+ "metadata": Object {},
+ "roomId": "ably-chat-js-room-6fikro",
"text": "Hello there!",
"timeserial": "e7dK-IhVABhmSQ53128741@1729763605745-0:0",
+ "updateDetail": undefined,
+ "updatedAt": undefined,
+ "updatedBy": undefined,
},
]
❯ test/core/messages.integration.test.ts:192:27
|
test
Process completed with exit code 1.
|
format-check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
format-check
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
audit
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
audit
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
test-typescript
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
test-typescript
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
demo-app
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
demo-app
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|