{"id":41291,"library":"impact-map-endpoint","title":"impact-map-endpoint","description":"A utility for determining TopoJSON endpoints for nodes in a rollup tree structure, used as a dependency within the 832 impact mapping framework. The current version is 1.2.0. It is a niche internal package with low release activity. Key differentiator: tightly coupled with the 832 project's rollup tree model for spatial data.","status":"active","version":"1.2.0","language":"javascript","source_language":"en","source_url":"https://github.com/SpiderStrategies/impact-map-endpoint","tags":["javascript"],"install":[{"cmd":"npm install impact-map-endpoint","lang":"bash","label":"npm"},{"cmd":"yarn add impact-map-endpoint","lang":"bash","label":"yarn"},{"cmd":"pnpm add impact-map-endpoint","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is ESM-only since v1.0","wrong":"const impactMapEndpoint = require('impact-map-endpoint')","symbol":"default","correct":"import impactMapEndpoint from 'impact-map-endpoint'"},{"note":"Named export available","wrong":"const { getEndpoint } = require('impact-map-endpoint')","symbol":"getEndpoint","correct":"import { getEndpoint } from 'impact-map-endpoint'"},{"note":"TypeScript type import","symbol":"type Endpoint","correct":"import type { Endpoint } from 'impact-map-endpoint'"}],"quickstart":{"code":"import impactMapEndpoint from 'impact-map-endpoint';\nconst endpoint = impactMapEndpoint({\n  node: { id: 'region', parent: null, children: ['subregion1', 'subregion2'] },\n  rollup: { regions: ['subregion1', 'subregion2'] }\n});\nconsole.log(endpoint);","lang":"javascript","description":"Shows basic usage to compute TopoJSON endpoint for a node in a rollup tree."},"warnings":[{"fix":"Update consumer code to access endpoint.coordinates instead of endpoint.endpoint.coordinates.","message":"API changed in v1.0: output format changed from {endpoint: {...}} to flat object with coordinates property.","severity":"breaking","affected_versions":">=1.0"},{"fix":"Remove tolerance option; no replacement.","message":"Option 'tolerance' was deprecated in v1.0 and removed in v1.1.","severity":"deprecated","affected_versions":">=1.0"},{"fix":"Ensure rollup tree has no circular references before passing to the function.","message":"The input rollup tree must be a flat object with node references; circular references cause infinite recursion.","severity":"gotcha","affected_versions":">=0.5"}],"env_vars":null,"search_vec":"'1.2.0':32 '832':24,49 'activ':42 'coupl':46 'current':29 'data':57 'depend':21 'determin':8 'differenti':44 'endpoint':4,10 'framework':27 'impact':2,25 'impact-map-endpoint':1 'intern':37 'javascript':58 'key':43 'low':40 'map':3,26 'model':54 'nich':36 'node':12 'packag':38 'project':50 'releas':41 'rollup':15,52 'spatial':56 'structur':17 'tight':45 'topojson':9 'tree':16,53 'use':18 'util':6 'version':30 'within':22","created_at":"2026-06-04T18:51:41.594636+00:00","updated_at":"2026-06-04T18:51:41.594636+00:00","problems":[{"fix":"Ensure root node has children: [] even if no children.","cause":"Node object missing 'children' property when parent is null.","error":"TypeError: Cannot read properties of undefined (reading 'children')"},{"fix":"Set node.type to one of: 'region', 'point', 'line', 'polygon'.","cause":"Node has type property not recognized by the library.","error":"Error: Unknown node type 'none'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/SpiderStrategies/impact-map-endpoint#readme","github":"https://github.com/SpiderStrategies/impact-map-endpoint","docs":null,"changelog":null,"pypi":null,"npm":"impact-map-endpoint","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}