Skip to content

Added years logic#25

Open
KieranDotCo wants to merge 1 commit into
wildlyinaccurate:masterfrom
KieranDotCo:master
Open

Added years logic#25
KieranDotCo wants to merge 1 commit into
wildlyinaccurate:masterfrom
KieranDotCo:master

Conversation

@KieranDotCo
Copy link
Copy Markdown

In the current filter there is no logic for working out 'X years ago', I've made a change and modified tests, feel free to close if there is a reason that support for 'X years ago' doesn't exist.

@wildlyinaccurate
Copy link
Copy Markdown
Owner

Hey, thanks for this! I'm all for supporting "X years ago". There's not any particular reason for why it was missing.

There are a bunch of applications that use this filter and I don't want to potentially break their UI, so I'm wondering how we can merge this without negatively affecting existing users of this filter. I guess we could:

  • Do a major version bump to 3.0.0. It's technically correct from a semver point of view but it seems a bit extreme for such a small change.
  • Put this functionality behind a toggle. This keeps backwards compatibility but maybe makes using the filter more clunky than it should be?

What do you think?

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.

2 participants