PageRenderTime 78ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/node_modules/nightmare/History.md

https://bitbucket.org/nicomee/martingale
Markdown | 602 lines | 430 code | 172 blank | 0 comment | 0 complexity | af6318f1afdbbce854b04a26e238d9bf MD5 | raw file
Possible License(s): 0BSD, GPL-2.0, JSON, Apache-2.0, BSD-3-Clause, Unlicense, GPL-3.0, CC-BY-SA-3.0, MIT, BSD-2-Clause
  1. # 3.0.0 / 2018-03-02
  2. * BREAKING: remove window.\_\_nightmare.ipc to resolve the major security issues (#1390)
  3. * BREAKING: properly serialize error values (#1391)
  4. * added linting, formatting and a git pre-commit hook (#1386)
  5. * Added ability to specify the client certificate selected by electron (#1339)
  6. * adding selector to the timeout error in .wait() (#1381)
  7. * Pin Electron version (#1270)
  8. * Fix error on preload (#1247)
  9. * Add mouseout action to complement mouseover (#1238)
  10. * fix problems that are rejected when adding child actions with objects. (#1093)
  11. * Set mouse position for mouse events (#1077)
  12. * Repaired support for multiple timeouts in FrameManager (#945)
  13. # 2.10.0 / 2017-02-23
  14. * Remove redundant docs for 'log' event from README
  15. * changed some `var` declarations to `const`
  16. * replace the 404 link with valid link
  17. * added Promise override tests
  18. * added docs for new Promise override features
  19. * added ability to override internal Promise library
  20. # 2.9.1 / 2017-01-02
  21. * Minor touchups to key press documentation
  22. * Link to Electron documentation updated
  23. * Updates speed information on the readme
  24. * Swaps Yahoo example out for a faster DuckDuckGo example
  25. * Fixes an issue where `nightmare` may be undefined in the browser at injection time
  26. * Changes screenshot rendering to use debugger API instead of forcing a DOM change
  27. # 2.9.0 / 2016-12-17
  28. * Prevents unload dialogs, allowing Nightmare to end gracefully
  29. * `.end(fn)` now uses `.then()` under the covers
  30. * **Possibly breaking change:** Nightmare will now default to using a non-persistent partition. Data between executions of Nightmare will no longer be saved.
  31. * Adds `.mouseup()` action
  32. * Fixes several typos/copy-paste errors in the readme, as well as clarifying error-first callbacks
  33. * Adds `.path()` to get the URL's route (as opposed to the fully-qualified URL)
  34. # 2.8.1 / 2016-10-20
  35. * Fixes parsing issues with arguments to `evaluate_now`
  36. * Upgrades to Electron 1.4.4
  37. # 2.8.0 / 2016-10-20
  38. * Fixes a missing semicolon in the first readme example
  39. * Fixes a reference error inside `.wait()` when using `node --use_strict`
  40. * Adds missing documentation for `.mouseover()`
  41. * Corrects a typo in the readme
  42. * Removes dependency on `object-assign`
  43. * Adds `.halt()` API to stop Nightmare execution immediately
  44. * Fixes `blur` exception when elements are removed by keyboard events
  45. * **Possibly breaking change:** Changes `.evaluate()` to allow for asynchronous execution. If the `.evaluate()`d function's arity is one less than the passed in parameters, it'll assume the last argument to the function is the callback. If the return value is a thenable, it'll call `then()` to wait for promise fulfillment. Otherwise, the call will behave synchronously as it does now.
  46. # 2.7.0 / 2016-09-05
  47. * Adds `.wait(element, timeout)` to wait for whichever comes first
  48. * `.end()` will now end Electron gracefully instead of issuing a `SIGKILL`
  49. * Touches up readme for `.end()`
  50. # 2.6.1 / 2016-08-08
  51. * Fixes treating provisional load failures as real load failures
  52. # 2.6.0 / 2016-08-02
  53. * Makes the CircleCI badge an SVG
  54. * Adds an option for `.type()` to control time elapsed between keystrokes with `typeInterval`
  55. * Adds `.cookies.clearAll()` to clear all cookies
  56. * Fixes crashing if the Electron process is closed first
  57. * Adds `pollInterval` as an option to control the tick time for `.wait()`
  58. * Forces Nightmare to error on bad HTTP authentication
  59. * Fixes a crash by omitting event data due to circular references
  60. * Adds environment variable forwarding to the Electron process
  61. * Fixes `openDevTools` docs to be more explicit about detaching the devtools tray
  62. * Fixes the link to the preload script
  63. # 2.5.3 / 2016-07-08
  64. * Adds better proxy information to the readme
  65. * Fixes a readme typo
  66. * Updates `ipcRenderer` usage for preload scripts in readme
  67. * Bumps Electron to version 1.2.5
  68. # 2.5.2 / 2016-06-20
  69. * Fixes `Referer` header support
  70. * Removes timeout between keystrokes when using `.type()`
  71. * Checks instance existence when calling `.end()`
  72. * Adds a link to `nightmare-examples`
  73. * Changes `yield` to `.then()` in readme
  74. * Swaps `did-finish-loading` for `did-stop-loading` when waiting for page transitions
  75. * Adds optional `loadTimeout` for server responses that do not end
  76. # 2.5.1 / 2016-06-07
  77. * Bumps Electron dependency to 1.2.1.
  78. * Removes a `sender` workaround
  79. * Moves the start of Electron from the constructor into the queue
  80. # 2.5.0 / 2016-05-27
  81. * adds a timeout to `.goto()` such that pages that load the DOM but never finish are considered successful, otherwise failing, preventing a hang.
  82. * updates the example script and readme file for consistency.
  83. * reports with more helpful messages when the element does not exist when running `.click()`, `.mousedown()` and `.mouseover()`.
  84. * `.coookies.clear()` with no arguments will clear all cookies for the current domain.
  85. * adds Node engine information to package and ensures CircleCI builds and tests against 4.x, 5.x and 6.x.
  86. * removes extranneous `javascript` event listeners upon execution completion or error.
  87. * adds `.once()` and `.removeListener()` for more complete Electron process event handling.
  88. # 2.4.1 / 2016-05-19
  89. * Points invalid test URLs to the `.tld` domain
  90. * Switches javascript templates over to using template strings.
  91. * Adds better switch tests
  92. * Javascript `goto`s now only wait if the main frame is loading
  93. * Allows a Nightmare instance to use `.catch()` without a `.then()`
  94. * Fixes a deprecated IPC inclusion in tests
  95. * `.goto()` rejects with a helpful message when `url` is not provided
  96. # 2.4.0 / 2016-05-05
  97. * adds call safety with IPC callbacks
  98. * adds `.engineVersions()` to get Electron and Chrome versions, as well as Nightmare.version
  99. * changes Yahoo example to use more robust selectors, adds `.catch()`
  100. * adds a check for `runner` arguments
  101. # 2.3.4 / 2016-04-23
  102. * blurs text inputs when finished with `.type()` or `.input()`, including clearing selectors
  103. * now errors properly for non-existent selectors when using `.type()` and `.input()`
  104. * strips `sender` from Electron -> parent process forwarded events
  105. * improves test speed for dev tools
  106. * fixes `.then()` to comply with A+ promises
  107. * pipes Electron output to `debug` prefixed with `electron:`
  108. * cleans up several exception test cases using `.should.be.rejected` from `chai-as-promised`
  109. * upgrades to Electron 0.37.7
  110. * removes `process` event listeners when a Nightmare instance ends
  111. * fixes support for `javascript:` urls
  112. # 2.3.3 / 2016-04-19
  113. * fixes `.goto()` failing when the page does not load
  114. * fixes deprecated Electron APIs
  115. * adds testing for deprecated API usage in Electron
  116. # 2.3.2 / 2016-04-14
  117. * fixes the `.wait(selector)` comment
  118. * adds documentation about headers
  119. * adds an interim gitter badge
  120. * adds a unit test for `openDevTools`
  121. * bumps to electron 0.37.5
  122. * adds a wrapper to run unit tests when on CircleCI, when Xvfb is running, or the `HEADLESS` environment variable is set. Prevents Nightmare from hanging when running headlessly.
  123. * `.evaluate()` errors if a function to evaluate is not supplied
  124. # 2.3.1 / 2016-04-11
  125. * fixes passing uncaught exceptions back to the default handler after cleanup
  126. * fixes overhead due to automatic subscription to frame data for screenshots
  127. * Adds unicode documentation for `.type()`
  128. # 2.3.0 / 2016-04-02
  129. * extends `.action()` to include adding actions on the Electron process
  130. * adds a debugging message to inspect how Electron exited
  131. * ensures multiple instances of Nightmare do not use the same `waitTimeout` value
  132. * ensures cookies are not shared across tests
  133. * adds basic HTTP authentication
  134. * fixes `console.log` with injected/evaluated script
  135. * ensures screenshots match the currently rendered frame
  136. * adds ability to open and detach dev tools
  137. * removes the double-injection from `.inject()`
  138. * adds ability to save entire page as HTML
  139. # 2.2.0 / 2016-02-16
  140. * .then() now returns a full promise instead of nightmare. update yahoo example.
  141. # 2.1.6 / 2016-02-01
  142. * Fix failed wait with queued up functions
  143. * fix fullscreen switching (#434)
  144. # 2.1.5 / 2016-02-01
  145. * add .insert(selector[, text]).
  146. * improve .type(selector[, text]) robustness.
  147. * bump electron and fix API updates.
  148. # 2.1.4 / 2016-01-28
  149. * added debugging flags to README
  150. * Update use of electron APIs to kill deprecation warnings for 1.0
  151. * Implement dock option
  152. * added default waitTimout
  153. * page event listener fix
  154. # 2.1.3 / 2016-01-18
  155. * added ability to uncheck
  156. * now properly fails with integer wait time
  157. * Added ability to return buffer from pdf
  158. * add ability to clear cookies
  159. * Added a documentation for .viewport(width, height)
  160. * Uncomment OS X dock hide
  161. * fix setting electron paths
  162. # 2.1.2 / 2015-12-25
  163. * Support typing in non-strings
  164. * Support Chrome command line switches.
  165. * fix eventemitter leak message
  166. * Blur focussed on click. Fixes #400
  167. # 2.1.1 / 2015-12-21
  168. * clears inputs on falsey/empty values
  169. # 2.1.0 / 2015-12-17
  170. * **BREAKING**: changed `page-error`, `page-alert`, and `page-log` to `console` with types `error`, `alert`, `log`
  171. * **BREAKING**: fixed signature on nightmare.on('console', ...), to act more like console.log(...)
  172. * use native electron sendInputEvent for nightmare.type(...)
  173. * properly shutdown nightmare after certain tests and update formatting on the readme
  174. * add events for prompt, alert, confirm, and the other console events
  175. * update docs for preload script
  176. * support passing in a custom preload script
  177. * Update PDF Options
  178. * follow new BrowserWindow option naming
  179. * remove useless mocha opt
  180. * implement `electronPath` option
  181. * Fixed 'args is not defined' error for paths option
  182. # 2.0.9 / 2015-12-09
  183. * add Nightmare.action(name, action|namespace) and nightmare.use(plugin)
  184. * bump dependencies
  185. * Add header() method, and optional headers param to goto()
  186. * "manipulation" fixture fixed to correctly test horizontal scrolling
  187. * Viewport size changed in the 'should set viewport' test (for test passing on small screen resolution).
  188. * prevent alerts from blocking
  189. * Add support to wait(fn) for passing arguments from node context to browser context, just like evaluate()
  190. * better cross-platform tests
  191. * add mousedown event
  192. * add nightmare.cookies.get(...) and nightmare.cookies.set(...) support
  193. * improve screenshot documentation
  194. * remove `.only` from buffered image test case
  195. * return a buffered image if no path is provided
  196. * Allow overriding Electron app paths
  197. * Update mocha-generators so tests run
  198. # 2.0.8 / 2015-11-24
  199. * pointing to versioned Electron documentation
  200. * Use "did-stop-loading" event in "continue"
  201. * Fix menu sub-section URL in documentation
  202. * updating yahoo mocha example so it works with yahoo's changes, fixes #275
  203. * adding a more complete example, fixes #295
  204. * updating atom events links, fixes #312 and #258
  205. * set make test as the npm test target
  206. * log and error event clean up
  207. * Added license to package.json
  208. * replace co-mocha w/ mocha-generators
  209. * Allow for user-specified web-preferences options.
  210. * Add test case for 'type' The test case of 'type and click' doesn't ensure 'type' works
  211. * Remove old evaluate method, fix #257
  212. # 2.0.7 / 2015-10-01
  213. * updated and clarified docs
  214. * fixed package.json description, thanks @tscanlin
  215. * better error handling for ipc, thanks @davidnaas
  216. # 2.0.6 / 2015-09-25
  217. * changing the tests to point to github to avoid the great firewall fix #249
  218. * Use node-integration for electron, fix scripts loading fix #242 #247
  219. * Remove after and util in test/index.js
  220. * adding windows debug hint
  221. # 2.0.5 / 2015-09-20
  222. * adding .useragent() support back, thanks @jefeweisen!
  223. # 2.0.4 / 2015-09-20
  224. * improving logging for screenshot, events and goto
  225. # 2.0.3 / 2015-09-19
  226. * improving test cleanup, thanks @fritx!
  227. * bumping electron from 0.32.2 to 0.33.0
  228. # 2.0.2 / 2015-09-13
  229. * improving tests for rendering
  230. * adding support for screenshot clip rect #107
  231. # 2.0.1 / 2015-09-13
  232. * updated package.json
  233. * credits to @matthewmueller!
  234. # 2.0.0 / 2015-06-01
  235. * see #200 for details
  236. * added generator love
  237. * switched to electron to speed things up
  238. * many many thanks to @matthewmueller!
  239. # 1.8.1 / 2015-04-27
  240. * Fix escaping of selectors in .wait(selector) thanks @thotypous
  241. * Updated Mocha link thanks @mortonfox
  242. # 1.8.0 / 2015-03-23
  243. * handling phantom crashes more gracefully
  244. * fixing tests by using a local server and static fixtures
  245. * feat(docs): add google-oauth2 plugin
  246. * fixing links
  247. * clearer ToC and clearer evaluate docs from #89
  248. # 1.7.0 / 2015-01-26
  249. * adding pdf ignore, fixing test timeout
  250. * adding new resourceRequestStarted event for executing in phantomjs context
  251. * Add scrollTo feature. Resolves #130.
  252. * Adds zoom feature. Resolves #136.
  253. * added error handling for requiring file extension in screenshot
  254. * added documentation for supported filetypes for .screenshot
  255. * add json parsing guard to test
  256. * adding link to tests for more examples
  257. * updating readme with clearer function lists and sections, and mocha test example
  258. * add readme for headers()
  259. * add tests for headers()
  260. * add headers method
  261. * upping timeouts
  262. * Add ability to save an A4 sized PDF
  263. * add check and select
  264. # 1.6.5 / 2014-11-11
  265. * updating tests and fixing global port issue
  266. * Adding sequential test case
  267. * adding multiple clicks across multiple pages test
  268. # 1.6.4 / 2014-11-10
  269. * fixing non-existent elem issue in .visible(), fixes #108
  270. # 1.6.3 / 2014-11-09
  271. * bumping circleci test version and timeout
  272. * eliminating global phantom instance and state, fixes #104
  273. # 1.6.2 / 2014-11-09
  274. * .type() now uses uses phantom's sendEvent to trigger keypress events. Fixes #81. (by @johntitus)
  275. # 1.6.1 / 2014-11-09
  276. * bumping phantom to ~0.7.0, fixes #101
  277. * readme tweaks
  278. * adding resourceError event to docs
  279. # 1.6.0 / 2014-11-02
  280. * adding timeout handling (by @johntitus)
  281. * cleaning up styles in tests, adding tests for timeout event
  282. # 1.5.3 / 2014-11-02
  283. * Add ability to specify a custom PhantomJS path (by @kevva)
  284. # 1.5.2 / 2014-11-02
  285. * updating readme to explain .on() before .goto()
  286. * fixing callbacks for .wait()
  287. * adding grep to makefile tests
  288. * adding check for file existence before file upload, fixes #11
  289. # 1.5.1 / 2014-10-26
  290. * making clicks cancelable to allow for ajax forms
  291. # 1.5.0 / 2014-10-22
  292. * adding docs and support for ssl, proxy and other cli args
  293. # 1.4.0 / 2014-10-22
  294. * added .exists() (by @johntitus)
  295. * Added .visible(selector) (by @johntitus)
  296. * Added .authentication(user,password) (by @johntitus)
  297. # 1.3.3 / 2014-10-20
  298. * fix for 'Option to run phantom without weak' (by @securingsincity)
  299. # 1.3.2 / 2014-10-15
  300. * clarifying a readme example, see #55
  301. # 1.3.1 / 2014-10-15
  302. * expanding the readme (by @johntitus)
  303. # 1.3.0 / 2014-10-15
  304. * adding a on() action to handle phantom page events (by @johntitus)
  305. # 1.2.0 / 2014-10-15
  306. * adding .forward() method with test (by @stevenmiller888)
  307. * adding .inject() action, test, and updated readme (by @johntitus)
  308. # 1.1.1 / 2014-10-08
  309. * adding wait(selector) test and clojure fix, fixes #39
  310. * adding extraction readme example
  311. * adding caveat to viewport docs, fixes #33
  312. * updating readme example
  313. * Remove OSX .DS_Store file
  314. # 1.1.0 / 2014-10-05
  315. * changing run structure to auto-terminate phantomjs instances
  316. * naming goBack to back
  317. # 1.0.5 / 2014-09-30
  318. * added .goBack()
  319. # 1.0.4 / 2014-05-12
  320. * contain zalgo
  321. # 1.0.3 / 2014-05-12
  322. * cleaning up run based on ians feedback
  323. # 1.0.2 / 2014-05-12
  324. * fixing concat in place
  325. * cleaning up naming, whitespace, structure.. thanks @ianstormtaylor!
  326. * fixing readme and history
  327. # 1.0.1 / 2014-05-10
  328. * fixing queueing and .use() call order
  329. * Merge pull request #15 from queckezz/fix/use-queueing
  330. * fixing tests
  331. * fixing history
  332. * queue .use(). Closes #10
  333. # 1.0.0 / 2014-05-10
  334. * renaming methods, fixes #18 and #19
  335. * Merge pull request #17 from queckezz/update/phantomjs-node
  336. * Merge pull request #16 from stevenschobert/master
  337. * update phantomjs-node for 0.11.x support
  338. * add instance option for phantomjs port
  339. # 0.1.7 / 2014-04-14
  340. * Merge pull request #14 from queckezz/update/allow-no-args
  341. * allow no args and fix debug for .evaluate()
  342. * fixing history
  343. # 0.1.6 / 2014-04-13
  344. * adding .url(), more debug()s and a test for .url()
  345. * fxiing histoyr
  346. # 0.1.5 / 2014-04-12
  347. * fixing impatient to only apply to upload since it breaks wait
  348. * fixing history
  349. # 0.1.4 / 2014-04-12
  350. * making callbacks impatient based on timeouts
  351. * fixing history
  352. # 0.1.3 / 2014-04-12
  353. * fixing upload not having a callback
  354. * fixing history
  355. # 0.1.2 / 2014-04-11
  356. * clarifying readme
  357. * adding refresh method and wait for fn on page refresh
  358. * reworking wait function to make room for a new wait overload
  359. * refactoring tests into sections
  360. * fixing history
  361. # 0.1.1 / 2014-04-08
  362. * adding test to duplicate queue ordering issue, fixing issue, fixes #9
  363. * adding nightmare-swiftly plugin mention with docs
  364. * fixing history
  365. # 0.1.0 / 2014-04-07
  366. * adding .use() to docs
  367. * Merge pull request #8 from segmentio/use-rewrite
  368. * adding test for .use() pluggability
  369. * changes .run() to .evaluate(), removes .error() and cleans up internal wrapping
  370. * fixing history
  371. # 0.0.13 / 2014-04-07
  372. * Merge pull request #6 from segmentio/phantomjs-node
  373. * fixing done callback, fixing agent setting and adding tests. fixes #4, #2, #3.
  374. * fixing run callback hanging, fixes #3
  375. * experimenting with phantomjs-node, for #5
  376. * Merge branch 'master' of https://github.com/segmentio/nightmare
  377. * Update Readme.md
  378. # 0.0.12 / 2014-04-06
  379. * adding .viewport() and .agent(), fixes #2
  380. # 0.0.11 / 2014-04-06
  381. * making debug output consistent
  382. * consistent naming
  383. * fixing .wait() readme docs
  384. * fixing history
  385. # 0.0.10 / 2014-04-06
  386. * adding .run() method with docs and test. fixes #1
  387. * Update Readme.md
  388. * fixing history
  389. # 0.0.9 / 2014-04-05
  390. * adding more debug statements
  391. * fixing history
  392. # 0.0.8 / 2014-04-05
  393. * updating readme for screen and options
  394. * fixing timeout and adding debug for .screen() method
  395. * fixing history
  396. # 0.0.7 / 2014-04-05
  397. * setting viewport
  398. * fixing history
  399. # 0.0.6 / 2014-04-05
  400. * adding better debug logs for page load detection
  401. * fixing history
  402. # 0.0.5 / 2014-04-05
  403. * fixing history
  404. # 0.0.4 / 2014-04-05
  405. * fixing main for require to work
  406. * fixing history
  407. # 0.0.3 / 2014-04-05
  408. * fixing tests and getting screen working
  409. * fixing history again
  410. # 0.0.2 / 2014-04-05
  411. * pkilling phantomjs more aggressively
  412. * fixing phantom singletons
  413. * fixing history.md
  414. # 0.0.1 / 2014-04-05
  415. * updating readme
  416. * removing unneded circleci stuff
  417. * adding circle badge to readme
  418. * adding circle.yml
  419. * adding tests with lots of fixes everywhere
  420. * filling in remaining parts of api
  421. * filling in wait function
  422. * filling in lots of the first draft
  423. * adding new done method
  424. * blocks sync
  425. * mvoing
  426. * all before proceding
  427. * copyright
  428. * copy
  429. * adding more wait options
  430. * adding in scaffolding and readme outline