๐บ @fizzwiz/prism v0.0.0-dev.3 — Tiny Adjustment
๐บ @fizzwiz/prism v0.0.0-dev.3 — Tiny Adjustment
This release removes the dependency on @fizzwiz/sorted to prevent circular dependencies, as the upcoming version of @fizzwiz/sorted will, in turn, rely on @fizzwiz/prism. The change keeps the library modular, lightweight, and cleanly separated from other packages.
๐งฉ What’s Changed
The Search and AsyncSearch constructors no longer create an ArrayQueue by default. You must now explicitly provide a queue instance using the fluent .via() method:
import { ArrayQueue } from "@fizzwiz/sorted";
import { Search } from "@fizzwiz/prism";
const queue = new ArrayQueue();
const search = new Search()
.from(start)
.through(space)
.via(queue);
This adjustment gives you clearer control over search strategies while ensuring Prism remains almost dependency-free (it still depends on @fizzwiz/fluent) and easy to integrate in any environment.
๐ฆ Get It
๐ฆ Available on npm: @fizzwiz/prism
— @fizzwiz ✨
Comments
Post a Comment