Skip to content

0.0.1

Compare
Choose a tag to compare
@SafalPandey SafalPandey released this 25 Apr 10:11
· 59 commits to master since this release
95b17df

Changelog

99dd9db 0.0.1
fcb914e Add .gitignore
b3499ca Add .goreleaser.yml
5b6233b Add README.md
6784952 Add a util function for string slices and support index imports
5672841 Add core globals
058fcaf Add core parse import functions
14fce65 Add doc comments and fix formatting
1b6fa20 Add doc comments for GetSplitterFunc
63a522f Add flag to set language from cli and compute constants
62de45e Add getFilePath doc comment
79c9439 Add imports.json to gitignore
f09ba52 Add main.go file
430fb98 Add maps for language <-> constants
2a4a63b Add multi language support to core functions
53845dc Add new flag entryPoint to support other languages local imports
07b63d4 Add python extension constants
301df09 Add tests for maps util
908613f Add tests for slice utils
2997197 Add types for ImportInfo and MapNode
057e424 Add utils for parse import
09ad270 Add utils to get splitter funcion for bufio scanner
f661493 Change flag 'entryPoint' -> 'entry-point'
034ff2a Change logging order
2802089 Change output format for local imports and use support new ImportInfo type
833d867 Cleanup getImports util
3112455 Combile regular expression slices to create import pattern
9a87359 Create FindNamedMatches util to generate a map based on named submatches
cb5b230 Create SetLocalDirs for to set globals based on entrypoint
b55726c Create a map to find and update Localdirs and BaseDirAbsPathMap global variables
3c2f9c2 Create a type for ImportedIn
3d33111 Create function to combine regexp
06af9a6 Create go.yml
a116bcd Create util FindAllNamedMatches to get a slice of maps of submatches
da13566 Filter out matches if they match comments pattern
5ef241a Find package path based on baseDir using BaseDirAbsPathMap
852f858 Fix formatting
55d60d7 Fix import regexes
cf172b1 Fix local imports being treated as non local for python
7d58dd2 Improve error logs and add .js and .json support
9313084 Improve logs
f46a25a Improve python import regex
22fd688 Improve regular expression and remove need for comment pattern check 🎉
3240897 Initial commit
ba48f47 Make FindLocalDirs configurable using language and upgrade BaseDirAbsPath to a map
a1b34b3 Make changes StartsWithAnyOf util to return matched element along with boolean
c53a7a8 Merge pull request #1 from SafalPandey/channels
9373437 Merge pull request #2 from SafalPandey/multiple-importer-details
79ed94a Merge pull request #3 from SafalPandey/multi-line-imports
48714db Merge pull request #4 from SafalPandey/multi-language-support
a405253 Merge pull request #5 from SafalPandey/add-tests
95b17df Merge pull request #6 from SafalPandey/refactor-getImports
a001bda Modify and rename getExt -> getFilePath
51c8992 Move GetExt to core
cdb78db Output imports json to a file
343fb18 Prioritize index files for directory imports in GetExt
3b6177b Refactor getExt to include interation logic
43713b2 Refactor getImports
39301bb Refactor tsconfig handler and add entry for python to FindLocalDirsMap
d34e76f Remove Line from ImportedIn type
1bfef15 Remove double loop to update parsedMap
f116eb4 Remove print
be85755 Remove redundacies
7906e26 Remove redundant type info from maps
c28aa8f Remove return type from ParseImport
9799798 Remove unnecessary newlines
b66644f Rename Filter -> FilterString
e00cd24 Rename core/constants.go -> core/maps.go
25da167 Rename filePath -> importedFilePath
046dc61 Resolve issue with cyclic imports and use channels to update importmap in single goroutine
eaca809 Show import info for non local imports as well
327eadd Show sample output in README file
b0b3131 Show usage on -h flag encounter
d43dd2f Split import patterns into a slice instead of single string
01d9cff Store importers info in order of file resolution
36b44f3 Support asynchronize() imports for ts
9413c7c Support basedir imports using tsconfig
8c50084 Support custom output file using -o flag
d9b2351 Support suffixed or equality checks in StartsWithAnyOf util
3abcfd8 Trim double quoted imports
8efb735 Update BuildNestedMap util to support multiple importer in output json
2c6ed3a Update CI to run tests
b99297f Update ImportInfo type to support multiple importers
e003bd6 Update README
9650698 Update README.md
d106a21 Update README.md
6c1364c Update README.md
53a773b Update README.md
6c19825 Update README.md
316e948 Update go version in github actions
4bbf3c8 Update import pattern regex and add regex to filter comments
c6223c4 Update import regex for ts
62a08ce Update import regex for ts to support 'require' imports
5f90b4c Update outputs in README
2ab9026 Use flags to get command line arguements for tsconfig and file paths
14abdbf Use language constant maps to compute global constants
88d5e72 Use new ImportInfo type in getImports function
8984b73 Use splitter function to split on semicolons
13d8643 Use the new getFilePath func instead of getExt