Skip to content

Commit

Permalink
deps: updated utils library
Browse files Browse the repository at this point in the history
Since I dropped the mixins composable there, all mixins have been moved back into the parser class.
  • Loading branch information
AlansCodeLog committed May 29, 2024
1 parent 95e704d commit d39068f
Show file tree
Hide file tree
Showing 24 changed files with 1,124 additions and 1,282 deletions.
2 changes: 1 addition & 1 deletion demo/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import "./style.css"

import { crop } from "@alanscodelog/utils/crop"
import { crop } from "@alanscodelog/utils/crop.js"
import { Parser } from "@witchcraft/expressit"
import { parseParserOptions } from "@witchcraft/expressit/helpers/parser/index.js"
import { prettyAst } from "@witchcraft/expressit/utils"
Expand Down
1 change: 0 additions & 1 deletion docs-src/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ src
┃ ┣ general - ...various internal helper functions not related to parsing + default functions for the default parser options
┃ ┣ parser - ...various internal helper functions used before/during parsing
┃ ┗ errors.ts - the main error handling class (error types are defined in types/errors)
┣ methods - all the main methods of the main parser class
┣ types - all the types and enums are stored here in their respective categories
┣ utils - exported utility functions
┣ global.d.ts - additional global types
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"prepare": "husky && npm run build"
},
"dependencies": {
"@alanscodelog/utils": "4.0.0-beta.15"
"@alanscodelog/utils": "4.0.0-beta.17"
},
"devDependencies": {
"@alanscodelog/commitlint-config": "^3.0.1",
Expand Down
4 changes: 2 additions & 2 deletions src/Lexer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isBlank } from "@alanscodelog/utils/isBlank"
import { pushIfNotIn } from "@alanscodelog/utils/pushIfNotIn"
import { isBlank } from "@alanscodelog/utils/isBlank.js"
import { pushIfNotIn } from "@alanscodelog/utils/pushIfNotIn.js"

import { checkParserOpts } from "./helpers/parser/checkParserOpts.js"
import { parseParserOptions } from "./helpers/parser/parseParserOptions.js"
Expand Down
1,162 changes: 1,102 additions & 60 deletions src/Parser.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/ast/builders/token.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isArray } from "@alanscodelog/utils/isArray"
import { isArray } from "@alanscodelog/utils/isArray.js"

import { pos } from "./pos.js"

Expand Down
6 changes: 3 additions & 3 deletions src/helpers/errors.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { crop } from "@alanscodelog/utils/crop"
import { indent } from "@alanscodelog/utils/indent"
import { pretty } from "@alanscodelog/utils/pretty"
import { crop } from "@alanscodelog/utils/crop.js"
import { indent } from "@alanscodelog/utils/indent.js"
import { pretty } from "@alanscodelog/utils/pretty.js"
import type { Keys } from "@alanscodelog/utils/types"

// @ts-expect-error todo
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/parser/checkParserOpts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isBlank } from "@alanscodelog/utils/isBlank"
import { pushIfNotIn } from "@alanscodelog/utils/pushIfNotIn"
import { isBlank } from "@alanscodelog/utils/isBlank.js"
import { pushIfNotIn } from "@alanscodelog/utils/pushIfNotIn.js"

import { ERROR_CODES } from "../../types/errors.js"
import type { FullParserOptions, ParserOptions } from "../../types/parser.js"
Expand Down
128 changes: 0 additions & 128 deletions src/methods/autocomplete.ts

This file was deleted.

46 changes: 0 additions & 46 deletions src/methods/autoreplace.ts

This file was deleted.

Loading

0 comments on commit d39068f

Please sign in to comment.