Skip to content
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

Update dependency jquery.terminal to v1.21.0 #325

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

mend-for-github.aaakk.us.kg[bot]
Copy link

@mend-for-github.aaakk.us.kg mend-for-github.aaakk.us.kg bot commented Mar 25, 2021

This PR contains the following updates:

Package Type Update Change
jquery.terminal (source) dependencies minor 1.10.1 -> 1.21.0

By merging this PR, the below issues will be automatically resolved and closed:

Severity CVSS Score CVE GitHub Issue
Medium 6.1 WS-2019-0005 #191

Release Notes

jcubic/jquery.terminal

v1.21.0

Compare Source

Security
  • add option invokeMethods that disable by default executing terminal and cmd methods from echo
Features
  • HOLD keymap modifier + HOLD+[SHIFT]+BACKSPACE/DELETE to delete word before and after the cursor #​420
  • align tabs like in unix terminal #​423
  • tabs terminal options change tab length, not only columns/arrays
  • add tabs option for cmd
  • improve performance of display_position (when you click on character in long command that change length)
Bugfix
  • fix &) in scheme prism formatting #​421
  • don't process keys other then enter in reverse search
  • fix issue with background in Prismjs css
  • insert prism syntax formatter before nested formatting so it work for html if included with unix_formatting
  • fix emoji and Unicode surrogate pairs #​422

v1.20.5

Compare Source

Bugfix
  • one more fix to position in normal function formatter (prism)

v1.20.4

Compare Source

Bugfix
  • fix position in normal function formatter (prism)
  • fix syntax (prism) function name in developer tools

v1.20.3

Compare Source

Bugfix
  • fix regression in overtyping #​409

v1.20.2

Compare Source

Bugfix
  • escape formatting when using unix formatting in cmd
  • fix cursor style while hover over links
  • one more fix cursor position

v1.20.1

Compare Source

Bugfix
  • fix click after line for last line

v1.20.0

Compare Source

Security
  • anyLinks option to disable anything exception http and ftp (when false - default) - it make possible to insert javascript links, which is potential XSS vulnerability
Features
  • linksNoFollow option (default false)
  • add UMD for utility files #​418
Bug Fixes
  • handling backspaces in unix formatting #​409
    • handle \r \n \r\n \n\r the same when adding leftovers before backspace in unix formatting
    • fix cursor position when text have tabs found when fixing #​409
    • other fixes to backspaces
  • fix font change in universal selector #​415
  • fix regression bug in formatters (emoji demo) #​416
  • fix cmd::resize() without args that make number of characters equal to 1 #​413
  • fix click after line #​419

v1.19.1

Compare Source

Bug Fixes

v1.19.0

Compare Source

Features
  • add TypeScript definition file
  • update formatters API to have a way to return position after replace from function formatter
  • regex formatters and $.tracking_replace now accept function as replacement
  • update unix formatters to use new API so they work with command line
  • set exit to false if no login provided
Bugs
  • fix overtyping function #​409
  • remove CR characters only for display
  • don't invoke onPosition change when calling position and don't change the value
  • fix clearing CR characters that was causing removal of empty lines #​411

v1.18.0

Compare Source

Feature
  • looping regex formatters that replace until they don't match the regex
  • add tracking_replace to $.terminal namespace
  • $.terminal.syntax helper
  • new language for prism: "website" that handle html, javascript and css syntax
Bugs
  • handle formatters that replace backspaces and characters before #​409
  • fix broken < > & with cmd + prism #​410
  • fix background in prism with black background terminal
  • remove warning from nested_formatting when if find nested formatting

v1.17.0

Compare Source

Features
  • add ascii_table utility in separated file
  • per user command line history
  • add $.terminal.parse_options which return same object as yargs parser
  • $.jrpc helper now return its own created promise instead of $.ajax
  • add wcwidth as dependency so it will always show wider characters correctly (in browsers will work the same as optional)
  • expose terminal exception in $.terminal namespace
  • new API option doubleTab #​405
