Skip to content

Commit

Permalink
Merge pull request #49 from embedded-insurance/upgrade-effect-and-schema
Browse files Browse the repository at this point in the history
chore: upgrade to effect next.61, schema 0.55
  • Loading branch information
alex-dixon authored Dec 22, 2023
2 parents cc7beed + 62aa9e7 commit 79f9568
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 23 deletions.
13 changes: 13 additions & 0 deletions .changeset/tall-adults-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@effect-use/temporal-client': major
'@effect-use/http-client': major
'@effect-use/aws-s3': major
'@effect-use/brex': major
'@effect-use/gcp-gcs': major
'@effect-use/gcp-logging': major
'@effect-use/github': major
'@effect-use/stripe': major
'@effect-use/temporal-config': major
---

upgrade to effect next.61, schema 0.55
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"url": "https://github.com/embedded-insurance/effect-use.git"
},
"resolutions": {
"effect": "2.0.0-next.48",
"@effect/schema": "0.43.0",
"effect": "2.0.0-next.61",
"@effect/schema": "0.55.0",
"@temporalio/activity": "1.8.6",
"@temporalio/worker": "1.8.6",
"@temporalio/workflow": "1.8.6",
Expand All @@ -50,7 +50,7 @@
},
"main": "dist/index.js",
"dependencies": {
"@effect/schema": "0.43.0",
"effect": "2.0.0-next.48"
"@effect/schema": "0.55.0",
"effect": "2.0.0-next.61"
}
}
1 change: 0 additions & 1 deletion packages/http-client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ export const make = (args: Config): Effect.Effect<Fetch, never, Client> =>
),
Effect.mapError((e) => {
if (isRecord(e) && e._tag === 'InvalidURL') {
// @ts-expect-error
return e as InvalidURL
}
return new FetchError({
Expand Down
4 changes: 2 additions & 2 deletions packages/temporal-client/src/batch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ export const BatchOperationResult = S.struct({
),
startTime: DateFromGoogleProtobufTimestamp,
closeTime: DateFromGoogleProtobufTimestamp,
totalOperationCount: S.numberFromString(S.string),
completeOperationCount: S.numberFromString(S.string),
totalOperationCount: S.NumberFromString,
completeOperationCount: S.NumberFromString,
identity: S.string,
reason: S.string,
})
Expand Down
4 changes: 2 additions & 2 deletions packages/temporal-client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ export const createSignalLayer = (
config: TemporalConfig
): Layer.Layer<Scope.Scope, unknown, Client | Connection | TemporalConfig> =>
pipe(
Layer.effect(TemporalConfigTag, Effect.succeed(config)),
Layer.effect(TemporalClient, buildClient),
Layer.provideMerge(ConnectionLive),
Layer.provideMerge(Layer.effect(TemporalClient, buildClient))
Layer.provideMerge(Layer.effect(TemporalConfigTag, Effect.succeed(config)))
)

export const createTemporalClientLayer = createSignalLayer
5 changes: 3 additions & 2 deletions packages/temporal-client/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ export const BaseWorkflowOptions = S.struct({
* @default 2
*/
backoffCoefficient: S.optional(
pipe(S.number, S.greaterThanOrEqualTo(1))
).withDefault(() => 2),
pipe(S.number, S.greaterThanOrEqualTo(1)),
{ default: () => 2 }
),

/**
* Interval of the first retry.
Expand Down
24 changes: 12 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1925,13 +1925,13 @@ __metadata:
languageName: unknown
linkType: soft

"@effect/schema@npm:0.43.0":
version: 0.43.0
resolution: "@effect/schema@npm:0.43.0"
"@effect/schema@npm:0.55.0":
version: 0.55.0
resolution: "@effect/schema@npm:0.55.0"
peerDependencies:
effect: 2.0.0-next.48
fast-check: ^3.13.1
checksum: e9302a6f5ad62edf5663f8eb8f90262d433caad7dbdd7dfe604f307ba0d8a07be5148177ac6b19de276ab0a0064b91fe1d1feceaba262c70439cf2d6bc7860c5
effect: 2.0.0-next.61
fast-check: ^3.13.2
checksum: 5be99393ce485a48244a4cb8b71729d0d9182aebfd3a1f619dad53cd4ca1a3e73a32c15930b113c675c0ff0db50a3ff222d23672f4e4d1d775bd26b4ebfff496
languageName: node
linkType: hard

Expand Down Expand Up @@ -4354,12 +4354,12 @@ __metadata:
resolution: "effect-use@workspace:."
dependencies:
"@changesets/cli": 2.26.1
"@effect/schema": 0.43.0
"@effect/schema": 0.55.0
"@temporalio/testing": 1.8.6
"@temporalio/worker": 1.8.6
"@types/jest": ^29.5.1
"@types/node": 18
effect: 2.0.0-next.48
effect: 2.0.0-next.61
jest: 29.5.0
prettier: 2.8.8
rimraf: ^5.0.1
Expand All @@ -4370,10 +4370,10 @@ __metadata:
languageName: unknown
linkType: soft

"effect@npm:2.0.0-next.48":
version: 2.0.0-next.48
resolution: "effect@npm:2.0.0-next.48"
checksum: 48de5da550a8f49e580646cb12ba5f52b64695384bb32a347d9b04d94d1c597f55a6967107555377199fc0559f257b4de69bf3ad0fbacb08812cc679f1aad628
"effect@npm:2.0.0-next.61":
version: 2.0.0-next.61
resolution: "effect@npm:2.0.0-next.61"
checksum: cc2c245376c613b7e246a4777be5c731e3ccd857be1e60548927b67f4b71c756cf59ec1de170c2cf301f0f8561dbbaba3c0fda465a38c6720efb780cbbca134c
languageName: node
linkType: hard

Expand Down

0 comments on commit 79f9568

Please sign in to comment.