Skip to content

Commit 161da05

Browse files
authored
Tidy up some main exports (#4649)
Fix knip config Signed-off-by: Michael Telatynski <[email protected]>
1 parent ed397d9 commit 161da05

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

knip.ts

+15-3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,21 @@ export default {
66
"src/types.ts",
77
"src/browser-index.ts",
88
"src/indexeddb-worker.ts",
9+
"src/crypto-api/index.ts",
10+
"src/testing.ts",
11+
"src/matrix.ts",
912
"scripts/**",
1013
"spec/**",
11-
"release.sh",
12-
// For now, we include all source files as entrypoints as we have been bad about gutwrenched imports
13-
"src/**",
14+
// XXX: these look entirely unused
15+
"src/crypto/aes.ts",
16+
"src/crypto/crypto.ts",
17+
"src/crypto/recoverykey.ts",
18+
// XXX: these should be re-exported by one of the supported exports
19+
"src/matrixrtc/index.ts",
20+
"src/sliding-sync.ts",
21+
"src/webrtc/groupCall.ts",
22+
"src/webrtc/stats/media/mediaTrackStats.ts",
23+
"src/rendezvous/RendezvousChannel.ts",
1424
],
1525
project: ["**/*.{js,ts}"],
1626
ignore: ["examples/**"],
@@ -33,4 +43,6 @@ export default {
3343
"dist",
3444
],
3545
ignoreExportsUsedInFile: true,
46+
includeEntryExports: false,
47+
exclude: ["enumMembers"],
3648
} satisfies KnipConfig;

src/matrix.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export * from "./scheduler.ts";
4949
export * from "./filter.ts";
5050
export * from "./timeline-window.ts";
5151
export * from "./interactive-auth.ts";
52+
export * from "./version-support.ts";
5253
export * from "./service-types.ts";
5354
export * from "./store/memory.ts";
5455
export * from "./store/indexeddb.ts";
@@ -79,6 +80,8 @@ export type * from "./@types/IIdentityServerProvider.ts";
7980
export * from "./@types/membership.ts";
8081
export * from "./models/room-summary.ts";
8182
export * from "./models/event-status.ts";
83+
export * from "./models/profile-keys.ts";
84+
export * from "./models/related-relations.ts";
8285
export type { RoomSummary } from "./client.ts";
8386
export * as ContentHelpers from "./content-helpers.ts";
8487
export * as SecretStorage from "./secret-storage.ts";
@@ -106,7 +109,7 @@ export { CallFeedEvent } from "./webrtc/callFeed.ts";
106109
export { StatsReport } from "./webrtc/stats/statsReport.ts";
107110
export { Relations, RelationsEvent } from "./models/relations.ts";
108111
export { TypedEventEmitter } from "./models/typed-event-emitter.ts";
109-
export { LocalStorageErrors } from "./store/local-storage-events-emitter.ts";
112+
export { LocalStorageErrors, localStorageErrorsEventsEmitter } from "./store/local-storage-events-emitter.ts";
110113
export { IdentityProviderBrand, SSOAction } from "./@types/auth.ts";
111114
export type { ISSOFlow as SSOFlow, LoginFlow } from "./@types/auth.ts";
112115
export type { IHierarchyRelation as HierarchyRelation, IHierarchyRoom as HierarchyRoom } from "./@types/spaces.ts";

src/models/profile-keys.ts

+1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
* match a timezone provided in https://www.iana.org/time-zones.
44
*
55
* @see https://github.com/matrix-org/matrix-spec-proposals/blob/clokep/profile-tz/proposals/4175-profile-field-time-zone.md
6+
* @experimental
67
*/
78
export const ProfileKeyMSC4175Timezone = "us.cloke.msc4175.tz";

0 commit comments

Comments
 (0)