diff --git a/.github/workflows/test-actions.yml b/.github/workflows/test-actions.yml index 905b81f..4a59f2e 100644 --- a/.github/workflows/test-actions.yml +++ b/.github/workflows/test-actions.yml @@ -6,7 +6,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - node-version: [18.x, 20.x] + node-version: [18.x, 20.x, 22.x] env: OS: ${{ matrix.os }} steps: diff --git a/.markdownlint.json b/.markdownlint.json index 2799323..f4f6c85 100644 --- a/.markdownlint.json +++ b/.markdownlint.json @@ -1,6 +1,6 @@ { "default": true, - "no-duplicate-header": { + "no-duplicate-heading": { "siblings_only": true } } diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b4e8b9..19a8b12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,11 +5,29 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.5.0] - 2024-06-07 + +### Changed + +- changed options to agent.get +- use previous retrieved URL as base for partial URLs in fetchPage +- updated "Mac Safari" agent string +- removed field.rawValue property +- change fiel.value from property to function +- updated to use Node.JS v22 + +### Added + +- handle binary mime types +- handle redirects in fetchPage +- debug option to fetchPage and submit +- agent.getCookies function + ## [1.4.1] - 2024-04-25 ### Changed -- change package main to lib/mechanize.js +- changed package main to lib/mechanize.js ## [1.4.0] - 2024-04-25 @@ -220,7 +238,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial code -[Unreleased]: https://github.com/srveit/mechanize-js/compare/v1.2.1...HEAD +[1.5.0]: https://github.com/srveit/mechanize-js/compare/v1.4.1...v1.5.0 +[1.4.1]: https://github.com/srveit/mechanize-js/compare/v1.4.0...v1.4.1 +[1.4.0]: https://github.com/srveit/mechanize-js/compare/v1.3.0...v1.4.0 +[1.3.0]: https://github.com/srveit/mechanize-js/compare/v1.2.1...v1.3.0 [1.2.1]: https://github.com/srveit/mechanize-js/compare/v1.2.0...v1.2.1 [1.2.0]: https://github.com/srveit/mechanize-js/compare/v1.1.0...v1.2.0 [1.1.0]: https://github.com/srveit/mechanize-js/compare/v1.0.3...v1.1.0 diff --git a/README.md b/README.md index 3cd35b8..b03d578 100644 --- a/README.md +++ b/README.md @@ -84,20 +84,14 @@ This borrows heavily from Aaron Patterson's [node-version-url]: https://nodejs.org/en/download/ [github-build-badge]: https://img.shields.io/github/workflow/status/srveit/mechanize-js/build-actions [github-build-url]: https://github.com/srveit/mechanize-js/actions/workflows/test-actions.yml -[coveralls-badge]: https://coveralls.io/repos/github/srveit/mechanize-js/badge.svg?branch=master -[coveralls-url]: https://coveralls.io/github/srveit/mechanize-js?branch=master [code-climate-badge]: https://img.shields.io/codeclimate/maintainability/srveit/mechanize-js.svg [code-climate-url]: https://codeclimate.com/github/srveit/mechanize-js [gitter-badge]: https://img.shields.io/gitter/room/mechanize-js/Lobby.svg [gitter-url]: https://gitter.im/mechanize-js/Lobby -[bithound-badge]: https://www.bithound.io/github/srveit/mechanize-js/badges/score.svg -[bithound-url]: https://www.bithound.io/github/srveit/mechanize-js [codecov-badge]: https://img.shields.io/codecov/c/github/srveit/mechanize-js/master.svg?style=flat [codecov-url]: https://codecov.io/github/srveit/mechanize-js [license-badge]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat [license-url]: http://choosealicense.com/licenses/mit/ -[canonical-badge]: https://img.shields.io/badge/code%20style-canonical-brightgreen.svg?style=flat -[canonical-url]: https://github.com/gajus/eslint-config-canonical [snyk-badge]: https://snyk.io/test/github/srveit/mechanize-js/badge.svg [snyk-url]: https://snyk.io/test/github/srveit/mechanize-js @@ -114,7 +108,8 @@ https://sonarcloud.io/dashboard/index/srveit:mechanize [![Readme](https://img.shields.io/badge/readme-tested-brightgreen.svg?style=flat)](https://www.npmjs.com/package/reamde) [![Doug's Gratipay][gratipay-image-dougwilson]][gratipay-url-dougwilson] [![API documented](https://img.shields.io/badge/API-documented-brightgreen.svg)](https://raszi.github.io/node-tmp/) -[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/thlorenz/convert-source-map/trend.png)](https://bitdeli.com/free "Bitdeli Badge") +[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/thlorenz/convert-source-map/trend.png)] +(https://bitdeli.com/free "Bitdeli Badge") [![Bountysource](https://www.bountysource.com/badge/tracker?tracker_id=282608)](https://www.bountysource.com/trackers/282608-eslint?utm_source=282608&utm_medium=shield&utm_campaign=TRACKER_BADGE) [![Bower version](https://img.shields.io/bower/v/spdx-license-ids.svg)](https://github.com/shinnn/spdx-license-ids/releases) [![Codeship Status for ashtuchkin/iconv-lite](https://www.codeship.com/projects/81670840-fa72-0131-4520-4a01a6c01acc/status)](https://www.codeship.com/projects/29053) diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..8f04215 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,10 @@ +coverage: + status: + project: + default: + target: 50% + threshold: 1% + patch: + default: + target: 50% + threshold: 1% diff --git a/docs/global.html b/docs/global.html index 0ee4a4c..c1c7c1e 100644 --- a/docs/global.html +++ b/docs/global.html @@ -208,7 +208,7 @@