Skip to content

Releases: wheelercj/pm2md

v0.0.11

11 Jan 20:49
Compare
Choose a tag to compare

Changelog

  • 5b45f5c Bump version
  • f74a2e6 Follow suggestions made by go-staticcheck
  • 4313192 Update the version of Go used in the release action

v0.0.8

11 Sep 17:15
Compare
Choose a tag to compare

Changelog

  • fd96647 Add a dash and space between section titles and descriptions
  • 7e230a9 Add a table of contents compatible with GitHub rendering to default.tmpl
  • 5e10f89 Add indentation to some HTML elements
  • 0a1321a Add missing copyright notice to json_to_md.go
  • 0755ddb Add support for Postman folders
  • c3164f1 Bump version to v0.0.8
  • e0e1a50 Change from using structs to maps
  • 7ee6ba5 Create function loadTmpl for simplicity and testing
  • d1be401 Create function runFunc and tests for it
  • 127f8f9 Create the test subcommand for testing custom templates
  • ab891c8 Fix bug that created garbage files in some cases
  • 426d08a Improve how the default template is organized
  • 1e77a89 Improve sample response header format
  • 81c649c Improve wording
  • 7055fe1 Make the recursive template the default and name the old default minimal
  • 38021d3 Make the type definitions in types.go more specific
  • bbc3569 Make the type of Request.Headers more specific
  • e56d2da Merge branch 'tests'
  • 1d8d573 Move function TestExportDefaultTemplate to utils_test.go
  • dede786 Remove a duplicate word in a comment
  • 512f226 Remove unnecessary spaces from template actions
  • ce8319d Rename a few files
  • 3d8b037 Rename the Route type to Endpoint
  • 952eb7c Say Postman export JSON schema v2.1 instead of v2.1.0
  • e7ac51f Show descriptions for the API, items, and requests in the output
  • 22e43b8 Simplify error message
  • bae0fb9 Start refactor to further increase test coverage

v0.0.7

30 Aug 21:07
Compare
Choose a tag to compare

Changelog

  • ae5fcf1 Add a "Go reference" badge/button to README.md
  • 75f7a82 Add a show-response-names flag for including response names in output
  • 2d4b77d Add a flag for saving the default template as a separate file
  • 8181337 Add a gif showing how to export from Postman to README.md
  • 502fc7f Add a link to the GitHub page in the help output
  • 7d1404b Add an example of the details HTML element to README.md
  • b2d5760 Add comments to ScanStdin and exportDefaultTemplate
  • b85a72b Add formatHeaderLink to funcMap for creating a table of contents
  • 9a6a894 Add quotes around new template names
  • 42731e5 Add the -g alias to the --get-template flag
  • c0a0bda Add usage examples to README.md
  • 67c8d06 Allow a single number to be given as a status range
  • a73b77c Allow the user to choose the output destination
  • 2856860 Allow the user to provide their own custom template
  • 10b56be Allow the user to send input from stdin with - as the input file
  • 1eeafe3 Bump version to v0.0.7
  • 031b95e Change interactive file replacement confirmation to requiring a flag
  • b2cefdc Clarify readme section title
  • 4de5671 Ensure all generated file names are compatible with all major platforms
  • c3bd702 Fix a broken link and improve instructions in README.md
  • f3542c3 Format types.go
  • ac953f2 If no output file name can be found, name the file collection.md
  • bf62a29 Improve some test variable names
  • 9c00fc9 Increase test coverage
  • 3bda13f Link to Command Line Interface Guidelines by Prasad et al.
  • 0007545 Link to types.go in README.md
  • 4266e81 Make less important outputs go to stderr
  • 121ba63 Make showing sample response names the default
  • e0f537d Move assert functions to the test file they're used in
  • e7603f5 Remove outdated command example
  • 783af67 Rename collection_default.tmpl to default.tmpl
  • 3ba37ce Rename project to pm2md
  • b11851b Rename the collection template to the default collection template
  • ee29449 Rename variable Header to Headers for clarity
  • 7e83216 Replace a colon with a period in README.md
  • be68489 Require exactly 1 argument instead of allowing and ignoring more
  • 229a849 Say in the output there's no response body when there isn't one
  • f0e239f Show each sample response's title in the output
  • b53257c Simplify the routes and responses types slightly
  • 0df675e Use trim markers to make the default template easier to read

v0.0.6

22 Aug 20:32
Compare
Choose a tag to compare

Changelog

  • decb443 Add a test for parseCollection
  • 99fda44 Add documentation for assertPanic
  • 912c406 Add missing return
  • d8c0454 Add tests for parseStatusRanges
  • 1fbd6ca Bump version to v0.0.6
  • 2b633af Change panics in jsonToMdFile to return statements
  • d303475 Comment out the assumeSafeHtml template function
  • 6122300 Fix version number
  • 798b8c8 Make assertPanic variadic and reflective
  • 4367891 Make jsonToMdFile return an error if given an invalid collection
  • 20871eb Only run the TestJsonToMdFile test if the unique file creation tests pass
  • ac1f53d Refactor to use the Cobra CLI framework
  • ce7793c Split a jsonToMdFile function out of the main function and test it
  • e01e86b Test filterResponses
  • a748869 Test getVersion without any version
  • 4b09ca8 Test jsonToMdFile with invalid JSON
  • 224196f Test parseCollection with an old schema
  • 12484f4 Test parseStatusRanges with invalid input

v0.0.5

18 Aug 19:34
Compare
Choose a tag to compare

Changelog

  • 40dbf59 Add license notices as recommended in the Apache License
  • e9e35a7 Improve flags and fix two bugs in filterResponses
  • 7a2dfe6 Split the main function into multiple functions
  • 5183f7c Start adding command-line flags

v0.0.4

16 Aug 22:18
Compare
Choose a tag to compare

Changelog

  • 7ff7d8b Add a note about exporting from Postman
  • 3ae3c73 Add tests for utils.go
  • f8603f9 Follow the godoc comment conventions
  • 34e0c31 Improve instructions and error messages
  • ae246dd Link to a page with many resources for learning Go
  • 8f81cc7 Make the getVersion function do only one thing
  • cddabe5 Move the notes about templates
  • e1d70e9 Panic instead of returning an error on a potential programmer mistake
  • 80b1c06 Remove unnecessary dependencies: flag, log, and log/slog
  • e93bd59 Simplify comment
  • 8d39453 Simplify instructions
  • d4c61a9 Simplify template conditional statement
  • 4d879b2 Update README.md with new download instructions

v0.0.3

15 Aug 08:30
Compare
Choose a tag to compare

Changelog

  • 9dae91e Add missing struct tag
  • d3631f4 Install GoReleaser
  • ebdfe9d Link to a guide to struct tags
  • fba0a54 Remove limit on attempts to find a unique file name
  • ea464ec Remove version number from README.md
  • ef5de9b Simplify source installation instructions
  • c19da26 Update download link

v0.0.2

14 Aug 21:17
Compare
Choose a tag to compare

This release adds sample request bodies, when present, to the generated output.

v0.0.1

14 Aug 06:08
Compare
Choose a tag to compare
Add more installation instructions