-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A number of changes for backwards compatibility in the API and for usability in other situations - add a UMD export - (backwards incompatible) move `get` and `lookup` in solutions to return numbers for integers, and add `getBig` and `lookupBig` which return bigint. - (backwards incompatible) turn `solutions` back into a getter with a deprecation warning, and make `solve()` mimic the behavior of the old solutions getter and the current `[Symbol.iterator]` method. - add `all()` to the solution iterator, which returns all remaining solutions as an array
- Loading branch information
1 parent
34eb74b
commit 4987fce
Showing
9 changed files
with
209 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ dist-ssr | |
*.local | ||
coverage | ||
lib/ | ||
dusa.umd.js | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { | ||
compareTerm, | ||
compareTerms, | ||
Dusa as DusaClient, | ||
DusaError, | ||
DusaRuntimeError, | ||
termToString, | ||
} from './client.js'; | ||
|
||
export default class Dusa extends DusaClient { | ||
static termToString = termToString; | ||
static compareTerm = compareTerm; | ||
static compareTerms = compareTerms; | ||
static DusaError = DusaError; | ||
static DusaRuntimeError = DusaRuntimeError; | ||
} |
Oops, something went wrong.