Skip to content

Commit f7a321a

Browse files
committed
examples/annotations: bump ably-js to 2.13.0
1 parent 223c11c commit f7a321a

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

examples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
"@ably/chat": "^0.14.0",
106106
"@ably/chat-react-ui-components": "^0.1.2",
107107
"@ably/spaces": "^0.4.0",
108-
"ably": "^2.9.0",
108+
"ably": "^2.13.0",
109109
"cors": "^2.8.5",
110110
"franken-ui": "^2.0.0",
111111
"minifaker": "^1.34.1",

examples/pub-sub-message-annotations/javascript/src/components/summary.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,15 +242,17 @@ export function updateAnnotationSummary(message: MessageSummary) {
242242
}
243243

244244
sectionsContainer.innerHTML = '';
245-
const hasAnnotations = annotationTypes.some((type) => message.annotations.summary && message.annotations.summary[`${annotationNamespace}:${type.key}`]);
245+
const hasAnnotations = annotationTypes.some(
246+
(type) => message.annotations?.summary && message.annotations?.summary[`${annotationNamespace}:${type.key}`],
247+
);
246248

247249
if (!hasAnnotations) {
248250
sectionsContainer.appendChild(createEmptyAnnotationSummaryContentElement());
249251
return;
250252
}
251253

252254
for (const { key } of annotationTypes) {
253-
const entry = message.annotations.summary[`${annotationNamespace}:${key}`];
255+
const entry = message.annotations?.summary[`${annotationNamespace}:${key}`];
254256
if (!entry) {
255257
continue;
256258
}

examples/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -703,10 +703,10 @@
703703
magic-string "^0.27.0"
704704
react-refresh "^0.14.0"
705705

706-
ably@^2.9.0:
707-
version "2.9.0"
708-
resolved "https://registry.npmjs.org/ably/-/ably-2.9.0.tgz"
709-
integrity sha512-ddaurgvYHGmVVZkd5U2xJgLrbVdtAIw1RunfuZroE/ZTsmK2+vUnAZ7aKhR20cwOFP3QyLFYs6IfvwaijnIPlA==
706+
ably@^2.13.0:
707+
version "2.13.0"
708+
resolved "https://registry.yarnpkg.com/ably/-/ably-2.13.0.tgz#f9e1aebdf1f69700b5b20f0029ff1c383c2ed123"
709+
integrity sha512-fgrzWlUWRCOCqCNq1szMZNsa/VXYwS3DParDpMuhCBPxmsDL2Y1fMpppfHtQiFRvNFcInY9bPQXuPFjJpmqSHw==
710710
dependencies:
711711
"@ably/msgpack-js" "^0.4.0"
712712
dequal "^2.0.3"

src/components/Examples/ExamplesRenderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const UserIndicator = ({ user }: { user: string }) => {
3737

3838
const getDependencies = (id: string, products: string[], activeLanguage: LanguageKey) => {
3939
return {
40-
ably: '^2.9.0',
40+
ably: '^2.13.0',
4141
nanoid: '^5.0.7',
4242
minifaker: '1.34.1',
4343
'franken-ui': '^2.0.0',

0 commit comments

Comments
 (0)