Skip to content

Commit 547c909

Browse files
committed
implement nws preprocessing and chunking algorithm
1 parent a0ff523 commit 547c909

File tree

8 files changed

+909
-151
lines changed

8 files changed

+909
-151
lines changed

src/chunk.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -133,28 +133,3 @@ export async function chunk(
133133
): Promise<Chunk[]> {
134134
return Effect.runPromise(chunkEffect(filepath, code, options))
135135
}
136-
137-
/**
138-
* Chunk source code synchronously (blocking)
139-
*
140-
* **WARNING: Not yet implemented.** This function will throw an error.
141-
* The chunking pipeline requires async WASM loading which cannot run synchronously.
142-
* Use the async `chunk()` function instead.
143-
*
144-
* @param _filepath - The file path (unused)
145-
* @param _code - The source code (unused)
146-
* @param _options - Optional chunking configuration (unused)
147-
* @throws Error Always throws - sync chunking is not supported
148-
*
149-
* @deprecated Use `chunk()` instead. This will be implemented in a future version
150-
* if there's demand for sync operation with pre-initialized parsers.
151-
*/
152-
export function chunkSync(
153-
_filepath: string,
154-
_code: string,
155-
_options?: ChunkOptions,
156-
): Chunk[] {
157-
throw new Error(
158-
'chunkSync is not supported. The chunking pipeline requires async WASM loading. Use chunk() instead.',
159-
)
160-
}

0 commit comments

Comments
 (0)