-
Notifications
You must be signed in to change notification settings - Fork 386
fix(highlight): wrong parsing between client and server #183
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although @vvo said that the timestamp is against an attack vector, I think it's fine not to have it here.
Deploy preview ready! Built with commit d190ba6 |
I think this is a breaking change though, you could do |
@Haroenv => for people using regex and |
In Yarn I imported the |
BREAKING CHANGE: We remove the timestamp present in our highlight preTag and postTag. If you were using regex to parse the highlighting results then you'll need to adapt it as now it's only "ais-highlight".
d4ba75f
to
d190ba6
Compare
@Haroenv Is it because you need arrays support? We should be careful if we move the file then. |
yes, for arrays I |
Also if people were importing and using stuff that is not documented this is not a breaking change I believe. This was not public API. |
<a name="4.1.0-beta.3"></a> # [4.1.0-beta.3](v4.1.0-beta.2...v4.1.0-beta.3) (2017-07-25) ### Bug Fixes * **error:** reset error when receiving results of a query (not when sending it) (#179) ([bb12c29](bb12c29)) * **highlight:** wrong parsing between client and server (#183) ([2daae70](2daae70)) * **poweredBy:** SSR compatibility (#181) ([ec0fa8a](ec0fa8a)) ### BREAKING CHANGES * **highlight:** We remove the timestamp present in our highlight preTag and postTag. If you were using regex to parse the highlighting results then you'll need to adapt it as now it's only "ais-highlight".
See #168
The Server-side html is rendered perfectly but then when rendered on the client using the
resultsState
props, results are containing the server old timestamp and<Highlight>
the new client one. The<Highlight/>
component then doesn't see any highlighted values and that's why we can see the little glitch.For now, the solution is to remove the
timestamp
when dealing with highlighting tags.