Skip to content

Commit 0674371

Browse files
Update Effect v4 beta dependencies (#732)
1 parent 071c0b4 commit 0674371

47 files changed

Lines changed: 155 additions & 362 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/effect-v4-beta-66.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@effect/language-service": patch
3+
---
4+
5+
Update the Effect v4 test harness and language service development dependencies to Effect 4.0.0 beta 66, including fixture updates for the latest Context service API.
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
layerMergeAllWithDependencies_fix from 1088 to 1106
2-
layerMergeAllWithDependencies_skipNextLine from 1088 to 1106
3-
layerMergeAllWithDependencies_skipFile from 1088 to 1106
4-
layerMergeAllWithDependencies_fix from 1231 to 1249
5-
layerMergeAllWithDependencies_skipNextLine from 1231 to 1249
6-
layerMergeAllWithDependencies_skipFile from 1231 to 1249
7-
layerMergeAllWithDependencies_fix from 1207 to 1227
8-
layerMergeAllWithDependencies_skipNextLine from 1207 to 1227
9-
layerMergeAllWithDependencies_skipFile from 1207 to 1227
10-
layerMergeAllWithDependencies_fix from 1253 to 1266
11-
layerMergeAllWithDependencies_skipNextLine from 1253 to 1266
12-
layerMergeAllWithDependencies_skipFile from 1253 to 1266
1+
layerMergeAllWithDependencies_fix from 1044 to 1062
2+
layerMergeAllWithDependencies_skipNextLine from 1044 to 1062
3+
layerMergeAllWithDependencies_skipFile from 1044 to 1062
4+
layerMergeAllWithDependencies_fix from 1187 to 1205
5+
layerMergeAllWithDependencies_skipNextLine from 1187 to 1205
6+
layerMergeAllWithDependencies_skipFile from 1187 to 1205
7+
layerMergeAllWithDependencies_fix from 1163 to 1183
8+
layerMergeAllWithDependencies_skipNextLine from 1163 to 1183
9+
layerMergeAllWithDependencies_skipFile from 1163 to 1183
10+
layerMergeAllWithDependencies_fix from 1209 to 1222
11+
layerMergeAllWithDependencies_skipNextLine from 1209 to 1222
12+
layerMergeAllWithDependencies_skipFile from 1209 to 1222

packages/harness-effect-v4/__snapshots__/diagnostics/layerMergeAllWithDependencies.ts.layerMergeAllWithDependencies_fix.from1088to1106.output renamed to packages/harness-effect-v4/__snapshots__/diagnostics/layerMergeAllWithDependencies.ts.layerMergeAllWithDependencies_fix.from1044to1062.output

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// code fix layerMergeAllWithDependencies_fix output for range 1088 - 1106
1+
// code fix layerMergeAllWithDependencies_fix output for range 1044 - 1062
22
import { Effect, Layer, Context } from "effect"
33

44
export class DbConnection extends Context.Service<DbConnection>()("DbConnection", {
@@ -12,17 +12,17 @@ export class FileSystem extends Context.Service<FileSystem>()("FileSystem", {
1212
static Default = Layer.effect(this, this.make)
1313
}
1414
export class Cache extends Context.Service<Cache>()("Cache", {
15-
make: Effect.as(FileSystem.asEffect(), {})
15+
make: Effect.as(FileSystem, {})
1616
}) {
1717
static Default = Layer.effect(this, this.make)
1818
}
1919
export class UserRepository extends Context.Service<UserRepository>()("UserRepository", {
20-
make: Effect.as(Effect.andThen(DbConnection.asEffect(), Cache.asEffect()), {})
20+
make: Effect.as(Effect.andThen(DbConnection, Cache), {})
2121
}) {
2222
static Default = Layer.effect(this, this.make)
2323
}
2424

25-
const cachePassthrough = Layer.effect(Cache, Cache.asEffect())
25+
const cachePassthrough = Layer.effect(Cache, Cache)
2626

2727
export const shouldNotWarn = Layer.mergeAll(
2828
DbConnection.Default,

packages/harness-effect-v4/__snapshots__/diagnostics/layerMergeAllWithDependencies.ts.layerMergeAllWithDependencies_fix.from1103to1121.output

Lines changed: 0 additions & 47 deletions
This file was deleted.

packages/harness-effect-v4/__snapshots__/diagnostics/layerMergeAllWithDependencies.ts.layerMergeAllWithDependencies_fix.from1207to1227.output renamed to packages/harness-effect-v4/__snapshots__/diagnostics/layerMergeAllWithDependencies.ts.layerMergeAllWithDependencies_fix.from1163to1183.output

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// code fix layerMergeAllWithDependencies_fix output for range 1207 - 1227
1+
// code fix layerMergeAllWithDependencies_fix output for range 1163 - 1183
22
import { Effect, Layer, Context } from "effect"
33

44
export class DbConnection extends Context.Service<DbConnection>()("DbConnection", {
@@ -12,17 +12,17 @@ export class FileSystem extends Context.Service<FileSystem>()("FileSystem", {
1212
static Default = Layer.effect(this, this.make)
1313
}
1414
export class Cache extends Context.Service<Cache>()("Cache", {
15-
make: Effect.as(FileSystem.asEffect(), {})
15+
make: Effect.as(FileSystem, {})
1616
}) {
1717
static Default = Layer.effect(this, this.make)
1818
}
1919
export class UserRepository extends Context.Service<UserRepository>()("UserRepository", {
20-
make: Effect.as(Effect.andThen(DbConnection.asEffect(), Cache.asEffect()), {})
20+
make: Effect.as(Effect.andThen(DbConnection, Cache), {})
2121
}) {
2222
static Default = Layer.effect(this, this.make)
2323
}
2424

25-
const cachePassthrough = Layer.effect(Cache, Cache.asEffect())
25+
const cachePassthrough = Layer.effect(Cache, Cache)
2626

2727
export const shouldNotWarn = Layer.mergeAll(
2828
DbConnection.Default,

packages/harness-effect-v4/__snapshots__/diagnostics/layerMergeAllWithDependencies.ts.layerMergeAllWithDependencies_fix.from1231to1249.output renamed to packages/harness-effect-v4/__snapshots__/diagnostics/layerMergeAllWithDependencies.ts.layerMergeAllWithDependencies_fix.from1187to1205.output

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// code fix layerMergeAllWithDependencies_fix output for range 1231 - 1249
1+
// code fix layerMergeAllWithDependencies_fix output for range 1187 - 1205
22
import { Effect, Layer, Context } from "effect"
33

44
export class DbConnection extends Context.Service<DbConnection>()("DbConnection", {
@@ -12,17 +12,17 @@ export class FileSystem extends Context.Service<FileSystem>()("FileSystem", {
1212
static Default = Layer.effect(this, this.make)
1313
}
1414
export class Cache extends Context.Service<Cache>()("Cache", {
15-
make: Effect.as(FileSystem.asEffect(), {})
15+
make: Effect.as(FileSystem, {})
1616
}) {
1717
static Default = Layer.effect(this, this.make)
1818
}
1919
export class UserRepository extends Context.Service<UserRepository>()("UserRepository", {
20-
make: Effect.as(Effect.andThen(DbConnection.asEffect(), Cache.asEffect()), {})
20+
make: Effect.as(Effect.andThen(DbConnection, Cache), {})
2121
}) {
2222
static Default = Layer.effect(this, this.make)
2323
}
2424

25-
const cachePassthrough = Layer.effect(Cache, Cache.asEffect())
25+
const cachePassthrough = Layer.effect(Cache, Cache)
2626

2727
export const shouldNotWarn = Layer.mergeAll(
2828
DbConnection.Default,

packages/harness-effect-v4/__snapshots__/diagnostics/layerMergeAllWithDependencies.ts.layerMergeAllWithDependencies_fix.from1253to1266.output renamed to packages/harness-effect-v4/__snapshots__/diagnostics/layerMergeAllWithDependencies.ts.layerMergeAllWithDependencies_fix.from1209to1222.output

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// code fix layerMergeAllWithDependencies_fix output for range 1253 - 1266
1+
// code fix layerMergeAllWithDependencies_fix output for range 1209 - 1222
22
import { Effect, Layer, Context } from "effect"
33

44
export class DbConnection extends Context.Service<DbConnection>()("DbConnection", {
@@ -12,17 +12,17 @@ export class FileSystem extends Context.Service<FileSystem>()("FileSystem", {
1212
static Default = Layer.effect(this, this.make)
1313
}
1414
export class Cache extends Context.Service<Cache>()("Cache", {
15-
make: Effect.as(FileSystem.asEffect(), {})
15+
make: Effect.as(FileSystem, {})
1616
}) {
1717
static Default = Layer.effect(this, this.make)
1818
}
1919
export class UserRepository extends Context.Service<UserRepository>()("UserRepository", {
20-
make: Effect.as(Effect.andThen(DbConnection.asEffect(), Cache.asEffect()), {})
20+
make: Effect.as(Effect.andThen(DbConnection, Cache), {})
2121
}) {
2222
static Default = Layer.effect(this, this.make)
2323
}
2424

25-
const cachePassthrough = Layer.effect(Cache, Cache.asEffect())
25+
const cachePassthrough = Layer.effect(Cache, Cache)
2626

2727
export const shouldNotWarn = Layer.mergeAll(
2828
DbConnection.Default,

packages/harness-effect-v4/__snapshots__/diagnostics/layerMergeAllWithDependencies.ts.layerMergeAllWithDependencies_fix.from1222to1242.output

Lines changed: 0 additions & 47 deletions
This file was deleted.

packages/harness-effect-v4/__snapshots__/diagnostics/layerMergeAllWithDependencies.ts.layerMergeAllWithDependencies_fix.from1246to1264.output

Lines changed: 0 additions & 47 deletions
This file was deleted.

packages/harness-effect-v4/__snapshots__/diagnostics/layerMergeAllWithDependencies.ts.layerMergeAllWithDependencies_fix.from1268to1281.output

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)