Skip to content

Latest commit

 

History

History
110 lines (61 loc) · 3.37 KB

CHANGELOG.md

File metadata and controls

110 lines (61 loc) · 3.37 KB

@ogma/cli

2.2.1

Patch Changes

  • 02cd763: Upgrade reflect-metadata to v0.2.1 and update peer dependency range

2.2.0

Minor Changes

  • 1008775: handle that time can be a number

Patch Changes

2.1.7

Patch Changes

  • dd5215e: Security updates of dependencies. Should be nothing major here.
  • Updated dependencies [dd5215e]

2.1.6

Patch Changes

  • 89504a0: Change @ogma/cli shebang to be more portable across different OS and environment.

2.1.5

Patch Changes

  • 7b5781b: CLI no longer dies on newlines

2.1.4

Patch Changes

  • 7a329ce: Add dependency on reflect-metadata

2.1.2

Patch Changes

  • e7619e6: Trying a second publish to publish the js not ts

2.1.1

Patch Changes

  • bc6cdc8: Fix a bad publish from an incorrect workspace file

2.1.0

Minor Changes

  • 81b3501: Allow the CLI to accept process.stdin so it can be piped to.

    Now, if you want to have json: true always set in your Ogma config, but you still want to get the pretty dev logs, you can use something to the extent of pnpm start:dev | ogma and ogma will pretty print each line as it comes in.

2.0.0

Major Changes

  • 8bea02f: Release of @ogma/common and @ogma/styler. Upgrade @ogma/nestjs-module to be 100% compatible with Nest's logger

    Breaking Changes

    • @ogma/logger now depends on @ogma/common and @ogma/styler for types and string styling, instead of managing it on its own
    • @ogma/nestjs-module now accepts trace as the second parameter to error instead of context. meta can still be passed as a second parameter too or it can be a third parameter.
    • @ogma/logger now sets an ool property when logging in JSON mode to accommodate when using a custom log map
    • @ogma/logger no longer needs the stream property to have a hasColor function
    • @ogma/cli now reads from the ool property instead level to allow writing back to Ogma's standard format

    Features

    • @ogma/logger now correctly logs Error objects the same way process.stdout does instead of logging {}
    • @ogma/logger can accept a levelMap property for custom level mapping
    • @ogma/logger's stream option can now have a getColorDepth property method, but it is not necessary

    Why

    I wanted to be able to have full control over string styles and this gave me a great chance to learn about SGRs and how they work. Along with that, this gave me the perfect opportunity to make some changes to the logger to be more compliant with Nest's logger and have better compatibility with it.

    How to Upgrade

    I tried to make this is painless as possible in terms of breaking changes. For the most part, you should just be able to upgrade with no problems. If you have a stream with hasColor you will need to remove that method. You may want to add in the getColorDepth method, but can also just use FORCE_COLOR if necessary.

Patch Changes

1.0.0

Major Changes

  • bbf66f6: Major release of @ogma

    The ogma command has been moved from @ogma/logger to @ogma/cli. There are no other breaking changes. This change was made to keep the package size as small as possible and to keep the code clean and maintainable.

Patch Changes