@teambit/objects 0.0.0-55ba00694afcfb150007f35406b48b8c61a52074 → 0.0.0-5c0763e68c785be6cff9c37d87e70e988a976aa9
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/dist/models/dependencies-graph.d.ts +1 -1
- package/dist/models/dependencies-graph.js.map +1 -1
- package/dist/models/lane-history.d.ts +1 -1
- package/dist/models/lane-history.js.map +1 -1
- package/dist/models/lane.d.ts +6 -5
- package/dist/models/lane.js.map +1 -1
- package/dist/models/model-component.d.ts +10 -8
- package/dist/models/model-component.js.map +1 -1
- package/dist/models/scopeMeta.d.ts +1 -1
- package/dist/models/scopeMeta.js.map +1 -1
- package/dist/models/source.d.ts +2 -2
- package/dist/models/symlink.d.ts +1 -1
- package/dist/models/version-history.d.ts +1 -1
- package/dist/models/version-history.js.map +1 -1
- package/dist/models/version.d.ts +10 -8
- package/dist/models/version.js.map +1 -1
- package/dist/objects/bit-object-list.d.ts +1 -1
- package/dist/objects/bit-object-list.js.map +1 -1
- package/dist/objects/object-list-to-graph.d.ts +2 -2
- package/dist/objects/object-list-to-graph.js.map +1 -1
- package/dist/objects/object.d.ts +2 -2
- package/dist/objects/object.js.map +1 -1
- package/dist/objects/objects-readable-generator.d.ts +4 -4
- package/dist/objects/objects-readable-generator.js.map +1 -1
- package/dist/objects/raw-object.d.ts +2 -2
- package/dist/objects/raw-object.js.map +1 -1
- package/dist/objects/ref.d.ts +2 -2
- package/dist/objects/ref.js.map +1 -1
- package/dist/objects/repository-hooks.d.ts +1 -1
- package/dist/objects/repository-hooks.js.map +1 -1
- package/dist/objects/repository.d.ts +10 -7
- package/dist/objects/repository.js.map +1 -1
- package/dist/objects/scope-index.d.ts +2 -2
- package/dist/objects/scope-index.js.map +1 -1
- package/models/dependencies-graph.ts +1 -1
- package/models/lane-history.ts +1 -1
- package/models/lane.ts +4 -3
- package/models/model-component.ts +13 -10
- package/models/scopeMeta.ts +1 -1
- package/models/version-history.ts +1 -1
- package/models/version.ts +9 -6
- package/objects/bit-object-list.ts +1 -1
- package/objects/object-list-to-graph.ts +2 -2
- package/objects/object.ts +2 -2
- package/objects/objects-readable-generator.ts +6 -6
- package/objects/raw-object.ts +1 -1
- package/objects/ref.ts +2 -2
- package/objects/repository-hooks.ts +1 -1
- package/objects/repository.ts +13 -14
- package/objects/scope-index.ts +2 -2
- package/package.json +25 -25
- /package/dist/{preview-1753208350490.js → preview-1755099079002.js} +0 -0
package/objects/raw-object.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { NULL_BYTE, SPACE_DELIMITER } from '@teambit/legacy.constants';
|
2
2
|
import { getStringifyArgs, inflate } from '@teambit/legacy.utils';
|
3
3
|
import { typesObj as types } from '@teambit/legacy.scope';
|
4
|
-
import BitObject from './object';
|
4
|
+
import type BitObject from './object';
|
5
5
|
import { clone } from 'lodash';
|
6
6
|
|
7
7
|
export default class BitRawObject {
|
package/objects/ref.ts
CHANGED
package/objects/repository.ts
CHANGED
@@ -3,30 +3,29 @@ import uidNumber from 'uid-number';
|
|
3
3
|
import { Mutex } from 'async-mutex';
|
4
4
|
import { compact, uniqBy, differenceWith, isEqual } from 'lodash';
|
5
5
|
import { BitError } from '@teambit/bit-error';
|
6
|
-
import { ComponentID } from '@teambit/component-id';
|
6
|
+
import type { ComponentID } from '@teambit/component-id';
|
7
7
|
import { HASH_SIZE, isSnap } from '@teambit/component-version';
|
8
8
|
import * as path from 'path';
|
9
9
|
import { pMapPool } from '@teambit/toolbox.promise.map-pool';
|
10
10
|
import { OBJECTS_DIR } from '@teambit/legacy.constants';
|
11
11
|
import { logger } from '@teambit/legacy.logger';
|
12
|
-
import {
|
12
|
+
import type { ChownOptions, PathOsBasedAbsolute } from '@teambit/legacy.utils';
|
13
|
+
import { glob, writeFile } from '@teambit/legacy.utils';
|
13
14
|
import { removeEmptyDir } from '@teambit/toolbox.fs.remove-empty-dir';
|
14
15
|
import { concurrentIOLimit } from '@teambit/harmony.modules.concurrency';
|
15
|
-
import {
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
ScopeJson,
|
20
|
-
UnmergedComponents,
|
21
|
-
RemoteLanes,
|
22
|
-
} from '@teambit/legacy.scope';
|
23
|
-
import { ScopeIndex, IndexType, IndexItem } from './scope-index';
|
16
|
+
import type { Types, ScopeJson } from '@teambit/legacy.scope';
|
17
|
+
import { HashNotFound, OutdatedIndexJson, UnmergedComponents, RemoteLanes } from '@teambit/legacy.scope';
|
18
|
+
import type { IndexType, IndexItem } from './scope-index';
|
19
|
+
import { ScopeIndex } from './scope-index';
|
24
20
|
import BitObject from './object';
|
25
|
-
import { ObjectItem
|
21
|
+
import type { ObjectItem } from './object-list';
|
22
|
+
import { ObjectList } from './object-list';
|
26
23
|
import BitRawObject from './raw-object';
|
27
24
|
import Ref from './ref';
|
28
|
-
import { ContentTransformer
|
29
|
-
import {
|
25
|
+
import type { ContentTransformer } from './repository-hooks';
|
26
|
+
import { onPersist, onRead } from './repository-hooks';
|
27
|
+
import type { InMemoryCache } from '@teambit/harmony.modules.in-memory-cache';
|
28
|
+
import { getMaxSizeForObjects, createInMemoryCache } from '@teambit/harmony.modules.in-memory-cache';
|
30
29
|
import { ScopeMeta, Lane, ModelComponent } from '../models';
|
31
30
|
|
32
31
|
const OBJECTS_BACKUP_DIR = `${OBJECTS_DIR}.bak`;
|
package/objects/scope-index.ts
CHANGED
@@ -7,8 +7,8 @@ import { logger } from '@teambit/legacy.logger';
|
|
7
7
|
import { InvalidIndexJson } from '@teambit/legacy.scope';
|
8
8
|
import { ModelComponent, Symlink } from '../models';
|
9
9
|
import Lane from '../models/lane';
|
10
|
-
import BitObject from './object';
|
11
|
-
import Ref from './ref';
|
10
|
+
import type BitObject from './object';
|
11
|
+
import type Ref from './ref';
|
12
12
|
import { difference } from 'lodash';
|
13
13
|
|
14
14
|
const COMPONENTS_INDEX_FILENAME = 'index.json';
|
package/package.json
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/objects",
|
3
|
-
"version": "0.0.0-
|
3
|
+
"version": "0.0.0-5c0763e68c785be6cff9c37d87e70e988a976aa9",
|
4
4
|
"homepage": "https://bit.cloud/teambit/scope/objects",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.scope",
|
8
8
|
"name": "objects",
|
9
|
-
"version": "
|
9
|
+
"version": "5c0763e68c785be6cff9c37d87e70e988a976aa9"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
|
-
"@pnpm/dependency-path": "1001.0
|
13
|
-
"@pnpm/lockfile.types": "^
|
12
|
+
"@pnpm/dependency-path": "1001.1.0",
|
13
|
+
"@pnpm/lockfile.types": "^1002.0.0",
|
14
14
|
"semver": "7.7.1",
|
15
15
|
"lodash": "4.17.21",
|
16
16
|
"uuid": "8.3.2",
|
@@ -22,42 +22,42 @@
|
|
22
22
|
"uid-number": "0.0.6",
|
23
23
|
"@teambit/harmony": "0.4.7",
|
24
24
|
"@teambit/component-id": "1.2.4",
|
25
|
+
"@teambit/legacy.utils": "0.0.23",
|
25
26
|
"@teambit/bit-error": "0.0.404",
|
26
27
|
"@teambit/component-version": "1.0.4",
|
27
28
|
"@teambit/lane-id": "0.0.312",
|
29
|
+
"@teambit/legacy.cli.error": "0.0.24",
|
30
|
+
"@teambit/legacy.constants": "0.0.14",
|
31
|
+
"@teambit/legacy.logger": "0.0.24",
|
28
32
|
"@teambit/toolbox.crypto.sha1": "0.0.7",
|
29
33
|
"@teambit/legacy-bit-id": "1.1.3",
|
34
|
+
"@teambit/legacy-component-log": "0.0.408",
|
35
|
+
"@teambit/pkg.modules.semver-helper": "0.0.13",
|
30
36
|
"@teambit/toolbox.array.duplications-finder": "0.0.3",
|
31
37
|
"@teambit/graph.cleargraph": "0.0.11",
|
38
|
+
"@teambit/bit.get-bit-version": "0.0.6",
|
39
|
+
"@teambit/harmony.modules.concurrency": "0.0.15",
|
32
40
|
"@teambit/toolbox.promise.map-pool": "0.0.6",
|
41
|
+
"@teambit/harmony.modules.in-memory-cache": "0.0.17",
|
33
42
|
"@teambit/toolbox.fs.remove-empty-dir": "0.0.5",
|
34
|
-
"@teambit/cli": "0.0.0-
|
35
|
-
"@teambit/
|
36
|
-
"@teambit/
|
37
|
-
"@teambit/
|
38
|
-
"@teambit/
|
39
|
-
"@teambit/
|
40
|
-
"@teambit/legacy.
|
41
|
-
"@teambit/legacy.
|
42
|
-
"@teambit/legacy.
|
43
|
-
"@teambit/
|
44
|
-
"@teambit/
|
45
|
-
"@teambit/legacy.consumer-component": "0.0.0-41365e2def6e64216243c715dfadbf25ac5ae714",
|
46
|
-
"@teambit/legacy.consumer-config": "0.0.0-9da57c4ab6b794384b0d3fffb27dd5ae04ea9317",
|
47
|
-
"@teambit/legacy.extension-data": "0.0.0-e7f1b2d4ce133f80b04b48e45241d90b27e6faa0",
|
48
|
-
"@teambit/pkg.modules.semver-helper": "0.0.0-c2d118ee307a583527f7476923d62d1d383dfb89",
|
49
|
-
"@teambit/bit.get-bit-version": "0.0.0-ce841d187798be77b716b46cfc14dad04cc466f8",
|
50
|
-
"@teambit/semantics.doc-parser": "0.0.0-1b2c09c69b23e26823ba96a24a7b3ec2fc8d0c05",
|
51
|
-
"@teambit/graph": "0.0.0-cd92ae26a85ef742056856b362f157adff9ad029",
|
52
|
-
"@teambit/harmony.modules.concurrency": "0.0.0-cf155afd2a3671c62e2a7fa394ae3c635cbf9cfc",
|
53
|
-
"@teambit/harmony.modules.in-memory-cache": "0.0.0-dcafba503d4dccca97d3e2d72d2230513d3ede9f"
|
43
|
+
"@teambit/cli": "0.0.0-e56376984abe78deb023b2d7acac6b2bf260397c",
|
44
|
+
"@teambit/harmony.modules.get-basic-log": "0.0.0-2fadd8f752d5fe57acfa82cabb2204eb3c38b9dc",
|
45
|
+
"@teambit/component.snap-distance": "0.0.0-e59182a8af057a674398b1d06bdb5a19a04f2cf1",
|
46
|
+
"@teambit/config-store": "0.0.0-e3d030cd701b04078376961e6f870a482f5e637f",
|
47
|
+
"@teambit/legacy.scope": "0.0.0-3f16d8e029aacd161ccf9163d15bc8b69c317f4a",
|
48
|
+
"@teambit/component.sources": "0.0.0-2b6f3fea869cb57b7a9529e0275267c1c378b4a8",
|
49
|
+
"@teambit/legacy.consumer-component": "0.0.0-94710db31ada5a7cc91c458d39c55844290d14a8",
|
50
|
+
"@teambit/legacy.consumer-config": "0.0.0-271bcf97ea6731464931ca440c940b1d1681702f",
|
51
|
+
"@teambit/legacy.extension-data": "0.0.0-fc8f5bc3eb0a81ae83c1df90f4b500b79aa041b7",
|
52
|
+
"@teambit/semantics.doc-parser": "0.0.0-c4e8f652484b7e8bcb10e74fdb117df7894650de",
|
53
|
+
"@teambit/graph": "0.0.0-1c0905ff3475b431995847617c4ba172ef9a0bfb"
|
54
54
|
},
|
55
55
|
"devDependencies": {
|
56
56
|
"@types/semver": "7.5.8",
|
57
57
|
"@types/lodash": "4.14.165",
|
58
58
|
"@types/uuid": "8.3.4",
|
59
59
|
"@types/fs-extra": "9.0.7",
|
60
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
60
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.75"
|
61
61
|
},
|
62
62
|
"peerDependencies": {
|
63
63
|
"chai": "5.2.1",
|
File without changes
|