{"id":29926557,"url":"https://github.com/ecomfe/emc","last_synced_at":"2025-08-02T12:42:07.334Z","repository":{"id":19060242,"uuid":"22286767","full_name":"ecomfe/emc","owner":"ecomfe","description":"Model \u0026 Collection with well-designed change notification","archived":false,"fork":false,"pushed_at":"2017-01-09T08:07:34.000Z","size":185,"stargazers_count":6,"open_issues_count":3,"forks_count":0,"subscribers_count":14,"default_branch":"2.0/develop","last_synced_at":"2025-07-22T05:16:50.744Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ecomfe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-26T13:08:18.000Z","updated_at":"2017-02-03T13:02:34.000Z","dependencies_parsed_at":"2022-08-21T05:40:37.308Z","dependency_job_id":null,"html_url":"https://github.com/ecomfe/emc","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/ecomfe/emc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Femc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Femc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Femc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Femc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecomfe","download_url":"https://codeload.github.com/ecomfe/emc/tar.gz/refs/heads/2.0/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Femc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268392098,"owners_count":24243297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"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":"2025-08-02T12:41:59.762Z","updated_at":"2025-08-02T12:42:07.302Z","avatar_url":"https://github.com/ecomfe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EFE Model \u0026 Collection\n\n`emc`提供一个基本的`Model`类的实现，用于存储数据并提供数据变化时的相关事件\n\n`2.x`版本主要希望应用于以“不可变”为基础的场景之下，如果只需要更简单的一个实现，可以直接使用`1.x`版本\n\n## API文档\n\n```shell\nnpm i\nnpm run doc\nopen doc/api/index.html\n```\n\n## 更新历史\n\n### 2.0.0\n\n- 完全重新设计\n- 支持不可变数据的管理\n\n### 2.1.0\n\n- 依赖库更新至`mini-event@2.x`及`diffy-update@2.x`\n- 汉化所有文档\n- 取消了`set`方法对`value`未提供的检查\n\n### 2.2.0\n\n- 大幅度优化了计算属性的算法，提升性能\n- 计算属性可以被重新定义，重新定义后其已经计算的值会消失，回到初始化状态\n- 计算属性依赖另一个计算属性不再会导致值的计算错误，现在会管理相互的依赖关系，保证被依赖的计算属性先进行计算\n\n### 2.3.0\n\n- 编译后代码置于根目录，方便NodeJS环境直接引用\n- 添加了计算属性循环依赖的检测，使用`Model.js`会在出现循环依赖时通过`console.warn`提示，`Model.min.js`用于生产环境，无检测功能\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecomfe%2Femc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecomfe%2Femc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecomfe%2Femc/lists"}