{"id":15382162,"url":"https://github.com/stefnotch/versioned-object","last_synced_at":"2026-06-12T15:32:07.945Z","repository":{"id":65293712,"uuid":"589344811","full_name":"stefnotch/versioned-object","owner":"stefnotch","description":"A simple JSON versioning schema with a fluent interface for adding migrations","archived":false,"fork":false,"pushed_at":"2023-01-16T09:11:34.000Z","size":274,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-07T01:51:41.031Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stefnotch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-15T21:28:24.000Z","updated_at":"2023-01-15T21:28:30.000Z","dependencies_parsed_at":"2023-02-10T02:05:11.614Z","dependency_job_id":null,"html_url":"https://github.com/stefnotch/versioned-object","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"stefnotch/npm-typescript-template","purl":"pkg:github/stefnotch/versioned-object","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefnotch%2Fversioned-object","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefnotch%2Fversioned-object/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefnotch%2Fversioned-object/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefnotch%2Fversioned-object/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefnotch","download_url":"https://codeload.github.com/stefnotch/versioned-object/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefnotch%2Fversioned-object/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34251774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T14:30:04.338Z","updated_at":"2026-06-12T15:32:07.917Z","avatar_url":"https://github.com/stefnotch.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Versioned Object\n\nExample\n\n```ts\n// Make sure to *NEVER* change an existing migration that is used in production. Always add new migrations.\nconst migrator = Migration.BaseMigration.addMigration(1, (v) =\u003e {\n  return {\n    /** always increment this */\n    version: 1,\n    bestCat: \"unknown\",\n  };\n})\n  .addMigration(2, (v) =\u003e {\n    return {\n      version: 2,\n      bestCat: v.bestCat === \"unknown\" ? \"Meow\" : v.bestCat,\n    };\n  })\n  .build();\n\nmigrator.migrateToLatest({ version: 0 });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefnotch%2Fversioned-object","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefnotch%2Fversioned-object","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefnotch%2Fversioned-object/lists"}