Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thoughts about v4 #228

Open
caiogondim opened this issue Mar 3, 2020 · 1 comment
Open

Thoughts about v4 #228

caiogondim opened this issue Mar 3, 2020 · 1 comment

Comments

@caiogondim
Copy link
Owner

Let's discuss here about possible features for a v4.

Interceptors

Implement the interceptor pattern so the lib is more extensible.

const logger = logdown('foo;)

const silenceLorem = ({ instance, methodName, args }) => {
  if (args[0] === 'lorem') return
  return { instance, methodName, args }
}

logger.log('lorem') // prints 'lorem'
looger.interceptors.inject(silenceLorem)
logger.log('lorem') // doesnt print 'lorem'
logger.interceptors.eject(silenceLorem)
logger.log('lorem') // prints 'lorem'

Deprecate transports

We could use interceptors which is a more generic API.

TypeScript

I'm now on board of the TS hype train.

Drop IE11 support

It's finally time.

@caiogondim caiogondim changed the title Thoughts abbout v4 Thoughts about v4 Mar 3, 2020
@jcheenatcode
Copy link

This library is really concise & does its work very, so I though I'll share my thoughts I had for this topic,

Will be willing to contribute, if needed.

Thanks

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

No branches or pull requests

2 participants