-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release new version for updated dependencies? #70
Comments
This dependency is missing in the kaitai-struct-loaders dependencies. kaitai-io/kaitai_struct_loader#70
You're right, the kaitai_struct_loader/package.json Lines 23 to 27 in ce34822
but uses it: Line 2 in ce34822
Which is obviously an error. However, if I'm supposed to release a new version, I should really fix a few things - first, there is a growing queue of Dependabot pull requests that I should merge so that any known vulnerabilities get fixed in the dependencies. The only reason why I have been leaving them unmerged is that I got an impression from this issue kaitai-io/kaitai_struct#729 that it's desirable for our users that we maintain compatibility with the lowest possible version of Node.js that is installed on some LTS Linux distribution (I don't like and understand it much, I'd rather support only Node.js versions that aren't EOL, which would mean Node.js 12 and 14 at the moment - that would make life so much easier. But I'm no expert on Node.js, I don't use it in any serious application, so I don't dare to make such bold decisions like that on my own.). That's why I was shooting for Node.js {4,8,10,12,14} at first, but then found that Node.js 4 doesn't work with Also, I don't know if I need to use a united old dependency version compatible with Node.js 6 for all Node.js versions (even for Node.js 14, which could run something much newer) or whether there is some way to declare different dependency versions for different Node.js versions (but I don't know if e.g. Webpack 5 won't use a different syntax that will make it incompatible with current codebase). Do you see that "lowest possible version" madness? The second thing that I wanted to fix are relative imports. I thought that the PR #5 added them, but I found that it has never actually worked as soon as I introduced the unit testing in the commit 684faf4. I tried to fix it, but I essentially got stuck because I'm not that proficient in writing Webpack plugins. IIRC, the problem is that the Kaitai Struct compiler is handling the imports itself, which Webpack does not expect - when KSC sees a |
Regarding the issue with the automatic CamelCasing of requires by the KSY compiler, it looks like if you stick to CamelCasing the actual KSY files, the requires will match the filenames and webpack will figure out things (you ofcourse also need to CamelCase the import statement inside the ksy, though the type you import will be based on the meta-id field from the KSY file, so it will have the "proper" ksy lowercase naming) This is really a gross hack, and IMHO the compiler should simply not CamelCase the requires, or at least offer an option to not do that. |
loader-utils
are required afaict, but are not included in the current npm versionsdependencies
list.The text was updated successfully, but these errors were encountered: