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

Track changes #706

Merged
merged 4 commits into from
Oct 5, 2023
Merged

Track changes #706

merged 4 commits into from
Oct 5, 2023

Conversation

Grafikart
Copy link
Collaborator

@Grafikart Grafikart commented Sep 28, 2023

Allow tracking changes done inside lunatic.

Changelog

  • Add a new option for trackChanges for useLunatic() options
  • Add a new method getChangedData(reset: boolean) that work like getData() but will only return changed values (if reset is set to true, the change list will be reset)
  • Add a new method resetChangedData() that clear the change list

Example

You can look at the test suite to see how it work

Fix #705

@Grafikart Grafikart changed the base branch from main to develop September 28, 2023 12:31
@laurentC35
Copy link
Contributor

Seems to fix also #645

@Grafikart Grafikart force-pushed the feat/change-tracking branch from e9eb4d0 to 2efcb4c Compare October 4, 2023 14:10
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 5, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@laurentC35 laurentC35 merged commit 8f19253 into develop Oct 5, 2023
9 checks passed
@Grafikart Grafikart deleted the feat/change-tracking branch October 5, 2023 16:03
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.

Track changed variable
2 participants