{"action":"created","comment":{"url":"https://api.github.com/repos/TechnologyAdvice/fixd/pulls/comments/121267991","pull_request_review_id":43307718,"id":121267991,"diff_hunk":"@@ -1,14 +1,55 @@\n-const fs = require('fs')\n-const path = require('path')\n-const fixd = require('./src/index')\n+'use strict'\n+const merge = require('lodash.merge')","path":"fixd.js","position":5,"original_position":5,"commit_id":"ea8e45a50f3e2cdb8210bf78b75d9671bebca837","original_commit_id":"ea8e45a50f3e2cdb8210bf78b75d9671bebca837","user":{"login":"davezuko","id":6439050,"avatar_url":"https://avatars0.githubusercontent.com/u/6439050?v=3","gravatar_id":"","url":"https://api.github.com/users/davezuko","html_url":"https://github.com/davezuko","followers_url":"https://api.github.com/users/davezuko/followers","following_url":"https://api.github.com/users/davezuko/following{/other_user}","gists_url":"https://api.github.com/users/davezuko/gists{/gist_id}","starred_url":"https://api.github.com/users/davezuko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davezuko/subscriptions","organizations_url":"https://api.github.com/users/davezuko/orgs","repos_url":"https://api.github.com/users/davezuko/repos","events_url":"https://api.github.com/users/davezuko/events{/privacy}","received_events_url":"https://api.github.com/users/davezuko/received_events","type":"User","site_admin":false},"body":"What about `clone` instead of `merge`? That way you can avoid your `Array.isArray` check and defer any polymorphism to lodash. Not a blocker, but an idea.","created_at":"2017-06-10T22:58:31Z","updated_at":"2017-06-10T22:58:31Z","html_url":"https://github.com/TechnologyAdvice/fixd/pull/3#discussion_r121267991","pull_request_url":"https://api.github.com/repos/TechnologyAdvice/fixd/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/TechnologyAdvice/fixd/pulls/comments/121267991"},"html":{"href":"https://github.com/TechnologyAdvice/fixd/pull/3#discussion_r121267991"},"pull_request":{"href":"https://api.github.com/repos/TechnologyAdvice/fixd/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/TechnologyAdvice/fixd/pulls/3","id":124931071,"html_url":"https://github.com/TechnologyAdvice/fixd/pull/3","diff_url":"https://github.com/TechnologyAdvice/fixd/pull/3.diff","patch_url":"https://github.com/TechnologyAdvice/fixd/pull/3.patch","issue_url":"https://api.github.com/repos/TechnologyAdvice/fixd/issues/3","number":3,"state":"open","locked":false,"title":"feat(freeze): major changes to simplify api, freeze objects","user":{"login":"Fluidbyte","id":1153376,"avatar_url":"https://avatars3.githubusercontent.com/u/1153376?v=3","gravatar_id":"","url":"https://api.github.com/users/Fluidbyte","html_url":"https://github.com/Fluidbyte","followers_url":"https://api.github.com/users/Fluidbyte/followers","following_url":"https://api.github.com/users/Fluidbyte/following{/other_user}","gists_url":"https://api.github.com/users/Fluidbyte/gists{/gist_id}","starred_url":"https://api.github.com/users/Fluidbyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fluidbyte/subscriptions","organizations_url":"https://api.github.com/users/Fluidbyte/orgs","repos_url":"https://api.github.com/users/Fluidbyte/repos","events_url":"https://api.github.com/users/Fluidbyte/events{/privacy}","received_events_url":"https://api.github.com/users/Fluidbyte/received_events","type":"User","site_admin":false},"body":"Major changes to API based on #2:\r\n\r\n- Removes strategy pattern, treating all fixtures the same using `add` method which simply deep clones and freezes\r\n- Adds `mutate` method which will (explicitly) produce a mutated version of an already `add`'d fixture\r\n- Simplifies getting of fixture by removing `create` and instead making the native fixture objects properties of the `fixd` parent\r\n\r\nNeeded before merge:\r\n\r\n- [ ] IRL testing (@levithomason)\r\n- [x] Reworking of documentation\r\n- [x] Additional integration tests","created_at":"2017-06-09T19:04:43Z","updated_at":"2017-06-10T22:58:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3a4559fe8ce48716dd3390c80d19226b93704821","assignee":{"login":"Fluidbyte","id":1153376,"avatar_url":"https://avatars3.githubusercontent.com/u/1153376?v=3","gravatar_id":"","url":"https://api.github.com/users/Fluidbyte","html_url":"https://github.com/Fluidbyte","followers_url":"https://api.github.com/users/Fluidbyte/followers","following_url":"https://api.github.com/users/Fluidbyte/following{/other_user}","gists_url":"https://api.github.com/users/Fluidbyte/gists{/gist_id}","starred_url":"https://api.github.com/users/Fluidbyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fluidbyte/subscriptions","organizations_url":"https://api.github.com/users/Fluidbyte/orgs","repos_url":"https://api.github.com/users/Fluidbyte/repos","events_url":"https://api.github.com/users/Fluidbyte/events{/privacy}","received_events_url":"https://api.github.com/users/Fluidbyte/received_events","type":"User","site_admin":false},"assignees":[{"login":"Fluidbyte","id":1153376,"avatar_url":"https://avatars3.githubusercontent.com/u/1153376?v=3","gravatar_id":"","url":"https://api.github.com/users/Fluidbyte","html_url":"https://github.com/Fluidbyte","followers_url":"https://api.github.com/users/Fluidbyte/followers","following_url":"https://api.github.com/users/Fluidbyte/following{/other_user}","gists_url":"https://api.github.com/users/Fluidbyte/gists{/gist_id}","starred_url":"https://api.github.com/users/Fluidbyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fluidbyte/subscriptions","organizations_url":"https://api.github.com/users/Fluidbyte/orgs","repos_url":"https://api.github.com/users/Fluidbyte/repos","events_url":"https://api.github.com/users/Fluidbyte/events{/privacy}","received_events_url":"https://api.github.com/users/Fluidbyte/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/TechnologyAdvice/fixd/pulls/3/commits","review_comments_url":"https://api.github.com/repos/TechnologyAdvice/fixd/pulls/3/comments","review_comment_url":"https://api.github.com/repos/TechnologyAdvice/fixd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TechnologyAdvice/fixd/issues/3/comments","statuses_url":"https://api.github.com/repos/TechnologyAdvice/fixd/statuses/ea8e45a50f3e2cdb8210bf78b75d9671bebca837","head":{"label":"TechnologyAdvice:feat/freeze","ref":"feat/freeze","sha":"ea8e45a50f3e2cdb8210bf78b75d9671bebca837","user":{"login":"TechnologyAdvice","id":6045188,"avatar_url":"https://avatars3.githubusercontent.com/u/6045188?v=3","gravatar_id":"","url":"https://api.github.com/users/TechnologyAdvice","html_url":"https://github.com/TechnologyAdvice","followers_url":"https://api.github.com/users/TechnologyAdvice/followers","following_url":"https://api.github.com/users/TechnologyAdvice/following{/other_user}","gists_url":"https://api.github.com/users/TechnologyAdvice/gists{/gist_id}","starred_url":"https://api.github.com/users/TechnologyAdvice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TechnologyAdvice/subscriptions","organizations_url":"https://api.github.com/users/TechnologyAdvice/orgs","repos_url":"https://api.github.com/users/TechnologyAdvice/repos","events_url":"https://api.github.com/users/TechnologyAdvice/events{/privacy}","received_events_url":"https://api.github.com/users/TechnologyAdvice/received_events","type":"Organization","site_admin":false},"repo":{"id":90773892,"name":"fixd","full_name":"TechnologyAdvice/fixd","owner":{"login":"TechnologyAdvice","id":6045188,"avatar_url":"https://avatars3.githubusercontent.com/u/6045188?v=3","gravatar_id":"","url":"https://api.github.com/users/TechnologyAdvice","html_url":"https://github.com/TechnologyAdvice","followers_url":"https://api.github.com/users/TechnologyAdvice/followers","following_url":"https://api.github.com/users/TechnologyAdvice/following{/other_user}","gists_url":"https://api.github.com/users/TechnologyAdvice/gists{/gist_id}","starred_url":"https://api.github.com/users/TechnologyAdvice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TechnologyAdvice/subscriptions","organizations_url":"https://api.github.com/users/TechnologyAdvice/orgs","repos_url":"https://api.github.com/users/TechnologyAdvice/repos","events_url":"https://api.github.com/users/TechnologyAdvice/events{/privacy}","received_events_url":"https://api.github.com/users/TechnologyAdvice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TechnologyAdvice/fixd","description":"JavaScript utility for creating better fixtures","fork":false,"url":"https://api.github.com/repos/TechnologyAdvice/fixd","forks_url":"https://api.github.com/repos/TechnologyAdvice/fixd/forks","keys_url":"https://api.github.com/repos/TechnologyAdvice/fixd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TechnologyAdvice/fixd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TechnologyAdvice/fixd/teams","hooks_url":"https://api.github.com/repos/TechnologyAdvice/fixd/hooks","issue_events_url":"https://api.github.com/repos/TechnologyAdvice/fixd/issues/events{/number}","events_url":"https://api.github.com/repos/TechnologyAdvice/fixd/events","assignees_url":"https://api.github.com/repos/TechnologyAdvice/fixd/assignees{/user}","branches_url":"https://api.github.com/repos/TechnologyAdvice/fixd/branches{/branch}","tags_url":"https://api.github.com/repos/TechnologyAdvice/fixd/tags","blobs_url":"https://api.github.com/repos/TechnologyAdvice/fixd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TechnologyAdvice/fixd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TechnologyAdvice/fixd/git/refs{/sha}","trees_url":"https://api.github.com/repos/TechnologyAdvice/fixd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TechnologyAdvice/fixd/statuses/{sha}","languages_url":"https://api.github.com/repos/TechnologyAdvice/fixd/languages","stargazers_url":"https://api.github.com/repos/TechnologyAdvice/fixd/stargazers","contributors_url":"https://api.github.com/repos/TechnologyAdvice/fixd/contributors","subscribers_url":"https://api.github.com/repos/TechnologyAdvice/fixd/subscribers","subscription_url":"https://api.github.com/repos/TechnologyAdvice/fixd/subscription","commits_url":"https://api.github.com/repos/TechnologyAdvice/fixd/commits{/sha}","git_commits_url":"https://api.github.com/repos/TechnologyAdvice/fixd/git/commits{/sha}","comments_url":"https://api.github.com/repos/TechnologyAdvice/fixd/comments{/number}","issue_comment_url":"https://api.github.com/repos/TechnologyAdvice/fixd/issues/comments{/number}","contents_url":"https://api.github.com/repos/TechnologyAdvice/fixd/contents/{+path}","compare_url":"https://api.github.com/repos/TechnologyAdvice/fixd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TechnologyAdvice/fixd/merges","archive_url":"https://api.github.com/repos/TechnologyAdvice/fixd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TechnologyAdvice/fixd/downloads","issues_url":"https://api.github.com/repos/TechnologyAdvice/fixd/issues{/number}","pulls_url":"https://api.github.com/repos/TechnologyAdvice/fixd/pulls{/number}","milestones_url":"https://api.github.com/repos/TechnologyAdvice/fixd/milestones{/number}","notifications_url":"https://api.github.com/repos/TechnologyAdvice/fixd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TechnologyAdvice/fixd/labels{/name}","releases_url":"https://api.github.com/repos/TechnologyAdvice/fixd/releases{/id}","deployments_url":"https://api.github.com/repos/TechnologyAdvice/fixd/deployments","created_at":"2017-05-09T17:35:25Z","updated_at":"2017-05-31T14:09:30Z","pushed_at":"2017-06-10T21:45:13Z","git_url":"git://github.com/TechnologyAdvice/fixd.git","ssh_url":"git@github.com:TechnologyAdvice/fixd.git","clone_url":"https://github.com/TechnologyAdvice/fixd.git","svn_url":"https://github.com/TechnologyAdvice/fixd","homepage":"","size":80,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"TechnologyAdvice:master","ref":"master","sha":"279352f53e59c36409a31f6a23d894eef14484d5","user":{"login":"TechnologyAdvice","id":6045188,"avatar_url":"https://avatars3.githubusercontent.com/u/6045188?v=3","gravatar_id":"","url":"https://api.github.com/users/TechnologyAdvice","html_url":"https://github.com/TechnologyAdvice","followers_url":"https://api.github.com/users/TechnologyAdvice/followers","following_url":"https://api.github.com/users/TechnologyAdvice/following{/other_user}","gists_url":"https://api.github.com/users/TechnologyAdvice/gists{/gist_id}","starred_url":"https://api.github.com/users/TechnologyAdvice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TechnologyAdvice/subscriptions","organizations_url":"https://api.github.com/users/TechnologyAdvice/orgs","repos_url":"https://api.github.com/users/TechnologyAdvice/repos","events_url":"https://api.github.com/users/TechnologyAdvice/events{/privacy}","received_events_url":"https://api.github.com/users/TechnologyAdvice/received_events","type":"Organization","site_admin":false},"repo":{"id":90773892,"name":"fixd","full_name":"TechnologyAdvice/fixd","owner":{"login":"TechnologyAdvice","id":6045188,"avatar_url":"https://avatars3.githubusercontent.com/u/6045188?v=3","gravatar_id":"","url":"https://api.github.com/users/TechnologyAdvice","html_url":"https://github.com/TechnologyAdvice","followers_url":"https://api.github.com/users/TechnologyAdvice/followers","following_url":"https://api.github.com/users/TechnologyAdvice/following{/other_user}","gists_url":"https://api.github.com/users/TechnologyAdvice/gists{/gist_id}","starred_url":"https://api.github.com/users/TechnologyAdvice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TechnologyAdvice/subscriptions","organizations_url":"https://api.github.com/users/TechnologyAdvice/orgs","repos_url":"https://api.github.com/users/TechnologyAdvice/repos","events_url":"https://api.github.com/users/TechnologyAdvice/events{/privacy}","received_events_url":"https://api.github.com/users/TechnologyAdvice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TechnologyAdvice/fixd","description":"JavaScript utility for creating better fixtures","fork":false,"url":"https://api.github.com/repos/TechnologyAdvice/fixd","forks_url":"https://api.github.com/repos/TechnologyAdvice/fixd/forks","keys_url":"https://api.github.com/repos/TechnologyAdvice/fixd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TechnologyAdvice/fixd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TechnologyAdvice/fixd/teams","hooks_url":"https://api.github.com/repos/TechnologyAdvice/fixd/hooks","issue_events_url":"https://api.github.com/repos/TechnologyAdvice/fixd/issues/events{/number}","events_url":"https://api.github.com/repos/TechnologyAdvice/fixd/events","assignees_url":"https://api.github.com/repos/TechnologyAdvice/fixd/assignees{/user}","branches_url":"https://api.github.com/repos/TechnologyAdvice/fixd/branches{/branch}","tags_url":"https://api.github.com/repos/TechnologyAdvice/fixd/tags","blobs_url":"https://api.github.com/repos/TechnologyAdvice/fixd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TechnologyAdvice/fixd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TechnologyAdvice/fixd/git/refs{/sha}","trees_url":"https://api.github.com/repos/TechnologyAdvice/fixd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TechnologyAdvice/fixd/statuses/{sha}","languages_url":"https://api.github.com/repos/TechnologyAdvice/fixd/languages","stargazers_url":"https://api.github.com/repos/TechnologyAdvice/fixd/stargazers","contributors_url":"https://api.github.com/repos/TechnologyAdvice/fixd/contributors","subscribers_url":"https://api.github.com/repos/TechnologyAdvice/fixd/subscribers","subscription_url":"https://api.github.com/repos/TechnologyAdvice/fixd/subscription","commits_url":"https://api.github.com/repos/TechnologyAdvice/fixd/commits{/sha}","git_commits_url":"https://api.github.com/repos/TechnologyAdvice/fixd/git/commits{/sha}","comments_url":"https://api.github.com/repos/TechnologyAdvice/fixd/comments{/number}","issue_comment_url":"https://api.github.com/repos/TechnologyAdvice/fixd/issues/comments{/number}","contents_url":"https://api.github.com/repos/TechnologyAdvice/fixd/contents/{+path}","compare_url":"https://api.github.com/repos/TechnologyAdvice/fixd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TechnologyAdvice/fixd/merges","archive_url":"https://api.github.com/repos/TechnologyAdvice/fixd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TechnologyAdvice/fixd/downloads","issues_url":"https://api.github.com/repos/TechnologyAdvice/fixd/issues{/number}","pulls_url":"https://api.github.com/repos/TechnologyAdvice/fixd/pulls{/number}","milestones_url":"https://api.github.com/repos/TechnologyAdvice/fixd/milestones{/number}","notifications_url":"https://api.github.com/repos/TechnologyAdvice/fixd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TechnologyAdvice/fixd/labels{/name}","releases_url":"https://api.github.com/repos/TechnologyAdvice/fixd/releases{/id}","deployments_url":"https://api.github.com/repos/TechnologyAdvice/fixd/deployments","created_at":"2017-05-09T17:35:25Z","updated_at":"2017-05-31T14:09:30Z","pushed_at":"2017-06-10T21:45:13Z","git_url":"git://github.com/TechnologyAdvice/fixd.git","ssh_url":"git@github.com:TechnologyAdvice/fixd.git","clone_url":"https://github.com/TechnologyAdvice/fixd.git","svn_url":"https://github.com/TechnologyAdvice/fixd","homepage":"","size":80,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TechnologyAdvice/fixd/pulls/3"},"html":{"href":"https://github.com/TechnologyAdvice/fixd/pull/3"},"issue":{"href":"https://api.github.com/repos/TechnologyAdvice/fixd/issues/3"},"comments":{"href":"https://api.github.com/repos/TechnologyAdvice/fixd/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/TechnologyAdvice/fixd/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/TechnologyAdvice/fixd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TechnologyAdvice/fixd/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/TechnologyAdvice/fixd/statuses/ea8e45a50f3e2cdb8210bf78b75d9671bebca837"}}}}
{"actor":{"display_login":"davezuko"}}