-
Notifications
You must be signed in to change notification settings - Fork 10
consider a move to Bootstrap 4 #26
Comments
Upgrading would also stop github from complaining about this. However, per the Debian Security Team, the version we are using is not affected. |
Can't promise it's bug-free, but as a starting point, I've updated my fork (https://github.com/tiesont/bootbox) of Bootbox to be both BS3 and BS4 compatible and add a few features. I'm a collaborator for the original repo, but that doesn't give me sufficient rights to make some changes I want/need to make to push an updated version, so that's the best I can offer. HTH. |
@tiesont Thanks. After my comment, I did update my dependencies to use your code. I needed that to at least get me over the immediate issue that I could not even make sure my code works fine with BS4. (This updated code has not been pushed yet.) The lack of an actual npm I'm getting close to just doing myself what I suggested to you. I'd fork |
@lddubeau Thank you for the reply. I'll put some thought into creating a wholly separate project based on bootbox. I mostly maintain it simply because I still actively use it in projects, and it's preferable to the "normal" way of using BS modals. My primary concern is that I'm mostly a .NET guy - I know JavaScript well enough to be dangerous, but I'm by no means an expert. |
@tiesont Alright, I'm working on a fork. There's something I don't understand. There's By the way, there were roughly 50 tests that did not run when running the test suite in the v5.x branch. Once I fixed the suite to get these tests to run, I found bugs which I've fixed in my fork. (Not public yet.) |
The intent was that the bootbox.locales.js file would be built from the individual locale files. That would (in theory) make it easier to either commit a new locale or update an existing - you wouldn't have to deal with the whole file. I wasn't really able to get a build script working, though, so to make it (bootbox) work the way I intended I just hand-built the bootbox.locale.js file. The idea was that most people aren't using most of the locales, so bootbox.js contains just the en locale to save a handful of bits. The tests should have been running, unless I missed something, but then again, it's been a bit since I was really working on 5.x. Then again, it's possible that I just didn't notice that they weren't being applied. I just go by what Travis-CI tells me: https://travis-ci.org/tiesont/bootbox |
@tiesont Thanks for the clarification. I'll set something to avoid having to edit multiple files if changes need to be made to existing languages or adding a new language. Travis is telling you the number of tests that Mocha has discovered, but the problem happens at the time Mocha tries to discover tests. I did not add any tests myself but I get over 500 tests here when I run the suite. Here's the issue. Originally the tests were written in CoffeeScript. Then they were converted to JS and continued being edited in JS. In CoffeeScript the test suite was something like this:
In CoffeeScript, the last expression of a function is the return value of the function, so the code above is converted to this:
Note all the
Unfortunately, the new tests won't be run. Why? Because the JavaScript interpreter does not even get to execute the last The only way to catch this is by inspecting the code or running a correctly configured linter on the test code. (Any linter worth the name would report the unreachable code after the I happened to find the problem because one of the first things I did with the test files was to manually remove all the CoffeeScript-isms from them. There was also an overarching problem because the tests were storing data into |
Thank you for the explanation. If you get to a point where you could use some help, let me know, even if it's just help writing/updating documentation. |
I assume I mentioned this somewhere already, but I was able to get access to the npm package for Bootbox, so if you're still using it in this project instead of bootprompt, Bootbox is now Bootstrap 4 compatible. Just FYI. |
Yep, I saw the news. All the projects I have that were using bootbox are now using bootprompt. |
Packages we depend on, not yet converted to BS 4:
(corejs-typeahead already has a style for BS 4.)
It also means:
It constitutes a breaking change.
The text was updated successfully, but these errors were encountered: