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

chore: upgrade @standardnotes/domain-core and @standardnotes/settings #2607

Merged
merged 1 commit into from Oct 26, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/api/package.json
Expand Up @@ -36,7 +36,7 @@
},
"dependencies": {
"@standardnotes/common": "^1.50.0",
"@standardnotes/domain-core": "^1.34.1",
"@standardnotes/domain-core": "^1.40.0",
"@standardnotes/models": "workspace:*",
"@standardnotes/responses": "workspace:*",
"@standardnotes/utils": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/package.json
Expand Up @@ -35,7 +35,7 @@
},
"dependencies": {
"@electron/remote": "^2.0.12",
"@standardnotes/domain-core": "^1.34.1",
"@standardnotes/domain-core": "^1.40.0",
"@standardnotes/electron-clear-data": "1.1.1",
"@standardnotes/web": "workspace:*",
"axios": "^1.4.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/encryption/package.json
Expand Up @@ -29,7 +29,7 @@
},
"dependencies": {
"@standardnotes/common": "^1.50.0",
"@standardnotes/domain-core": "^1.34.1",
"@standardnotes/domain-core": "^1.40.0",
"@standardnotes/models": "workspace:*",
"@standardnotes/responses": "workspace:*",
"@standardnotes/sncrypto-common": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/features/package.json
Expand Up @@ -26,7 +26,7 @@
},
"dependencies": {
"@standardnotes/common": "^1.50.0",
"@standardnotes/domain-core": "^1.34.1",
"@standardnotes/domain-core": "^1.40.0",
"reflect-metadata": "^0.1.13"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/models/package.json
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"@standardnotes/common": "^1.50.0",
"@standardnotes/domain-core": "^1.34.1",
"@standardnotes/domain-core": "^1.40.0",
"@standardnotes/features": "workspace:*",
"@standardnotes/responses": "workspace:*",
"@standardnotes/sncrypto-common": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion packages/services/package.json
Expand Up @@ -18,7 +18,7 @@
"dependencies": {
"@standardnotes/api": "workspace:^",
"@standardnotes/common": "^1.50.0",
"@standardnotes/domain-core": "^1.34.1",
"@standardnotes/domain-core": "^1.40.0",
"@standardnotes/encryption": "workspace:^",
"@standardnotes/features": "workspace:^",
"@standardnotes/files": "workspace:^",
Expand Down
@@ -1,6 +1,5 @@
import { AuthClientInterface } from '@standardnotes/services'
import { Result, UseCaseInterface } from '@standardnotes/domain-core'
import { SettingName } from '@standardnotes/settings'
import { Result, SettingName, UseCaseInterface } from '@standardnotes/domain-core'

import { SettingsClientInterface } from '@Lib/Services/Settings/SettingsClientInterface'

Expand Down
3 changes: 1 addition & 2 deletions packages/snjs/lib/Services/Features/FeaturesService.spec.ts
@@ -1,8 +1,7 @@
import { ItemInterface, SNFeatureRepo } from '@standardnotes/models'
import { SyncService } from '../Sync/SyncService'
import { SettingName } from '@standardnotes/settings'
import { FeaturesService } from '@Lib/Services/Features'
import { RoleName, ContentType, Uuid, Result } from '@standardnotes/domain-core'
import { RoleName, ContentType, Uuid, Result, SettingName } from '@standardnotes/domain-core'
import { NativeFeatureIdentifier, GetFeatures } from '@standardnotes/features'
import { SettingsService } from '../Settings'
import { PureCryptoInterface } from '@standardnotes/sncrypto-common'
Expand Down
@@ -1,7 +1,7 @@
import { SettingsClientInterface } from '@Lib/Services/Settings/SettingsClientInterface'
import { SettingName } from '@standardnotes/domain-core'
import { SNFeatureRepo } from '@standardnotes/models'
import { MutatorClientInterface } from '@standardnotes/services'
import { SettingName } from '@standardnotes/settings'

export class MigrateFeatureRepoToUserSettingUseCase {
constructor(
Expand Down
3 changes: 1 addition & 2 deletions packages/snjs/lib/Services/Listed/ListedService.ts
Expand Up @@ -2,7 +2,6 @@ import { isString, lastElement, sleep } from '@standardnotes/utils'
import { UuidString } from '@Lib/Types/UuidString'
import { ItemManager } from '@Lib/Services/Items/ItemManager'
import { DeprecatedHttpService } from '../Api/DeprecatedHttpService'
import { SettingName } from '@standardnotes/settings'
import { SettingsService } from '../Settings/SNSettingsService'
import { ListedClientInterface } from './ListedClientInterface'
import { LegacyApiService } from '../Api/ApiService'
Expand All @@ -15,7 +14,7 @@ import {
SyncServiceInterface,
} from '@standardnotes/services'
import { ProtectionService } from '../Protection'
import { ContentType } from '@standardnotes/domain-core'
import { ContentType, SettingName } from '@standardnotes/domain-core'

export class ListedService extends AbstractService implements ListedClientInterface {
constructor(
Expand Down
3 changes: 1 addition & 2 deletions packages/snjs/lib/Services/Mfa/MfaService.ts
@@ -1,9 +1,8 @@
import { SettingName } from '@standardnotes/settings'

import { SettingsService } from '../Settings'
import { PureCryptoInterface } from '@standardnotes/sncrypto-common'
import { FeaturesService } from '../Features/FeaturesService'
import { AbstractService, InternalEventBusInterface, MfaServiceInterface, SignInStrings } from '@standardnotes/services'
import { SettingName } from '@standardnotes/domain-core'

export class MfaService extends AbstractService implements MfaServiceInterface {
constructor(
Expand Down
3 changes: 2 additions & 1 deletion packages/snjs/lib/Services/Settings/SNSettingsService.ts
@@ -1,9 +1,10 @@
import { LegacyApiService } from '../Api/ApiService'
import { SettingsGateway } from './SettingsGateway'
import { SessionManager } from '../Session/SessionManager'
import { EmailBackupFrequency, SettingName } from '@standardnotes/settings'
import { EmailBackupFrequency } from '@standardnotes/settings'
import { AbstractService, InternalEventBusInterface } from '@standardnotes/services'
import { SettingsClientInterface } from './SettingsClientInterface'
import { SettingName } from '@standardnotes/domain-core'

export class SettingsService extends AbstractService implements SettingsClientInterface {
private provider!: SettingsGateway
Expand Down
@@ -1,5 +1,6 @@
import { SettingName, EmailBackupFrequency } from '@standardnotes/settings'
import { EmailBackupFrequency } from '@standardnotes/settings'
import { SettingsList } from './SettingsList'
import { SettingName } from '@standardnotes/domain-core'

export interface SettingsClientInterface {
listSettings(): Promise<SettingsList>
Expand Down
2 changes: 1 addition & 1 deletion packages/snjs/lib/Services/Settings/SettingsGateway.ts
@@ -1,8 +1,8 @@
import { SettingsList } from './SettingsList'
import { SettingName } from '@standardnotes/settings'
import { API_MESSAGE_INVALID_SESSION } from '@standardnotes/services'
import { getErrorFromErrorResponse, HttpStatusCode, isErrorResponse, User } from '@standardnotes/responses'
import { SettingsServerInterface } from './SettingsServerInterface'
import { SettingName } from '@standardnotes/domain-core'

/**
* SettingsGateway coordinates communication with the API service
Expand Down
2 changes: 1 addition & 1 deletion packages/snjs/lib/Services/Settings/SettingsList.ts
@@ -1,11 +1,11 @@
import { SettingName } from '@standardnotes/domain-core'
import { SettingData } from '@standardnotes/responses'
import {
MuteSignInEmailsOption,
MuteFailedBackupsEmailsOption,
EmailBackupFrequency,
ListedAuthorSecretsData,
LogSessionUserAgentOption,
SettingName,
MuteMarketingEmailsOption,
} from '@standardnotes/settings'

Expand Down
4 changes: 2 additions & 2 deletions packages/snjs/package.json
Expand Up @@ -37,15 +37,15 @@
"@babel/preset-env": "*",
"@standardnotes/api": "workspace:*",
"@standardnotes/common": "^1.50.0",
"@standardnotes/domain-core": "^1.34.1",
"@standardnotes/domain-core": "^1.40.0",
"@standardnotes/domain-events": "^2.122.0",
"@standardnotes/encryption": "workspace:*",
"@standardnotes/features": "workspace:*",
"@standardnotes/files": "workspace:*",
"@standardnotes/models": "workspace:*",
"@standardnotes/responses": "workspace:*",
"@standardnotes/services": "workspace:*",
"@standardnotes/settings": "^1.20.0",
"@standardnotes/settings": "^1.22.0",
"@standardnotes/sncrypto-common": "workspace:*",
"@standardnotes/sncrypto-web": "workspace:*",
"@standardnotes/utils": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-services/package.json
Expand Up @@ -16,7 +16,7 @@
},
"dependencies": {
"@standardnotes/common": "^1.50.0",
"@standardnotes/domain-core": "^1.34.1",
"@standardnotes/domain-core": "^1.40.0",
"@standardnotes/features": "workspace:^",
"@standardnotes/filepicker": "workspace:^",
"@standardnotes/models": "workspace:^",
Expand Down
45 changes: 18 additions & 27 deletions yarn.lock
Expand Up @@ -4138,7 +4138,7 @@ __metadata:
resolution: "@standardnotes/api@workspace:packages/api"
dependencies:
"@standardnotes/common": ^1.50.0
"@standardnotes/domain-core": ^1.34.1
"@standardnotes/domain-core": ^1.40.0
"@standardnotes/models": "workspace:*"
"@standardnotes/responses": "workspace:*"
"@standardnotes/utils": "workspace:*"
Expand Down Expand Up @@ -4289,7 +4289,7 @@ __metadata:
"@babel/core": "*"
"@babel/preset-env": "*"
"@electron/remote": ^2.0.12
"@standardnotes/domain-core": ^1.34.1
"@standardnotes/domain-core": ^1.40.0
"@standardnotes/electron-clear-data": 1.1.1
"@standardnotes/web": "workspace:*"
"@types/fs-extra": ^11.0.1
Expand Down Expand Up @@ -4332,21 +4332,12 @@ __metadata:
languageName: unknown
linkType: soft

"@standardnotes/domain-core@npm:^1.24.1":
version: 1.24.1
resolution: "@standardnotes/domain-core@npm:1.24.1"
"@standardnotes/domain-core@npm:^1.40.0":
version: 1.40.0
resolution: "@standardnotes/domain-core@npm:1.40.0"
dependencies:
uuid: ^9.0.0
checksum: efe7e102f09c1d30ba930db3572732a952a44ddb8ad27bc2e71c9f5677cef97b3fe86465094e13d02f5a45bac80186327c0434a7fc4b5801bedee0b7d5a7ad68
languageName: node
linkType: hard

"@standardnotes/domain-core@npm:^1.34.1":
version: 1.34.1
resolution: "@standardnotes/domain-core@npm:1.34.1"
dependencies:
uuid: ^9.0.0
checksum: 29fa0ee7868b08a5255ce737535aa67b9fe8f0562f7d5a308f4be4a63d46821f34b4ea1d4241064e3025968ae45e09eba3dcbd1ff8d510618114541c42a8e6ae
checksum: 7a8454d5e667b2db157247f9fdd3ba4f62e90f85a02acb9f805b00da2edc0d495318139ee4441148244af42a228053ede40b7862507003c6b510ca83863b8997
languageName: node
linkType: hard

Expand Down Expand Up @@ -4393,7 +4384,7 @@ __metadata:
dependencies:
"@standardnotes/common": ^1.50.0
"@standardnotes/config": 2.4.3
"@standardnotes/domain-core": ^1.34.1
"@standardnotes/domain-core": ^1.40.0
"@standardnotes/models": "workspace:*"
"@standardnotes/responses": "workspace:*"
"@standardnotes/sncrypto-common": "workspace:*"
Expand Down Expand Up @@ -4428,7 +4419,7 @@ __metadata:
resolution: "@standardnotes/features@workspace:packages/features"
dependencies:
"@standardnotes/common": ^1.50.0
"@standardnotes/domain-core": ^1.34.1
"@standardnotes/domain-core": ^1.40.0
"@types/jest": ^29.2.3
"@typescript-eslint/eslint-plugin": "*"
eslint: "*"
Expand Down Expand Up @@ -4635,7 +4626,7 @@ __metadata:
resolution: "@standardnotes/models@workspace:packages/models"
dependencies:
"@standardnotes/common": ^1.50.0
"@standardnotes/domain-core": ^1.34.1
"@standardnotes/domain-core": ^1.40.0
"@standardnotes/features": "workspace:*"
"@standardnotes/responses": "workspace:*"
"@standardnotes/sncrypto-common": "workspace:^"
Expand Down Expand Up @@ -4731,7 +4722,7 @@ __metadata:
dependencies:
"@standardnotes/api": "workspace:^"
"@standardnotes/common": ^1.50.0
"@standardnotes/domain-core": ^1.34.1
"@standardnotes/domain-core": ^1.40.0
"@standardnotes/encryption": "workspace:^"
"@standardnotes/features": "workspace:^"
"@standardnotes/files": "workspace:^"
Expand All @@ -4752,13 +4743,13 @@ __metadata:
languageName: unknown
linkType: soft

"@standardnotes/settings@npm:^1.20.0":
version: 1.21.20
resolution: "@standardnotes/settings@npm:1.21.20"
"@standardnotes/settings@npm:^1.22.0":
version: 1.22.0
resolution: "@standardnotes/settings@npm:1.22.0"
dependencies:
"@standardnotes/domain-core": ^1.24.1
"@standardnotes/domain-core": ^1.40.0
reflect-metadata: ^0.1.13
checksum: 0a3b9fcffafcff4936199a220309646e7c9f5cde6d1855e2b86317151e635a3b55cbc1160c1681013c2d620eb567af009cf431644af4d5f305302e8cd8c5c886
checksum: 93be5a6ff63231f1c8baf2df71a2248f757841e9752f950005d3613c1fe08a8659b73b806c9a7d498b77c81ff5815cab2dea2f3339fb95f76cdc159a786f0c41
languageName: node
linkType: hard

Expand Down Expand Up @@ -4832,15 +4823,15 @@ __metadata:
"@babel/preset-env": "*"
"@standardnotes/api": "workspace:*"
"@standardnotes/common": ^1.50.0
"@standardnotes/domain-core": ^1.34.1
"@standardnotes/domain-core": ^1.40.0
"@standardnotes/domain-events": ^2.122.0
"@standardnotes/encryption": "workspace:*"
"@standardnotes/features": "workspace:*"
"@standardnotes/files": "workspace:*"
"@standardnotes/models": "workspace:*"
"@standardnotes/responses": "workspace:*"
"@standardnotes/services": "workspace:*"
"@standardnotes/settings": ^1.20.0
"@standardnotes/settings": ^1.22.0
"@standardnotes/sncrypto-common": "workspace:*"
"@standardnotes/sncrypto-web": "workspace:*"
"@standardnotes/utils": "workspace:*"
Expand Down Expand Up @@ -4957,7 +4948,7 @@ __metadata:
resolution: "@standardnotes/ui-services@workspace:packages/ui-services"
dependencies:
"@standardnotes/common": ^1.50.0
"@standardnotes/domain-core": ^1.34.1
"@standardnotes/domain-core": ^1.40.0
"@standardnotes/features": "workspace:^"
"@standardnotes/filepicker": "workspace:^"
"@standardnotes/models": "workspace:^"
Expand Down