Releases: boxgaming/qbjs
0.9.0 Release
Try out the release online here: https://qbjs.org/
Release Highlights
Offline Mode
In this release QBJS will offer offline deployment as a progressive web application (PWA). This change allows you to install QBJS locally directly from the browser. A new icon will appear in the address bar which which will allow you to install the application. After the install is complete you can then run QBJS in a standalone application window. The best part of this change is that all of the content needed to run QBJS will be installed on your device. So, you will be able to use it when completely disconnected from the internet. But you'll still get the best of both worlds as it will download any updates when new releases come out.
A couple of notes:
- The install as app feature is available in most major browsers but for some reason this is not fully supported on Firefox desktop version (although it is on the Android version of Firefox)
- On iOS this can be installed by selecting the "Add to Home Screen" option.
IDE Updates
In addition to the above, this release also includes a new dialog window that will display the methods and allow you to jump to the method definition. As in QBasic and QB64 this dialog can be shown by pressing the F2 key or by clicking the icon in the toolbar. Additionally, this dialog will show the available methods of any imported library.
There have been a number of updates made in this release to improve the level of error handling and reporting. The IDE now supports compilation ERROR messages in addition to the previous WARN level messages. If ERROR level compilation issues are encountered they will prevent the program from running.
Finally, for any VIM fans out there you can now select a VIM key binding to use the editor in VIM mode.
Language/Compatibility Enhancements
There are a large number of updates intended to improve compatibility with QBasic/QB64. One of the most significant was the change to use Javascript bitwise operators in compiled programs instead of boolean ones for AND, OR, and NOT keywords. There are also a number of updates to improve the default font compatibility with the code page 437 character set and international characters. This release also includes support for PLAY and the SCREEN function.
Release Notes
IDE Updates
- Add PWA Support (#112)
- Add support for dialog to show and jump to methods (F2) (#106)
- Add ERROR in addition to WARN for reported compiler issues. Prevent execution when ERRORs are reported. (#110)
- Added numerous runtime assertions for better error reporting.
- Add support for vim key bindings (#121)
- Updated open project logic to determine if the zip file has a single folder and if so to treat it as the root
- Update to correctly stop sound from playing when runtime is stopped
Language/Compatibility Enhancements
- Updated to make mousewheel events cumulative
- Added support for Screen function (#115)
- Fix for font and text screen width calculations
- Add support for Play (#62)
- Implemented pixelated scaling for fullscreen unless _SMOOTH parameter is specified
- Fixed parsing error preventing Exit from correctly exiting loop when nested inside Select Case (#109)
- Handle JS reserved words (#120)
- SOUND duration should be interpreted in units of TIMER ticks 1/18th of a second, instead of milliseconds (#119)
- Support for international characters and UTF8 (#114)
- Updated default font to use standard UTF code mappings. Added a character map to translate codes in Asc and Chr$ methods for backwards compatibility.
- Fixed default font character mapping
- Switch to Bitwise operators (And, Or, Not) (#113)
- Support hex prefix (&H) on values in DATA (#106)
- Updated to explicitly set method parameter types
- Updates to correctly identify "Unsigned" parameter types
- Export fix to prevent registering built-in functions.
- Fixed typo in Asc method implementation
- Fixes for Val NaN detection
- Added _SMOOTH option for PutImage method
- Fixed issue with export causing collisions between multiple imported libraries
- Updated GX constants to use -1, 0 instead of actual boolean values
- GX updates - animated tile and map resize support
Experimental
- Updates to support nodejs-based command line compiling
- Added support for gzip compressed code parameter
v0.8.2-beta
v0.8.1-beta
Fixes
- Fix to error line reporting for chrome-based browsers
- Letter spacing fix to QB45 and QB45 VScode themes
0.8.0 Release
Try out the release online here: https://qbjs.org
Release Highlights
Language Support
A major focus of this release was improvements to QB/QB64 language support and compatibilty. This includes many compiler improvements as well as adding support for over 30 additional keywords. Some highlights include:
- Support for SOUND
- QB64 string compression: _Deflate$, _Inflate$
- Support for STATIC variables in functions and subs
- QB64 keywords can be used with or without leading underscore.
IDE Enhancements
Numerous fixes and enhancements to the IDE were included in this release. There is now a shortcut key for stopping the running application (SHIFT+F5). Files can now be uploaded to the virtual file system via an upload link in addition to the already supported drag and drop method. The largest and most visible change is the inclusion of a new integrated help tab to the console. This includes content directly from the github wiki.
2D Graphics Library
New methods were added to the extended 2d graphics library to apply dashed line style to any line drawing method as well as the ability to draw an inverted rect.
Release Notes
Enhancements
- Added support for Sound keyword including new optional decay and gain parameters. (#53, #43, #44)
- Added support for Static variable definitions. (#49)
- Added support for Shared variable declarations in functions and subs. (#50)
- Added support for new extended 2D graphics features InvertRect and LineDash(Off). (#99)
- QB64 keywords can be used with or without leading underscore "_". (#68)
- Support new QB64 way of defining multiple variables of the same time on a line for custom type declarations (#56)
- Display flashing prompt when Input command is accepting user input. (#94)
- Add support for QB64 string compression methods _Deflate$ and _Inflate$. (#74)
- Text screen scrolling not working with Input after recent font support changes. (#93)
- Added support for QB64 keyword modifier key functions: _NumLock, _CapsLock, _ScrollLock. (#77)
- IDE Enhancements
- Added integrated Help tab (#70)
- Stopping program execution in the IDE should halt all playing sounds. (#91)
- New IDE Theme - QB64 VSCode. (#51)
- Always show Export button on Share dialog. (#87)
- Implemented shortcut key to stop the running program (SHIFT+F5). (#90)
- Add upload button to Files tab as an alternative to drag-and-drop. (#86)
- Automatically set focus to code editor when in IDE mode. (#52)
Fixes
- Amount of delay by _Limit not consistent between browsers (#55)
- Render issue with PSet optimizations when changing _Dest image (#80)
- Various tweaks and improvements to file operations. (#47)
- Fixed Firefox specific text placement issues (#88)
- Explicitly convert value when passing floating point values to integer method parameters. (#81)
- Fixed parser error when IF statement follows a multi-line separator ":". (#79)
- Fixed parser error for conditional keywords (if, elseif, while, until) with no space between keyword and open parenthesis. (#85)
- Fixed parser error for subs and functions which contain "." in the name. (#83)
- Subs with coordinate-style parameters with no space between the method name and first parameter were not correctly being identified as subs by the parser. (#54)
- IDE Fixes
Added Keywords
- QB
- Environ, Environ$, Error, Loc, Static
- QB64
- Arccot, _Arccsc, _Arcsec, _CapsLock, _CommandCount, _Cot, _Csc, _Deflate$, _DesktopHeight, _DesktopWidth, _Dir$, _Echo, _EnvironCount, _Inflate$, _Sec, _MouseHide, _MouseShow, _NumLock, _ScreenMove, _ScreenX, _ScreenY, _ScrollLock, _Title$
- QBJS
- G2D.InvertRect, G2D.LineDash, G2D.LineDashOff
v.0.7.3-beta
Minor patch release to address the following issues:
- Fixed Locate bug introduced by new custom font functionality
- Fix for src url parameter to correctly handle source urls with parameters
- Added ability to prefix parameters with "#" instead of "?" to allow for longer code URLs
- Added detection logic for additional zip file content types: application/zip-compressed, application/x-zip-compressed
- Fixed screen sizing issue in "auto" and "play" modes
- Disabled beforeunload event when not in IDE mode (e.g. auto, play)
v0.7.2-beta
Patch release to disable the beforeunload event when in an iframe. This is to prevent the popup from appearing when qbjs is embedded in another site.
v0.7.1-beta
Patch release to resolve issue with array declaration introduced in the 0.7.0 release
v0.7.0-beta
Release Highlights
IDE Enhancements
Numerous enhancements to the IDE have been incorporated into this release. The code, output and console panels can be resized by dragging the panel dividers. There are now keyboard shortcuts for running the current program (F5) and the export/share feature (F11). Users can now customize the look and feel of the IDE by choosing from one of four themes.
Custom Fonts and Printing
Support has been added to allow the use of custom fonts. The following keywords are now available in support of this feature: _Font, _LoadFont, and _FreeFont. The _PrintMode keyword is also now supported to allow text to be printed with transparent background. Numerous updates have been made to the Print method to format the output more closely to QBasic/QB64.
2D Graphics Library
This release includes a new graphics library which provides native support for common graphics methods (e.g. FillTriangle, RotoZoom, FillCircle, FillEllipse). There is also new functionality to allow more control over both new graphics functions and standard QBasic graphics methods (e.g. LineWidth, LineCap, Shadow). The full list of new methods can be found here:
/~https://github.com/boxgaming/qbjs/wiki/Supported-Keywords#2d-graphics.
Console Output Library
A new console output library has been added to allow logging messages and simple output to the console window in the IDE. The full list of new methods can be found here:
/~https://github.com/boxgaming/qbjs/wiki/Supported-Keywords#console
File I/O Extension Library
This library provides the ability to upload and download files to and from the browser from within your application. The full documentation for the library can be found here:
/~https://github.com/boxgaming/qbjs/wiki/Supported-Keywords#filesystem
Release Notes
Enhancements
- Add Extended 2D graphics library
- Add Console output library
- Add File I/O extension library
- Support for file listing, upload and download
- IDE enhancements
- Support for multiple IDE themes
- Default (QB64 dark dark blue)
- QBasic (classic old school look-and-feel)
- Windows Classic
- VSCode Dark
- Run current program when F5 is pressed
- Show share/export dialog when F11 is pressed
- Allow resizing of IDE panels
- Support for multiple IDE themes
- Add support for querying the current foreground and background color
- _DefaultColor, _BackgroundColor
- Add support for setting font display behavior
- _PrintMode
- Add support for custom fonts
- _Font, _LoadFont, _FreeFont
- Add support for mouse scroll wheel (_MouseWheel)
Fixes
- String$ method not working correctly when character code passed for second parameter
- Missing _FontHeight method
- Print method not wrapping text when length would extend past the end of the screen (Issue #34)
- Print method not prefixing non-negative numbers with space character (Issue #41)
- Parsing error when negative numbers are used in array definition with (x To y) format
- Line with and height are off by 1 when using the B or BF option.
This was preventing anything from being drawn when the height or width of the requested line was 0. - Name method not using correct syntax:
- Expecting: NAME "oldFileName.txt", "newFileName.txt"
- Should Be: NAME "oldFileName.txt" AS "newFileName.txt"
v0.6.1-beta
Implemented a screen pixel cache to improve performance for programs that heavily utilize PSET for rendering.
v0.6.0-beta
Release Highlights
File I/O Support
Support has been added for standard QBasic file input/output. QBJS now has a virtual file system that supports most file system operations. As part of this update there is now a File tab in the console to manage the virtual file system. Files can be dragged into the currently selected folder and downloaded by clicking the file name.
What is supported so far:
- INPUT, OUTPUT, APPEND and BINARY file modes
What is NOT supported yet:
- RANDOM file mode
Project Support
Now more complex projects can be managed and shared in QBJS. There is a new toolbar which allows you to open and save either individual .bas source files or a .zip file containing an entire project. Additionally, you can share publicly published projects with the src parameter. Here are a couple of examples:
Expanded Set of QB/QB64 Keywords
25 new keywords have been included with this release. See the full list below.
Release Notes
Fixes
- Update Input and Line Input to convert returned values to appropriate type
- Line statement errors when no color parameter is specified but the subsequent B/BF parameter is
- Fully support variable type suffixes in function/sub parameters.
- Fix Line Input error
Enhancements
- Add support for virtual filesystem to support File I/O methods (APPEND, BINARY, INPUT, OUTPUT)
- Add support for loading and saving a project from a zip file containing the main source and dependencies stored in the virtual file system
- Add support for additional QBasic/QB64 Keywords
- _CWD$
- _DirExists
- _FileExists
- _OS$
- _StartDir
- ChDir
- Close
- EOF
- Files
- FreeFile
- Get
- Input (file statement)
- Kill
- Line Input (file statement)
- LOF
- MkDir
- Open
- Print (file statement)
- Put
- Name
- RmDir
- Seek
- Write
- Write (file statement)
- XOR (bitwise)