Bugfix
  • disable history in read & login (regression from 1.16.0 history interpreter option)
  • fix recursive error on extended commands (but it will only work on exact same commands without trailing white space)
  • create copy of Prism for formatter so it can be used with normal html based prism snippets
  • double fix: command line when formatter return empty formatting and prism that return empty formatting after ( and space
  • third fix fox jumping on right click
  • fix columns method
  • fix infinite loop when regex in formatters don't have g flag
  • fix parsing escape quotes
  • fix split equal to handle brackets when using without formatting
  • fix command line wrapping if prompt contain brackets as text #​407
  • insert ^C where cursor was located #​404
  • fix echo crlf (windows line ending) #​408
  • allow to call cmd without arguments
  • rename undocumented remove API method to remove_line so you can call jQuery remove
  • fix throwing exception when there is error in formatter (it now only show alert)
  • fix double exception when exec command throw exception

v1.16.1

Compare Source

Bugs
  • fix paste/select all when click below .cmd
  • second fix to jumping on right click (context menu) #​399
  • change $.terminal.prism_formatting to $.terminal.prism

v1.16.0

Compare Source

Features
  • allow to have limited import when export is save and restored from JSON #​393
  • add support for new u and s regex flags when parsing commands
  • add less plugin based on the one from leash
  • supports for promises returned from completion function
  • add prism.js file that include monkey patch for PrismJS library (for syntax highlight) to output terminal formatting
  • better read method #​397
  • handle promises returned from login and async login function #​401
  • add history option for push for easy disabling history for new interpreter
  • add scrollObject option, so you can use body when terminal is on full screen div without height
Bugs
  • fix resizer in Firefox #​395
  • fix $.terminal.columns and echo array #​394
  • fix $.terminal.columns for wider characters and terminal formatting
  • fix rows() when using --size #​398
  • fix null in JSON hash
  • fix jumping on right click (context menu) #​399
  • fix formatting inside brackets #​396
  • fix async interpreter #​400
  • use window resize when terminal added to body

v1.15.0

Compare Source

Features
  • allow to invoke terminal and cmd methods from extended commands ([[ terminal::set_prompt(">>> ") ]])
  • new API method invoke_key that allow to invoke shortcut terminal.invoke_key('CTRL+L') will clear the terminal
  • shift+backspace now do the same thing as backspace
Bugs
  • fix wider characters in IE #​380
  • fix issue with number of characters when terminal is added to DOM after creation in IE
  • fix scrolling on body in Safari
  • fix exception when entering JSON with literal strings #​389
  • fix orphaned closing bracket on multiline echo #​390
  • fix whitespace insert after first character after first focus #​391
  • fix open link when click on url from exception

v1.14.0

Compare Source

Features
  • pass options to formatters and accept option unixFormattingEscapeBrackets in unix_formatting
    (PR by Marcel Link)
  • improve performance of repaint and layout whole page when changing content of the terminal
  • use ch unit for wide characters if browser support it (it have wide support then css variables)
  • keymap terminal method and allow to set shortcuts on runtime
Bugs
  • fix newline as first character in formatting #​375.
  • fix error when echo undefined (it will echo string undefined since it's converted to string)
  • fix first argument to keymap function, it's now keypress event
  • fix resizing issue when scrollbar appear/disappear while you type
    #​378
  • fix cut of cursor when command line had full length lines and it was at the end
    #​379

v1.12.1

Compare Source

  • fix minified css file + fix scrollbar

v1.12.0

Compare Source

Features
  • default options for cmd plugin
  • caseSensitiveSearch option for both terminal and cmd plugins
Bugfixes
  • fix urls ending with slash #​365
  • stringify non string commands in set_command
  • fix scrolling of the page, when press space, after you click on the link
  • fix scrolling flicker when terminal added to body
  • small css fixes for element containers when terminal added to body
  • fix for wide characters inside bigger text #​369
  • when clicking on terminal and it already had focus the textarea was blured
    #​370
  • fix parsing empty strings "" or ''
  • fix warning from webpack about --char-width without default
    #​371

v1.11.4

Compare Source

  • handle non string and functions in error the same as in echo
  • fix selection for raw output (reported by @​ovk)
  • hide font resizer so you actually can select text starting from top left

v1.11.3

Compare Source

  • create empty div for function line that return empty string, that was causing issues with update
    #​363
  • set classes from terminal to fake terminal that is used to calculate character size
  • don't use length css variable on formatting when length is the same as wcwidth
  • css fixes for terminal in jQuery UI dialog (dterm)

v1.11.2

Compare Source

  • fix issue with --char-width == 0 if terminal have display:none
  • fix DELETE numpad key on IE
  • ignore invalid procedures description in system.describe
  • fix font resizer and init resizers when terminal hidden initialy
  • fix broken wrapping in new feature of updating divs on resize

v1.11.1

Compare Source

  • fix IE inconsistency in key property for numpad calc keys (reported by @​ovk #​362
  • fix completion skipping letters (reported by @​ovk #​361)
  • fix issue with last character in line beeing closing braket (reported by @​arucil #​358)

v1.11.0

Compare Source

Features
  • update API method accept options 3rd argument
  • speed up refresh on resize by checking character size in font resizer (reported by @​artursOs)
  • change command line num chars on resize + settings.numChars (reported by @​artursOs #​353)
  • add remove api method that call update(line, null);
  • don't call scroll to bottom on resize/refresh/update/remove
  • improve scroll_element plugin by using document.scrollingElement if present and cache the value
  • resizer plugin use ResizeObserver if defined
  • remove fake call to finalize in echo to catch potential error
  • silent boolean 3rd argument to cmd::set and 2nd to terminal::set_command
  • handy classed to change cursor animation in IE
Bugs
  • don't prevent default scroll when terminal have no scrollbar
  • restart cursor animation on keydown (requested by @​theMeow on chat)
  • don't redraw whole terminal in update api method
  • show exception from onAfterRedraw on terminal
  • don't show first argument to method in help command when login is used
  • allow to call disable/focus(false) from command + fix focus(false) with single terminal
    (reported by Eric Lindgren #​359)
  • fix autofocus on init

  • If you want to rebase/retry this PR, check this box.

@mend-for-github.aaakk.us.kg mend-for-github.aaakk.us.kg bot added the security fix Security fix generated by WhiteSource label Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security fix Security fix generated by WhiteSource
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants