Skip to content

Latest commit

 

History

History
259 lines (181 loc) · 6.74 KB

CHANGES.md

File metadata and controls

259 lines (181 loc) · 6.74 KB

v0.6.5

  • compatibility with ancient versions of node

v0.6.4

  • avoid xxx..html (double dot)

v0.6.3

  • fixed looping search for start of doc when end not found (very large docs)

v0.6.2

  • bunyan for logging

v0.6.1

  • fixed bug that xml not cleared when processed

v0.6.0

  • refactored to move all anomaly handling into the doOneFile file splitter

v0.5.13,14

  • handling timing issues

v0.5.12

  • improve info message

v0.5.11

  • avoid double call of getonefile
  • make getonefile artificially wait til processing can be assumed done before going on
  • correct errors in bad xml doc start

v0.5.10

  • destroy stream on error

v0.5.9

  • on error processing for stream

v0.5.8

  • cheap-logger fix

v0.5.7

  • clean up error messages.

v0.5.6

  • clean up checkStart

v0.5.5

  • logic for input.resume

v0.5.4

  • typo fix (log->logger)

v0.5.3

  • handle case where input is empty (xml translation problem?)
  • handle preprocess returning error in callback

v0.5.2

  • handle file containing multiple html files

v0.5.1

  • updated superagent to 1.8.3

v0.5.0

  • new cheap-logger
  • preprocess gets json from config.json

v0.4.3

  • Bug if infile list ends in comma, drill finds random files from null "directory".

v0.4.2

  • Error on no closing element visible and no more input

v0.4.1

  • Error from ElasticIndexer submitObject gives file in http error message

v0.4.0

  • processFiles takes a second optional argument for a progress callback (config, msg)
  • changed engine to Node v4.2.2+ (0.10.29 gives errors on the tests for odd reasons)

v0.3.34

  • did not handle \n<?xml...

v0.3.33

  • handle file with just whitespace in it

v0.3.32 (31 was a false save)

  • fixes missed assignment on previous fix

v0.3.30

  • handle <?xml in embedded documents

v0.3.29

  • Was failing on large files (~1 GB) with multiple xml docs. Fixed by passing keeping buffer small.

v0.3.28

  • fix for new bug single file fileExt missing

v0.3.27

  • Fixed generation (for html typically) to produce correct output filename

v0.3.26

  • added options to new xml2js: attrkey: @, charkey: #, explicitarray: false == not default children to array

v0.3.25

  • switch to xml2js in order to have bi-directional. (good performance!)

v0.3.24

  • fix ref to adm-zip in the wrong dependency group

v0.3.23

  • can handle single-entry zip files. todo: multiple entries

v0.3.22

  • Fix to drill for list of input directories: do not exit if one file is missing, just make a note.

v0.3.21

  • update superagent requirement

v0.3.20

  • report empty xml file instead of throwing error

v0.3.19

  • add format to String.prototype ("{0}=={1}".format("this","that") ==> "this==that"
  • make html generator async safe so that it doesn't exit before writing is finished.

v0.3.18

  • gz not initializing xml, so documents accumulating

v0.3.17

  • add README.md to npm dist

v0.3.16

  • used setimmediate to drop stack and hopefully buffer

v0.3.15

  • simplified gz

v0.3.14

  • fixed test to handle gz filename properly

v0.3.13

  • can handle .gz files now

v0.3.12

  • bug when no mapping: ElasticIndexer:224
  • bug when no src in xml-to-es:deepExtend: 366

v0.3.11

  • Refixed bug where fileExt is more than just the extension

v0.3.10

  • Broke out collectFiles from parseOptions processing to make multi-threaded (Cluster) use easier;
  • Demoted ElasticIndexer.js log message from INFO to DEBUG.

v0.3.9

  • Fixed bug where fileExt is applied not to end of filename but only to formal extension.

v0.3.8

  • Fixed resolving generator fn in nofile case

v0.3.7

  • use setImmediate to trim stack on callbacks

v0.3.6

  • Fix bug in Generation.js, line 69, createOneDocPerFile not running callback.

v0.3.5

  • Add and correct added generator test

v0.3.4

  • fix make generators available in Generation.js

v0.3.3

  • Fixed setGenerator produced incorrect structure.

v0.3.2

  • make generators available in Generation.js

v0.3.1

  • handle filename properly when id is "" or " ", etc.

v0.3.0

  • BREAKING CHANGE: config.input.preProcess takes a callback argument cb(json). This enables async processing in preprocess (doh).

v0.2.17

  • Check that database has been created and attempt to create if not.

v0.2.16

  • If config.index exists, initialize the indexer.

v0.2.15

  • make test of fmt and type case-insensitive by using regexp

v0.2.14

  • throw exception if ignoring user's generator

v0.2.13

  • fix logger npe in Generation.js

v0.2.12

  • handle setConfig property in output.generator so that generator can insure that it has the final version of the config object.

v0.2.11

  • allow parser and indexer to take config as an object as well as a filename

v0.2.10

  • fixes to ElasticIndexer

v0.2.5

  • change lewis-config to lewis-input-config
  • added cheerio for parsing html input

v0.2.4

  • substituted config.input.currentFile for config.inputFiles[0] where feasible

v0.2.3

  • fixed bug where giving a list of input file names (not comma delimited) gives an error.
  • added recursive processing to subdirectories of directories submitted

v0.2.2

  • put input file path (or URI, or dbRef) on config.input.currentFile during runs
  • pass config to input-config preProcess function.

v0.2.1

  • fixed dbconfig to run callback correctly

v0.2.0 API additions but no breaking API changes (applies to 0.1.4, 0.1.5 as well)

  • added
    • ability to define your own generator in output config
    • ability to specify a callback in output config to be called when all files are processed
  • example to save json output to mongodb
  • changed requires in examples/convert.js and example/indexFiles.js so that they can be run in place. Added comment for developer to change them for use outside the examples dir.

v0.1.5

  • Skip indexing tests if ES is not running.

v0.1.4

  • for input-config
    • added preProcess for gross output manipulation before other processing
    • added delete to enable property deletion
    • added rename to enable property key renaming (useful after promoting)

v0.1.3

v0.1.2 May 27, 2014

  • Changed require calls in examples scripts to suit npm usage, so that examples run correctly when copied to a top level directory (above node_modules/xml-to-es).

v0.1.1 May 24, 2014

  • Create index.js to collect API exports into one require.
  • Modify tests and examples to load index.js.
  • API using lib/xml-to-es and lib/indexFiles backward compatible.
  • Fixed bug on --clean, request.delete --> request.del; adjusted tests to exercise
  • Fixed serious bug where attempt to get the mapping was creating the index with wrong settings because of URL misspelling
  • cheap-logger log method now logs absolutely; it ignores log levels