Skip to content

Commit 166cbad

Browse files
Draft smol (#632)
1 parent 689a012 commit 166cbad

File tree

1,205 files changed

+15988
-22027
lines changed

Some content is hidden

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

1,205 files changed

+15988
-22027
lines changed

.github/workflows/test-v4.yml

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

.github/workflows/test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ permissions: {}
1515

1616
jobs:
1717
test:
18-
name: Test
18+
name: Test ${{ matrix.harness }}
1919
runs-on: ubuntu-latest
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
harness: [v3, v4]
2024
steps:
2125
- uses: actions/checkout@v3
2226
- name: Install dependencies
2327
uses: ./.github/actions/setup
24-
- run: pnpm test
28+
- run: pnpm test:${{ matrix.harness }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ Dockerfile
1212
.env
1313
.pnpm-store/
1414
specs/
15+
.context/

SMOL_TODOS.md

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# Effect-Smol (v4) Compatibility Tracker
2+
3+
This file tracks all language service features and their compatibility status with effect-smol (Effect v4).
4+
5+
**Legend:**
6+
- [ ] Not tested / Unknown status
7+
- [x] Compatible with effect-smol
8+
- [~] Partially compatible / Needs work
9+
- [-] Not applicable to effect-smol
10+
- [N] v4 only
11+
12+
---
13+
14+
## Diagnostics (47 total)
15+
16+
- [-] effectGenUsesAdapter
17+
- [-] unsupportedServiceAccessors
18+
- [-] schemaUnionOfLiterals
19+
- [-] genericEffectServices
20+
- [-] scopeInLayerEffect
21+
- [-] missingEffectServiceDependency
22+
- [X] floatingEffect
23+
- [X] missingEffectContext
24+
- [X] missingEffectError
25+
- [X] unnecessaryPipe
26+
- [X] unnecessaryPipeChain
27+
- [X] returnEffectInGen
28+
- [X] unnecessaryEffectGen
29+
- [X] duplicatePackage
30+
- [X] globalErrorInEffectFailure
31+
- [X] effectInVoidSuccess
32+
- [X] effectSucceedWithVoid
33+
- [X] effectMapVoid
34+
- [X] tryCatchInEffectGen
35+
- [X] instanceOfSchema
36+
- [X] anyUnknownInErrorContext
37+
- [X] missingStarInYieldEffectGen
38+
- [X] missingReturnYieldStar
39+
- [X] strictBooleanExpressions
40+
- [X] globalErrorInEffectCatch
41+
- [X] preferSchemaOverJson
42+
- [X] catchAllToMapError
43+
- [X] unnecessaryFailYieldableError
44+
- [X] catchUnfailableEffect
45+
- [X] effectFnIife
46+
- [X] schemaStructWithTag
47+
- [X] importFromBarrel
48+
- [X] overriddenSchemaConstructor
49+
- [X] classSelfMismatch
50+
- [X] unknownInEffectCatch
51+
- [X] layerMergeAllWithDependencies
52+
- [-] redundantSchemaTagIdentifier
53+
- [X] effectFnOpportunity
54+
- [ ] leakingRequirements
55+
- [ ] multipleEffectProvide
56+
- [ ] outdatedEffectCodegen
57+
- [ ] nonObjectEffectServiceType
58+
- [ ] deterministicKeys
59+
- [X] missedPipeableOpportunity
60+
- [ ] strictEffectProvide
61+
- [ ] runEffectInsideEffect
62+
- [ ] missingLayerContext
63+
- [ ] schemaSyncInEffect
64+
65+
---
66+
67+
## Completions (13 total)
68+
69+
- [ ] contextSelfInClasses
70+
- [ ] durationInput
71+
- [ ] effectCodegensComment
72+
- [ ] effectDataClasses
73+
- [X] effectDiagnosticsComment
74+
- [X] effectJsdocComment
75+
- [ ] effectSchemaSelfInClasses
76+
- [ ] effectSelfInClasses
77+
- [ ] effectSqlModelSelfInClasses
78+
- [X] fnFunctionStar
79+
- [X] genFunctionStar
80+
- [ ] rpcMakeClasses
81+
- [ ] schemaBrand
82+
83+
---
84+
85+
## Refactors (21 total)
86+
87+
- [X] asyncAwaitToFn
88+
- [ ] asyncAwaitToFnTryPromise
89+
- [X] asyncAwaitToGen
90+
- [ ] asyncAwaitToGenTryPromise
91+
- [X] effectGenToFn
92+
- [X] functionToArrow
93+
- [ ] layerMagic
94+
- [ ] makeSchemaOpaque
95+
- [ ] makeSchemaOpaqueWithNs
96+
- [X] pipeableToDatafirst
97+
- [X] removeUnnecessaryEffectGen
98+
- [ ] structuralTypeToSchema
99+
- [X] toggleLazyConst
100+
- [X] togglePipeStyle
101+
- [X] toggleReturnTypeAnnotation
102+
- [X] toggleTypeAnnotation
103+
- [ ] typeToEffectSchema
104+
- [ ] typeToEffectSchemaClass
105+
- [X] wrapWithEffectGen
106+
- [X] wrapWithPipe
107+
- [ ] writeTagClassAccessors

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"check": "pnpm -r check",
1717
"circular": "pnpm --filter @effect/language-service circular",
1818
"clean": "pnpm -r clean",
19+
"perf": "pnpm -r perf",
1920
"pr-ai": "claude 'perform the actions described in CLAUDE.md under the section push PR to github workflow'"
2021
},
2122
"devDependencies": {

packages/harness-effect-v3/__snapshots__/diagnostics/anyUnknownInErrorContext.ts.anyUnknownInErrorContext_skipFile.from1020to1032.output

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

packages/harness-effect-v3/__snapshots__/diagnostics/anyUnknownInErrorContext.ts.anyUnknownInErrorContext_skipFile.from1055to1067.output

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

packages/harness-effect-v3/__snapshots__/diagnostics/anyUnknownInErrorContext.ts.anyUnknownInErrorContext_skipFile.from1082to1102.output

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

packages/harness-effect-v3/__snapshots__/diagnostics/anyUnknownInErrorContext.ts.anyUnknownInErrorContext_skipFile.from109to127.output

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

packages/harness-effect-v3/__snapshots__/diagnostics/anyUnknownInErrorContext.ts.anyUnknownInErrorContext_skipFile.from1136to1148.output

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

0 commit comments

Comments
 (0)