Skip to content
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
5 changes: 5 additions & 0 deletions .changeset/migrate-effect-v4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/language-service": minor
---

Migrate internal Effect dependency from v3 to v4. This updates all CLI and core modules to use the Effect v4 API while maintaining full backward compatibility with existing functionality.
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This workflow should be initiated only if asked by the user.
The following steps can be skipped if no typescript file has been changed in this branch, do not attempt any file change without user consent.
- run "pnpm lint-fix" to fix code formatting
- run "pnpm check" to see if you should fix some type errors
- run "pnpm test" to validate that changes did not broke anything.
- run "pnpm test" and "pnpm test:v4" to validate that changes did not broke anything.

### 3. Documentation checks
- if new diagnostics, completions or refactor are added, ensure they are already mentioned in the README.md. Ensure to read examples and test/__snapshots__ related to the change to ensure full understanding of whats changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[x] 1. Cache
[ ] 2. DbConnection
[ ] 3. FileSystem
[x] 4. UserRepository


export const AppLive = UserRepository.Default.pipe(
Layer.provide(DbConnection.Default),
Layer.provideMerge(Cache.Default),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[x] 1. Cache
[ ] 2. FileSystem


export const CacheLive = Cache.Default.pipe(
Layer.provide(FileSystem.Default)
)
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[x] 1. Analytics
[x] 2. AppService
[x] 3. Database
[x] 4. EventService
[x] 5. EventsRepository
[x] 6. UserRepository
[x] 7. UserService


export const AppLive = AppService.Default.pipe(
Layer.provideMerge(EventService.Default),
Layer.provideMerge(UserService.Default),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[ ] 1. DatabaseContext
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[ ] 1. DbConnection
[x] 2. UserRepository


export const followSymbols = simplePipeIn.pipe(
Layer.provide(DbConnection.Default)
)
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[ ] 1. Cache
[x] 2. DbConnection
[x] 3. UserRepository


export const moreComplex = UserRepository.Default.pipe(
Layer.provideMerge(DbConnection.Default),
Layer.provide(cacheWithFs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[x] 1. IsGeneric<UserRepository>
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[ ] 1. string
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[x] 1. Analytics
[x] 2. AppService
[x] 3. Database
[x] 4. EventService
[x] 5. EventsRepository
[x] 6. UserRepository
[x] 7. UserService


export const AppLive = AppService.Default.pipe(
Layer.provideMerge(EventService.Default),
Layer.provideMerge(UserService.Default),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[x] 1. Cache
[ ] 2. FileSystem


export const cacheWithFs = Cache.Default.pipe(
Layer.provide(FileSystem.Default)
)
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[x] 1. UserRepository
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[x] 1. Cache
[x] 2. DbConnection
[x] 3. UserRepository


export const liveWithPipeable = UserRepository.Default.pipe(
Layer.provideMerge(Cache.Default),
Layer.provideMerge(DbConnection.Default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[ ] 1. Cache
[x] 2. UserRepository


export const simplePipeIn = UserRepository.Default.pipe(
Layer.provide(Cache.Default)
)
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[x] 1. IsGeneric<"With<Special>Chars#!">
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[x] 1. Cache
[ ] 2. DbConnection
[ ] 3. FileSystem
[x] 4. UserRepository


export const AppLive = UserRepository.Default.pipe(
Layer.provide(DbConnection.Default),
Layer.provideMerge(Cache.Default),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[x] 1. Cache
[ ] 2. FileSystem


export const CacheLive = Cache.Default.pipe(
Layer.provide(FileSystem.Default)
)
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[x] 1. Analytics
[x] 2. AppService
[x] 3. Database
[x] 4. EventService
[x] 5. EventsRepository
[x] 6. UserRepository
[x] 7. UserService


export const AppLive = AppService.Default.pipe(
Layer.provideMerge(EventService.Default),
Layer.provideMerge(UserService.Default),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[ ] 1. DatabaseContext
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[ ] 1. DbConnection
[x] 2. UserRepository


export const followSymbols = simplePipeIn.pipe(
Layer.provide(DbConnection.Default)
)
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[ ] 1. Cache
[x] 2. DbConnection
[x] 3. UserRepository


export const moreComplex = UserRepository.Default.pipe(
Layer.provideMerge(DbConnection.Default),
Layer.provide(cacheWithFs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[x] 1. Analytics
[x] 2. AppService
[x] 3. Database
[x] 4. EventService
[x] 5. EventsRepository
[x] 6. UserRepository
[x] 7. UserService


export const AppLive = AppService.Default.pipe(
Layer.provideMerge(EventService.Default),
Layer.provideMerge(UserService.Default),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[x] 1. Cache
[ ] 2. FileSystem


export const cacheWithFs = Cache.Default.pipe(
Layer.provide(FileSystem.Default)
)
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[x] 1. UserRepository
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[x] 1. Cache
[x] 2. DbConnection
[x] 3. UserRepository


export const liveWithPipeable = UserRepository.Default.pipe(
Layer.provideMerge(Cache.Default),
Layer.provideMerge(DbConnection.Default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[ ] 1. Cache
[x] 2. UserRepository


export const simplePipeIn = UserRepository.Default.pipe(
Layer.provide(Cache.Default)
)
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
Not sure you got your composition right? Just write all layers inside a Layer.mergeAll(...)
then run this command again and use --outputs to select which outputs to include in composition.
Example: --outputs 1,2,3


[x] 1. IsGeneric<"With<Special>Chars#!">
10 changes: 2 additions & 8 deletions packages/language-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,9 @@
"devDependencies": {
"pako": "^2.1.0",
"@typescript-eslint/project-service": "^8.52.0",
"@effect/cli": "^0.73.0",
"@effect/experimental": "^0.58.0",
"@effect/platform": "0.94.1",
"@effect/platform-node": "0.104.0",
"@effect/printer-ansi": "^0.47.0",
"@effect/rpc": "^0.73.0",
"@effect/sql": "^0.49.0",
"@effect/platform-node": "^4.0.0-beta.12",
"@types/pako": "^2.0.4",
"effect": "^3.19.14",
"effect": "^4.0.0-beta.12",
"ts-patch": "^3.3.0"
}
}
Loading
Loading