-
-
Notifications
You must be signed in to change notification settings - Fork 776
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
Three improvements for the price of one #291
Conversation
Partial: Requires next commit for a proper version!
This should resolve #261 as long as the system of the test is being used. That being said, this system allows for a fully typed configuration with IDE support TypeScript usage is further described in the documentation, so please accept that PR if this one is accepted.
Hi @favna, thanks for taking this on. This is wonderful! Currently looking over the changes now. |
I admittedly did not expect (many) users to use the lib for an IE11 production environment. You are totally correct that it is due to the arrow function. Sadly that cannot be polyfilled either. I'll look into this since it'll require modifying Terser options and create a new PR to cover it once I figure it out. Cannot make any ETA promise however. Probably somewhere this weekend. |
We have a legacy app that still has 15% of users running IE11 (it's a total pain!!!). I just forcefully changed my dependency back to 3.4.2. Appreciate your quick attention!! |
Don't worry, I know the struggle. My own job is a legacy project too and I use one of my own libs in it as well where I actually made the exact same mistake but there it was a config in my TypeScript configuration. (we got like 80% working in IE despite Firefox being available ╯°□°)╯︵ ┻━┻) |
This PR aims to improve three things in this lib
I have cleaned up the build as well as the build scripts in b8b562c. What this means is
package-lock.jon
in favor ofyarn.lock
, either way only 1 lockfile should ever be present. I've opted foryarn.lock
aspackage-lock
has a tendency to change between operating systems (I experience this at work due to some devs working on Linux and others on MacOS) which creates unnecessary commit bloat.min.js
when it is not being referenced by themain
field inpackage.json
dist
, this is a side-effect of properly using"files"
in package.jsonnpm-debug.log
I have rewritten all tests into the Jest framework in c2b4075. This is primarily due to the fact that Vows was not capable of testing TypeScript which I needed for point 3, however while porting the tests I also noticed many issues with the current ones. Ranging from describing A but doing B, duplicating tests or tests that should not have passed at all, let me just say it was a mess. If anything by merging this PR the lib will be way better tested.
I have improved the TypeScript typings with a way that finally allows us TypeScript users to take full control over our typings in 86b420b. This resolves FuseOptions<T> prevents nested key search #261, a longstanding issue concerning TypeScript usage. In order to hopefully ensure that TypeScript usage will stay working like it is now I have also written an extra test suite for it. It should be noted that very shortly after opening this PR I will also create a PR for the gh-pages branch which adds TypeScript usage to the examples.
This PR bumps the version patch number from 3.4.2 to 3.4.3. I have also updated the CHANGELOG.md to reflect all the changes made by this PR.
I think that's about everything covered. If you have any questions or concerns just let me know and I'll address them at my earliest possibility.