Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
fix(tags): Clone tags option before adding origin tag
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbrea committed Mar 22, 2020
1 parent e366d6a commit f11bc4d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
### Removed

## [2.0.1] - 2020-03-22

### Fixed
- fix(tags): Clone tags option before adding origin tag.

## [2.0.0] - 2020-03-14

> DISCLAIMER: This major release still maintains the concept of the previous "data-provider" versions, but a lot of BREAKING CHANGES have been made to the interfaces in order to improve the usage experience, apart of performance improvements and fixes. A chapter "how to migrate from 1.x" will be added to the documentation website to facilitate the migration to this new version, as the maintenance of 1.X versions will be stopped soon. Read Date Provider Changelog and docs in https://www.data-provider.org for further info.
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@data-provider/memory",
"version": "2.0.0",
"version": "2.0.1",
"description": "Memory origin addon for Data Provider",
"keywords": [
"data-provider",
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sonar.organization=data-provider
sonar.projectKey=data-provider-memory
sonar.projectVersion=2.0.0
sonar.projectVersion=2.0.1

sonar.sources=src,test
sonar.exclusions=node_modules/**
Expand Down
2 changes: 1 addition & 1 deletion src/Memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const TAG = "memory";
class Memory extends Provider {
constructor(id, options, query) {
const opts = options || {};
const tags = opts.tags || [];
const tags = opts.tags ? [...opts.tags] : [];
tags.unshift(TAG);
super(id, { ...opts, tags }, query);
this._data = this.initialState.data;
Expand Down

0 comments on commit f11bc4d

Please sign in to comment.