Skip to content

Prepare 5.0.0#389

Merged
Apollon77 merged 10 commits intowinstonjs:masterfrom
Apollon77:update
Feb 9, 2024
Merged

Prepare 5.0.0#389
Apollon77 merged 10 commits intowinstonjs:masterfrom
Apollon77:update

Conversation

@Apollon77
Copy link
Copy Markdown
Collaborator

@Apollon77 Apollon77 commented Feb 7, 2024

This PR includes:

closes #366

Resolves error cases like

```
ENOENT: no such file or directory, unlink '/opt/iobroker/log/iobroker.2023-01-04.log'
Error: ENOENT: no such file or directory, unlink '/opt/iobroker/log/iobroker.2023-01-04.log'
    at Object.unlinkSync (node:fs:1767:3)
    at WriteStream.<anonymous> (/opt/iobroker/node_modules/winston-daily-rotate-file/daily-rotate-file.js:140:28)
    at WriteStream.emit (node:events:525:35)
    at WriteStream.emit (node:domain:489:12)
    at finish (node:internal/streams/writable:756:10)
    at finishMaybe (node:internal/streams/writable:741:9)
    at afterWrite (node:internal/streams/writable:506:3)
    at onwrite (node:internal/streams/writable:479:7)
    at node:internal/fs/streams:416:5
    at FSReqCallback.wrapper [as oncomplete] (node:fs:816:5)

```
Copy link
Copy Markdown
Collaborator

@foxriver76 foxriver76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM in general.

However, we should clarify the README part about the error handler or re-throw to match the behavior.

Not sure about the port to ES6 part or did you mean the arrow functions?

@Apollon77
Copy link
Copy Markdown
Collaborator Author

Not sure about the port to ES6 part or did you mean the arrow functions?

As written above I "Only" changed to lat/const and arrow functions ... ok not really es6 class because I'm not sure if this is compatible with the base "prototype" (aka winston-transport). This is an open topic for later

@Apollon77
Copy link
Copy Markdown
Collaborator Author

@mattberther For the relöeases to work it would need a Github Actions secreat with name NPM_TOKEN with an npmjs automation token in there ... you could do with yours or we find a way how I can send you one

@DABH
Copy link
Copy Markdown

DABH commented Feb 9, 2024

@Apollon77 As mentioned in #388 , you should have admin access for the repo now to add your own secrets as you see fit...

Copy link
Copy Markdown

@DABH DABH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I give my stamp with the caveat that I don't use this transport in my apps, but the changes here generally look safe to me.

@Apollon77
Copy link
Copy Markdown
Collaborator Author

Thank you, then I will prepare the secret and merge here and then release a 5.0 ... then we are also safe and we can update ioBroker to proof it still working

@Apollon77 Apollon77 merged commit ae6ba2d into winstonjs:master Feb 9, 2024
@Apollon77 Apollon77 deleted the update branch February 9, 2024 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants