Skip to content

Latest commit

 

History

History
195 lines (113 loc) · 14.6 KB

CHANGELOG.md

File metadata and controls

195 lines (113 loc) · 14.6 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

1.0.0 (2020-05-08)

⚠ BREAKING CHANGES

  • Remove iSql.connect() and iSql.setOptions()
  • Remove iConn.setTimeout()

Features

Bug Fixes

1.0.0-alpha.1 (2019-07-10)

Bug Fixes

  • Bump version to 1.0.0-alpha.1 (a7b4770)

  • Add check for connectError (0ec197e)

  • Use POST method for REST transport (#65) (6a9f91f)

1.0.0-alpha.0 (2019-06-27)

⚠ BREAKING CHANGES

  • Removed 'sync' logic from all the functions. Have all internal functions using ProgramCaller instead of xt.iPgm. Fixed eslint-disable sections, but there are a few that are still needed (bitwise operations) (#32) (7fdf0fd)

  • Remove setTimeout() method see issue (#32) We no longer support sync mode which had an option to set timeout (ee3d048)

Features

  • Rework Connection.js see issues (#25) (#2) (4dcb183)

      Allow Connection.js Constructor to accept a single object see #25
      Allow Connection.run() function to return error as first param of callback see #2
    
  • Add ssh transport (5f1c803)

  • Add odbc transport (7956a15)

Bug Fixes

  • Patch SqlCall.js (aa9591c)

  • deps: update with ssh2 and missing depd dependency (45c1c57)

  • deps: Update odbc dependency (04bac84)

  • Rework idb and rest transports (#17) (6f2ddcd)

      Update transports interface to accept config, xmlInput, done
    
      idb transport
    
      Use iPLUGR512k variant instead of iPLUG512k to iterate over a result set
    
      Ensure conn and stmt are always cleaned up properly
      - even during error states the stmt and conn objects are now cleaned
      - add function clean() to avoid duplication
      - this commit should help resolve issue #17
    
      rest transport
    
      Validate required: database, username, password
    
      Enforce output buffer to be set to the max
      - before default was only set now output buffer is always set to the max
    
      Small fixes add mising semicolons, remove some comments, etc
    

Tests

  • Added unit and functional tests (163939c)

  • Fixed some issues found during unit testing (1f5421f)

  • Move existing unit/functional tests to deprecated folder (c7a875e)

  • Update unit/functional tests (c6c470d)

  • Added ToolkitFunctional.js (8aa1f56)

  • Rename unit/functional tests (b8733bc)

  • Bump default timeout for tests from 2s -> 3s (6ef2cb3)

  • Update configuration options in functional tests (4ba0b8f)

  • Add ssh to available transports also add verbose configuration (15ec42d)

  • Add config for DSN (8957bb4)

Refactor

  • Rename command.js -> CommandCall.js (7c12d91)

  • Add CommandCall Class (8884e7a)

      - class to maintain command types (sh, cl, qsh) see issue #24
      - merge (sh, cl, qsh) code into toXml
      - add in some JSDoc annotations
    
  • Update Toolkit.js (36492d2)

      Add in checks for when returnError is false in Toolkit.js.
      This is case occurs when a call from deprecated class goes through
      Toolkit.js. Instead of worrying about setting the flag on and off
      create a new Connection object when same config when returnError is
      false within the constructor. Then have proper checks for when to report
      the error.
    
  • Update Toolkit methods - Now all toolkit methods will have error first callbacks (a632dbf)

  • Move transports to lib/transports/ directory(8077fb7)

  • Moving ALL deprecated functions into Deprecated.js They import the new classes and use them. Can be easily removed later. Also removed CommandGenerator class and just have 3 const functions exported (d218b1d)

  • Linted the tests, and made them use assert (before they only failed if the last object tested were not successful, and tracked success with a variable). Renamed the sql class to SqlCall. General cleanup (a73d031)

  • Cut down and consolidated files. I think initial modularization was good, now building back up a little. icmd, iqsh, and ish are all mostly the same thing, and I made them live in the CommandGenerator class. Others, like iconn and isql, are definitely their own classes and rightly split off. I also put the deprecated classes into the file of the class that is replacing them to simplify the file structure. (#24) (5e7b983)

  • Creating 'Toolkit' class to hold all of the functions and stores the conn like the old classes. Keeping old classes but redirecting to toolkit and adding deprecation messages (todo) (f8fc468)

  • Consolidating 'classes' that serve no purpose into one file, now all functions that do the same type of work are together (69d2825)

  • Modularize itoolkit.js (#20) (35a2ffb)

  • Getting rid of __getClass in itoolkit.js and places where it was imported (f9812b7)

Docs

  • Add contribution guidelines (89be160)

  • Update Readme for v1.0.0 (f51438e)

  • Update and Add SSH doc (f7b8fd8)

  • Add doc for odbc transport (c0e80ff)

  • Update install docs for alpha version (8e81232)

Style

  • Fix lingering files with CRLF line endings CRLF -> LF (b21636c)

  • Fix line endings CRLF -> LF (0541748)

  • Removing some eslint-disable comments now that ProgramCall fits with required naming convention (be5247c)

  • Lint xmlToJson function (17ef86f)

  • Linted the /lib directory using airbnb-base linting configuration (#21) (5388b55)

0.1.6 (2019-01-25)

0.1.5 (2019-01-08)

0.1.4 (2018-09-17)