Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update barrels #241

Merged
merged 3 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .barrelsby.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"directory": "./src",
"location": "top",
"exclude": ["tests__", "testfixtures"],
"singleQuotes": true,
"exportDefault": true,
"delete": true
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@types/lru-cache": "^5.1.1",
"@types/node": "^20.14.1",
"@types/uuid": "^8.3.0",
"barrelsby": "^2.2.0",
"barrelsby": "^2.8.1",
"eslint": "^8.56.0",
"eslint-config-universe": "^13.0.0",
"eslint-plugin-tsdoc": "^0.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/entity-cache-adapter-local-memory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"test": "jest --rootDir . --config ../../resources/jest.config.js",
"integration": "../../resources/run-with-docker yarn integration-no-setup",
"integration-no-setup": "jest --config ../../resources/jest-integration.config.js --rootDir . --runInBand --passWithNoTests",
"barrelsby": "barrelsby --directory src --location top --exclude tests__ --singleQuotes --exportDefault --delete"
"barrelsby": "barrelsby --config ../../.barrelsby.json"
},
"engines": {
"node": ">=16"
Expand Down
2 changes: 1 addition & 1 deletion packages/entity-cache-adapter-redis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"test": "jest --rootDir . --config ../../resources/jest.config.js",
"integration": "../../resources/run-with-docker yarn integration-no-setup",
"integration-no-setup": "jest --config ../../resources/jest-integration.config.js --rootDir . --runInBand --passWithNoTests",
"barrelsby": "barrelsby --directory src --location top --exclude tests__ --singleQuotes --exportDefault --delete"
"barrelsby": "barrelsby --config ../../.barrelsby.json"
},
"engines": {
"node": ">=16"
Expand Down
5 changes: 3 additions & 2 deletions packages/entity-cache-adapter-redis/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
* @module @expo/entity-cache-adapter-redis
*/

export { default as RedisCacheAdapterProvider } from './RedisCacheAdapterProvider';
export * from './RedisCommon';
export { default as GenericRedisCacher } from './GenericRedisCacher';
export * from './GenericRedisCacher';
export { default as RedisCacheAdapterProvider } from './RedisCacheAdapterProvider';
export * from './RedisCommon';
export { default as wrapNativeRedisCallAsync } from './errors/wrapNativeRedisCallAsync';
2 changes: 1 addition & 1 deletion packages/entity-database-adapter-knex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"test": "jest --rootDir . --config ../../resources/jest.config.js --passWithNoTests",
"integration": "../../resources/run-with-docker yarn integration-no-setup",
"integration-no-setup": "jest --config ../../resources/jest-integration.config.js --rootDir . --runInBand --passWithNoTests",
"barrelsby": "barrelsby --directory src --location top --exclude tests__ --singleQuotes --exportDefault --delete"
"barrelsby": "barrelsby --config ../../.barrelsby.json"
},
"engines": {
"node": ">=16"
Expand Down
3 changes: 2 additions & 1 deletion packages/entity-database-adapter-knex/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
* @module @expo/entity-database-adapter-knex
*/

export * from './EntityFields';
export { default as PostgresEntityDatabaseAdapter } from './PostgresEntityDatabaseAdapter';
export { default as PostgresEntityDatabaseAdapterProvider } from './PostgresEntityDatabaseAdapterProvider';
export { default as PostgresEntityQueryContextProvider } from './PostgresEntityQueryContextProvider';
export * from './EntityFields';
export { default as wrapNativePostgresCallAsync } from './errors/wrapNativePostgresCallAsync';
2 changes: 1 addition & 1 deletion packages/entity-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test": "jest --rootDir . --config ../../resources/jest.config.js",
"integration": "../../resources/run-with-docker yarn integration-no-setup",
"integration-no-setup": "jest --config ../../resources/jest-integration.config.js --rootDir . --runInBand --passWithNoTests",
"barrelsby": "barrelsby --directory src --location top --exclude tests__ --singleQuotes --exportDefault --delete",
"barrelsby": "",
"start": "tsnd --transpile-only --inspect --respawn --no-notify --async-stack-traces --throw-deprecation -- src/index.ts"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/entity-full-integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test": "jest --rootDir . --config ../../resources/jest.config.js --passWithNoTests",
"integration": "../../resources/run-with-docker yarn integration-no-setup",
"integration-no-setup": "jest --config ../../resources/jest-integration.config.js --rootDir . --runInBand --passWithNoTests",
"barrelsby": "barrelsby --directory src --location top --exclude tests__ --singleQuotes --exportDefault --delete"
"barrelsby": "barrelsby --config ../../.barrelsby.json"
},
"engines": {
"node": ">=16"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"test": "jest --rootDir . --config ../../resources/jest.config.js --passWithNoTests",
"integration": "../../resources/run-with-docker yarn integration-no-setup",
"integration-no-setup": "jest --config ../../resources/jest-integration.config.js --rootDir . --runInBand --passWithNoTests",
"barrelsby": "barrelsby --directory src --location top --exclude tests__ --singleQuotes --exportDefault --delete"
"barrelsby": "barrelsby --config ../../.barrelsby.json"
},
"engines": {
"node": ">=16"
Expand Down
2 changes: 1 addition & 1 deletion packages/entity-secondary-cache-redis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"test": "jest --rootDir . --config ../../resources/jest.config.js --passWithNoTests",
"integration": "../../resources/run-with-docker yarn integration-no-setup",
"integration-no-setup": "jest --config ../../resources/jest-integration.config.js --rootDir . --runInBand --passWithNoTests",
"barrelsby": "barrelsby --directory src --location top --exclude tests__ --singleQuotes --exportDefault --delete"
"barrelsby": "barrelsby --config ../../.barrelsby.json"
},
"engines": {
"node": ">=16"
Expand Down
2 changes: 1 addition & 1 deletion packages/entity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"test": "jest --rootDir . --config ../../resources/jest.config.js",
"integration": "../../resources/run-with-docker yarn integration-no-setup",
"integration-no-setup": "jest --config ../../resources/jest-integration.config.js --rootDir . --runInBand --passWithNoTests",
"barrelsby": "barrelsby --directory src --location top --exclude tests__ --singleQuotes --exportDefault --delete"
"barrelsby": "barrelsby --config ../../.barrelsby.json"
},
"engines": {
"node": ">=16"
Expand Down
47 changes: 26 additions & 21 deletions packages/entity/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,49 +4,43 @@
* @module @expo/entity
*/

export { default as AuthorizationResultBasedEntityLoader } from './AuthorizationResultBasedEntityLoader';
export { default as ComposedEntityCacheAdapter } from './ComposedEntityCacheAdapter';
export { default as ComposedSecondaryEntityCache } from './ComposedSecondaryEntityCache';
export { default as GenericSecondaryEntityCache } from './GenericSecondaryEntityCache';
export { default as EnforcingEntityLoader } from './EnforcingEntityLoader';
export { default as Entity } from './Entity';
export * from './Entity';
export { default as EntityAssociationLoader } from './EntityAssociationLoader';
export * from './EntityAssociationLoader';
export { default as IEntityCacheAdapter } from './IEntityCacheAdapter';
export { default as GenericEntityCacheAdapter } from './GenericEntityCacheAdapter';
export { default as EntityCompanion } from './EntityCompanion';
export * from './EntityCompanion';
export { default as EntityCompanionProvider } from './EntityCompanionProvider';
export * from './EntityCompanionProvider';
export { default as EntityConfiguration } from './EntityConfiguration';
export { default as EntityDatabaseAdapter } from './EntityDatabaseAdapter';
export * from './EntityDatabaseAdapter';
export { default as EntityDatabaseAdapterError } from './errors/EntityDatabaseAdapterError';
export * from './errors/EntityDatabaseAdapterError';
export { default as EntityCacheAdapterError } from './errors/EntityCacheAdapterError';
export * from './errors/EntityCacheAdapterError';
export * from './errors/EntityError';
export { default as EntityError } from './errors/EntityError';
export { default as EntityNotAuthorizedError } from './errors/EntityNotAuthorizedError';
export { default as EntityNotFoundError } from './errors/EntityNotFoundError';
export * from './EntityFields';
export * from './EntityFieldDefinition';
export * from './EntityFields';
export { default as EntityLoader } from './EntityLoader';
export { default as EntityLoaderFactory } from './EntityLoaderFactory';
export { default as EntitySecondaryCacheLoader } from './EntitySecondaryCacheLoader';
export * from './EntitySecondaryCacheLoader';
export * from './EntityMutator';
export { default as EntityMutationValidator } from './EntityMutationValidator';
export { default as EntityLoaderUtils } from './EntityLoaderUtils';
export * from './EntityMutationInfo';
export * from './EntityMutationTriggerConfiguration';
export { default as EntityMutationTriggerConfiguration } from './EntityMutationTriggerConfiguration';
export * from './EntityMutationTriggerConfiguration';
export { default as EntityMutationValidator } from './EntityMutationValidator';
export * from './EntityMutator';
export { default as EntityMutatorFactory } from './EntityMutatorFactory';
export { default as EntityPrivacyPolicy } from './EntityPrivacyPolicy';
export * from './EntityPrivacyPolicy';
export * from './EntityQueryContext';
export { default as EntityQueryContextProvider } from './EntityQueryContextProvider';
export { default as EntitySecondaryCacheLoader } from './EntitySecondaryCacheLoader';
export * from './EntitySecondaryCacheLoader';
export { default as GenericEntityCacheAdapter } from './GenericEntityCacheAdapter';
export { default as GenericSecondaryEntityCache } from './GenericSecondaryEntityCache';
export { default as IEntityCacheAdapter } from './IEntityCacheAdapter';
export { default as IEntityCacheAdapterProvider } from './IEntityCacheAdapterProvider';
export { default as IEntityDatabaseAdapterProvider } from './IEntityDatabaseAdapterProvider';
export { default as EntityQueryContextProvider } from './EntityQueryContextProvider';
export { default as IEntityGenericCacher } from './IEntityGenericCacher';
export { default as ReadonlyEntity } from './ReadonlyEntity';
export { default as ViewerContext } from './ViewerContext';
Expand All @@ -55,8 +49,18 @@ export { default as ViewerScopedEntityCompanionProvider } from './ViewerScopedEn
export { default as ViewerScopedEntityLoaderFactory } from './ViewerScopedEntityLoaderFactory';
export { default as ViewerScopedEntityMutatorFactory } from './ViewerScopedEntityMutatorFactory';
export * from './entityUtils';
export { default as EntityCacheAdapterError } from './errors/EntityCacheAdapterError';
export * from './errors/EntityCacheAdapterError';
export { default as EntityDatabaseAdapterError } from './errors/EntityDatabaseAdapterError';
export * from './errors/EntityDatabaseAdapterError';
export { default as EntityError } from './errors/EntityError';
export * from './errors/EntityError';
export { default as EntityInvalidFieldValueError } from './errors/EntityInvalidFieldValueError';
export { default as EntityNotAuthorizedError } from './errors/EntityNotAuthorizedError';
export { default as EntityNotFoundError } from './errors/EntityNotFoundError';
export { default as EntityDataManager } from './internal/EntityDataManager';
export * from './internal/EntityFieldTransformationUtils';
export { default as EntityTableDataCoordinator } from './internal/EntityTableDataCoordinator';
export { default as ReadThroughEntityCache } from './internal/ReadThroughEntityCache';
export * from './internal/ReadThroughEntityCache';
export * from './metrics/EntityMetricsUtils';
Expand All @@ -68,12 +72,13 @@ export { default as AlwaysDenyPrivacyPolicyRule } from './rules/AlwaysDenyPrivac
export { default as AlwaysSkipPrivacyPolicyRule } from './rules/AlwaysSkipPrivacyPolicyRule';
export { default as PrivacyPolicyRule } from './rules/PrivacyPolicyRule';
export * from './rules/PrivacyPolicyRule';
export * from './utils/EntityPrivacyUtils';
export * from './utils/mergeEntityMutationTriggerConfigurations';
export * from './utils/collections/maps';
export * from './utils/testing/PrivacyPolicyRuleTestUtils';
export * from './utils/testing/StubCacheAdapter';
export { default as describeFieldTestCase } from './utils/testing/describeFieldTestCase';
export { default as StubDatabaseAdapter } from './utils/testing/StubDatabaseAdapter';
export { default as StubDatabaseAdapterProvider } from './utils/testing/StubDatabaseAdapterProvider';
export { default as StubQueryContextProvider } from './utils/testing/StubQueryContextProvider';
export * from './utils/testing/createUnitTestEntityCompanionProvider';
export * from './utils/collections/maps';
export * from './utils/EntityPrivacyUtils';
export { default as describeFieldTestCase } from './utils/testing/describeFieldTestCase';
22 changes: 11 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -854,31 +854,31 @@
integrity sha512-reebgVwjf8VfZxSXU7e+UjpXGwcUTIMpWR9FY54Oh70ulhXrQiZei62B4D9bH3SVYMwnDGzifHJ8INRrJ+0L1g==

"@expo/entity-cache-adapter-local-memory@file:packages/entity-cache-adapter-local-memory":
version "0.35.0"
version "0.36.0"
dependencies:
lru-cache "^6.0.0"

"@expo/entity-cache-adapter-redis@file:packages/entity-cache-adapter-redis":
version "0.35.0"
version "0.36.0"

"@expo/entity-database-adapter-knex@file:packages/entity-database-adapter-knex":
version "0.35.0"
version "0.36.0"
dependencies:
knex "^3.1.0"

"@expo/entity-ip-address-field@file:packages/entity-ip-address-field":
version "0.35.0"
version "0.36.0"
dependencies:
ip-address "^8.1.0"

"@expo/entity-secondary-cache-local-memory@file:packages/entity-secondary-cache-local-memory":
version "0.35.0"
version "0.36.0"

"@expo/entity-secondary-cache-redis@file:packages/entity-secondary-cache-redis":
version "0.35.0"
version "0.36.0"

"@expo/entity@file:packages/entity":
version "0.35.0"
version "0.36.0"
dependencies:
"@expo/results" "^1.0.0"
dataloader "^2.0.0"
Expand Down Expand Up @@ -3222,10 +3222,10 @@ balanced-match@^1.0.0:
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==

barrelsby@^2.2.0:
version "2.3.4"
resolved "https://registry.yarnpkg.com/barrelsby/-/barrelsby-2.3.4.tgz#bd31e06b62ddc510fa0b6e202c1ff0cd9f096867"
integrity sha512-p2dFA7nkgjvUkVKf3cvTt4nBWxg5E9gpxUUX857F+0+Mx/P1Iw+WO5/yJSLE2eibIVbj1D+29sE4JczLLoQfKA==
barrelsby@^2.8.1:
version "2.8.1"
resolved "https://registry.yarnpkg.com/barrelsby/-/barrelsby-2.8.1.tgz#ea25bd7c4e61a7dcec1a2117f01811196ce86586"
integrity sha512-barN2MVKqUVwmjRy3JLSMYufrBDcdWUc2pjlR0V9P8S3aMvvJ4StFz1GJMzEi5GBoQlnBIWOcCxBDzI2xfaaGw==
dependencies:
"@types/yargs" "^17.0.10"
signale "^1.4.0"
Expand Down
Loading