Skip to content

Commit 706d4ba

Browse files
committed
Rename "LiveObjects" file names to just "Objects"
1 parent af21938 commit 706d4ba

32 files changed

+43
-43
lines changed

grunt/esbuild/build.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,22 +79,22 @@ const minifiedPushPluginCdnConfig = {
7979

8080
const objectsPluginConfig = {
8181
...createBaseConfig(),
82-
entryPoints: ['src/plugins/liveobjects/index.ts'],
82+
entryPoints: ['src/plugins/objects/index.ts'],
8383
plugins: [umdWrapper.default({ libraryName: 'AblyObjectsPlugin', amdNamedModule: false })],
8484
outfile: 'build/objects.js',
8585
external: ['deep-equal'],
8686
};
8787

8888
const objectsPluginCdnConfig = {
8989
...createBaseConfig(),
90-
entryPoints: ['src/plugins/liveobjects/index.ts'],
90+
entryPoints: ['src/plugins/objects/index.ts'],
9191
plugins: [umdWrapper.default({ libraryName: 'AblyObjectsPlugin', amdNamedModule: false })],
9292
outfile: 'build/objects.umd.js',
9393
};
9494

9595
const minifiedObjectsPluginCdnConfig = {
9696
...createBaseConfig(),
97-
entryPoints: ['src/plugins/liveobjects/index.ts'],
97+
entryPoints: ['src/plugins/objects/index.ts'],
9898
plugins: [umdWrapper.default({ libraryName: 'AblyObjectsPlugin', amdNamedModule: false })],
9999
outfile: 'build/objects.umd.min.js',
100100
minify: true,
File renamed without changes.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131
"import": "./build/push.js"
3232
},
3333
"./objects": {
34-
"types": "./liveobjects.d.ts",
34+
"types": "./objects.d.ts",
3535
"import": "./build/objects.js"
3636
}
3737
},
3838
"files": [
3939
"build/**",
4040
"ably.d.ts",
41-
"liveobjects.d.ts",
41+
"objects.d.ts",
4242
"modular.d.ts",
4343
"push.d.ts",
4444
"resources/**",

scripts/moduleReport.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -323,18 +323,18 @@ async function checkObjectsPluginFiles() {
323323

324324
// These are the files that are allowed to contribute >= `threshold` bytes to the Objects bundle.
325325
const allowedFiles = new Set([
326-
'src/plugins/liveobjects/batchcontext.ts',
327-
'src/plugins/liveobjects/batchcontextlivecounter.ts',
328-
'src/plugins/liveobjects/batchcontextlivemap.ts',
329-
'src/plugins/liveobjects/index.ts',
330-
'src/plugins/liveobjects/livecounter.ts',
331-
'src/plugins/liveobjects/livemap.ts',
332-
'src/plugins/liveobjects/liveobject.ts',
333-
'src/plugins/liveobjects/liveobjects.ts',
334-
'src/plugins/liveobjects/liveobjectspool.ts',
335-
'src/plugins/liveobjects/objectid.ts',
336-
'src/plugins/liveobjects/statemessage.ts',
337-
'src/plugins/liveobjects/syncliveobjectsdatapool.ts',
326+
'src/plugins/objects/batchcontext.ts',
327+
'src/plugins/objects/batchcontextlivecounter.ts',
328+
'src/plugins/objects/batchcontextlivemap.ts',
329+
'src/plugins/objects/index.ts',
330+
'src/plugins/objects/livecounter.ts',
331+
'src/plugins/objects/livemap.ts',
332+
'src/plugins/objects/liveobject.ts',
333+
'src/plugins/objects/objectid.ts',
334+
'src/plugins/objects/objects.ts',
335+
'src/plugins/objects/objectspool.ts',
336+
'src/plugins/objects/statemessage.ts',
337+
'src/plugins/objects/syncobjectsdatapool.ts',
338338
]);
339339

340340
return checkBundleFiles(pluginBundleInfo, allowedFiles, 100);

src/common/lib/client/baserealtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { ModularPlugins, RealtimePresencePlugin } from './modularplugins';
1313
import { TransportNames } from 'common/constants/TransportName';
1414
import { TransportImplementations } from 'common/platform';
1515
import Defaults from '../util/defaults';
16-
import type * as ObjectsPlugin from 'plugins/liveobjects';
16+
import type * as ObjectsPlugin from 'plugins/objects';
1717

1818
/**
1919
`BaseRealtime` is an export of the tree-shakable version of the SDK, and acts as the base class for the `DefaultRealtime` class exported by the non tree-shakable version.

src/common/lib/client/modularplugins.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from '../types/presencemessage';
1212
import { TransportCtor } from '../transport/transport';
1313
import type * as PushPlugin from 'plugins/push';
14-
import type * as ObjectsPlugin from 'plugins/liveobjects';
14+
import type * as ObjectsPlugin from 'plugins/objects';
1515

1616
export interface PresenceMessagePlugin {
1717
presenceMessageFromValues: typeof presenceMessageFromValues;

src/common/lib/client/realtimechannel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { ChannelOptions } from '../../types/channel';
3030
import { normaliseChannelOptions } from '../util/defaults';
3131
import { PaginatedResult } from './paginatedresource';
3232
import type { PushChannel } from 'plugins/push';
33-
import type { Objects, StateMessage } from 'plugins/liveobjects';
33+
import type { Objects, StateMessage } from 'plugins/objects';
3434

3535
interface RealtimeHistoryParams {
3636
start?: number;

src/common/lib/types/protocolmessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import PresenceMessage, {
1212
fromValues as presenceMessageFromValues,
1313
fromValuesArray as presenceMessagesFromValuesArray,
1414
} from './presencemessage';
15-
import type * as ObjectsPlugin from 'plugins/liveobjects';
15+
import type * as ObjectsPlugin from 'plugins/objects';
1616

1717
export const actions = {
1818
HEARTBEAT: 0,

src/plugins/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Objects from './liveobjects';
1+
import Objects from './objects';
22
import Push from './push';
33

44
export interface StandardPlugins {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { BatchContextLiveCounter } from './batchcontextlivecounter';
44
import { BatchContextLiveMap } from './batchcontextlivemap';
55
import { LiveCounter } from './livecounter';
66
import { LiveMap } from './livemap';
7-
import { Objects } from './liveobjects';
8-
import { ROOT_OBJECT_ID } from './liveobjectspool';
7+
import { Objects } from './objects';
8+
import { ROOT_OBJECT_ID } from './objectspool';
99
import { StateMessage } from './statemessage';
1010

1111
export class BatchContext {

0 commit comments

Comments
 (0)