@atlaskit/collab-provider 9.7.1 → 9.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/channel.js +107 -4
- package/dist/cjs/errors/error-code-mapper.js +7 -1
- package/dist/cjs/errors/error-types.js +5 -0
- package/dist/cjs/feature-flags/__test__/index.unit.js +3 -2
- package/dist/cjs/feature-flags/index.js +4 -2
- package/dist/cjs/helpers/const.js +2 -1
- package/dist/cjs/helpers/socket-message-metrics.js +54 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/channel.js +77 -4
- package/dist/es2019/errors/error-code-mapper.js +7 -1
- package/dist/es2019/errors/error-types.js +5 -0
- package/dist/es2019/feature-flags/__test__/index.unit.js +3 -2
- package/dist/es2019/feature-flags/index.js +4 -2
- package/dist/es2019/helpers/const.js +2 -1
- package/dist/es2019/helpers/socket-message-metrics.js +40 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/channel.js +108 -5
- package/dist/esm/errors/error-code-mapper.js +7 -1
- package/dist/esm/errors/error-types.js +5 -0
- package/dist/esm/feature-flags/__test__/index.unit.js +3 -2
- package/dist/esm/feature-flags/index.js +4 -2
- package/dist/esm/helpers/const.js +2 -1
- package/dist/esm/helpers/socket-message-metrics.js +45 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/channel.d.ts +13 -2
- package/dist/types/errors/error-types.d.ts +20 -2
- package/dist/types/feature-flags/types.d.ts +1 -0
- package/dist/types/helpers/const.d.ts +12 -2
- package/dist/types/helpers/socket-message-metrics.d.ts +14 -0
- package/dist/types/types.d.ts +9 -0
- package/dist/types-ts4.5/channel.d.ts +13 -2
- package/dist/types-ts4.5/errors/error-types.d.ts +20 -2
- package/dist/types-ts4.5/feature-flags/types.d.ts +1 -0
- package/dist/types-ts4.5/helpers/const.d.ts +12 -2
- package/dist/types-ts4.5/helpers/socket-message-metrics.d.ts +14 -0
- package/dist/types-ts4.5/types.d.ts +9 -0
- package/package.json +2 -2
- package/report.api.md +7 -0
- package/tmp/api-report-tmp.d.ts +7 -0
|
@@ -63,6 +63,15 @@ export interface Config {
|
|
|
63
63
|
* throwing a non-recoverable error if it's detected.
|
|
64
64
|
*/
|
|
65
65
|
enableErrorOnFailedDocumentApply?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Configure the client side circuit breaker in the event that abnormal behaviour causes the client to flood
|
|
68
|
+
* NCS with too many steps or too large a volume of data. This can result in either a soft fail or a hard (fatal) fail
|
|
69
|
+
* depending on the configured rate limit type.
|
|
70
|
+
*/
|
|
71
|
+
rateLimitMaxStepSize?: number;
|
|
72
|
+
rateLimitStepCount?: number;
|
|
73
|
+
rateLimitTotalStepSize?: number;
|
|
74
|
+
rateLimitType?: number;
|
|
66
75
|
}
|
|
67
76
|
export interface InitAndAuthData {
|
|
68
77
|
initialized: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/collab-provider",
|
|
3
|
-
"version": "9.7.
|
|
3
|
+
"version": "9.7.3",
|
|
4
4
|
"description": "A provider for collaborative editing.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
38
38
|
"@atlaskit/analytics-listeners": "^8.7.0",
|
|
39
|
-
"@atlaskit/editor-common": "^74.
|
|
39
|
+
"@atlaskit/editor-common": "^74.24.0",
|
|
40
40
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
41
41
|
"@atlaskit/prosemirror-collab": "^0.2.0",
|
|
42
42
|
"@atlaskit/ufo": "^0.2.0",
|
package/report.api.md
CHANGED
|
@@ -144,6 +144,13 @@ interface Config {
|
|
|
144
144
|
permissionTokenRefresh?: () => Promise<null | string>;
|
|
145
145
|
// (undocumented)
|
|
146
146
|
productInfo?: ProductInformation;
|
|
147
|
+
rateLimitMaxStepSize?: number;
|
|
148
|
+
// (undocumented)
|
|
149
|
+
rateLimitStepCount?: number;
|
|
150
|
+
// (undocumented)
|
|
151
|
+
rateLimitTotalStepSize?: number;
|
|
152
|
+
// (undocumented)
|
|
153
|
+
rateLimitType?: number;
|
|
147
154
|
// (undocumented)
|
|
148
155
|
storage?: Storage_2;
|
|
149
156
|
throwOnNotConnected?: boolean;
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -120,6 +120,13 @@ interface Config {
|
|
|
120
120
|
permissionTokenRefresh?: () => Promise<null | string>;
|
|
121
121
|
// (undocumented)
|
|
122
122
|
productInfo?: ProductInformation;
|
|
123
|
+
rateLimitMaxStepSize?: number;
|
|
124
|
+
// (undocumented)
|
|
125
|
+
rateLimitStepCount?: number;
|
|
126
|
+
// (undocumented)
|
|
127
|
+
rateLimitTotalStepSize?: number;
|
|
128
|
+
// (undocumented)
|
|
129
|
+
rateLimitType?: number;
|
|
123
130
|
// (undocumented)
|
|
124
131
|
storage?: Storage_2;
|
|
125
132
|
throwOnNotConnected?: boolean;
|