@mailwoman/tiger 5.8.0 → 5.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/block-group.ts +4 -4
  2. package/class-code.ts +168 -166
  3. package/constants.ts +35 -28
  4. package/county-subdivision.ts +4 -4
  5. package/county.ts +4 -4
  6. package/files.ts +41 -32
  7. package/functional-status.ts +16 -14
  8. package/geoid.ts +13 -11
  9. package/index.ts +12 -12
  10. package/legal-statistical-area.ts +140 -137
  11. package/out/block-group.d.ts +4 -4
  12. package/out/class-code.d.ts +167 -166
  13. package/out/class-code.d.ts.map +1 -1
  14. package/out/class-code.js +166 -167
  15. package/out/class-code.js.map +1 -1
  16. package/out/constants.d.ts +31 -28
  17. package/out/constants.d.ts.map +1 -1
  18. package/out/constants.js +23 -26
  19. package/out/constants.js.map +1 -1
  20. package/out/county-subdivision.d.ts +4 -4
  21. package/out/county.d.ts +4 -4
  22. package/out/files.d.ts +35 -33
  23. package/out/files.d.ts.map +1 -1
  24. package/out/files.js +19 -21
  25. package/out/files.js.map +1 -1
  26. package/out/functional-status.d.ts +15 -14
  27. package/out/functional-status.d.ts.map +1 -1
  28. package/out/functional-status.js +14 -15
  29. package/out/functional-status.js.map +1 -1
  30. package/out/geoid.d.ts +20 -19
  31. package/out/geoid.d.ts.map +1 -1
  32. package/out/geoid.js +10 -11
  33. package/out/geoid.js.map +1 -1
  34. package/out/index.d.ts +12 -12
  35. package/out/legal-statistical-area.d.ts +138 -137
  36. package/out/legal-statistical-area.d.ts.map +1 -1
  37. package/out/legal-statistical-area.js +137 -138
  38. package/out/legal-statistical-area.js.map +1 -1
  39. package/out/sdk/index.d.ts +4 -4
  40. package/out/sdk/state/TIGERTabulatedBlockEntity.d.ts +1 -2
  41. package/out/sdk/state/TIGERTabulatedBlockEntity.d.ts.map +1 -1
  42. package/out/sdk/state/index.d.ts +3 -3
  43. package/out/state.d.ts +302 -297
  44. package/out/state.d.ts.map +1 -1
  45. package/out/state.js +181 -186
  46. package/out/state.js.map +1 -1
  47. package/out/tabulation-block.d.ts +3 -3
  48. package/out/tabulation-block.d.ts.map +1 -1
  49. package/out/tools/index.d.ts +15 -0
  50. package/out/tools/index.d.ts.map +1 -0
  51. package/out/tools/index.js +15 -0
  52. package/out/tools/index.js.map +1 -0
  53. package/out/tools/race-dots-map.d.ts +29 -5
  54. package/out/tools/race-dots-map.d.ts.map +1 -1
  55. package/out/tools/race-dots-map.js +53 -64
  56. package/out/tools/race-dots-map.js.map +1 -1
  57. package/out/tools/race-dots.d.ts +27 -7
  58. package/out/tools/race-dots.d.ts.map +1 -1
  59. package/out/tools/race-dots.js +85 -89
  60. package/out/tools/race-dots.js.map +1 -1
  61. package/out/tools/serve-range.d.ts +23 -4
  62. package/out/tools/serve-range.d.ts.map +1 -1
  63. package/out/tools/serve-range.js +47 -36
  64. package/out/tools/serve-range.js.map +1 -1
  65. package/out/tract.d.ts +3 -3
  66. package/out/tract.d.ts.map +1 -1
  67. package/out/tsconfig.tsbuildinfo +1 -1
  68. package/package.json +31 -6
  69. package/sdk/fetch.ts +2 -2
  70. package/sdk/index.ts +4 -4
  71. package/sdk/redistricting.ts +2 -2
  72. package/sdk/state/index.ts +3 -3
  73. package/state.ts +193 -183
  74. package/tabulation-block.ts +20 -20
  75. package/tools/index.ts +15 -0
  76. package/tools/race-dots-map.ts +79 -70
  77. package/tools/race-dots.ts +127 -104
  78. package/tools/serve-range.ts +69 -38
  79. package/tract.ts +12 -12
  80. package/tsconfig.json +2 -1
package/tract.ts CHANGED
@@ -6,8 +6,8 @@
6
6
 
7
7
  import { type GeoFeature, type MultiPolygonLiteral } from "@mailwoman/spatial"
8
8
 
9
- import { TIGERProperty, type TIGERPropertyRecord } from "./constants.js"
10
- import type { FIPSTractGeoID, GeoIDPart, ParsedGeoIDTractLevel } from "./geoid.js"
9
+ import { TIGERProperty, type TIGERPropertyRecord } from "./constants.ts"
10
+ import type { FIPSTractGeoID, GeoIDPart, ParsedGeoIDTractLevel } from "./geoid.ts"
11
11
 
12
12
  /**
13
13
  * @title TIGER Tract
@@ -35,16 +35,16 @@ export interface TIGERTract extends ParsedGeoIDTractLevel {
35
35
  */
36
36
  export type TIGERTractProperties = Pick<
37
37
  TIGERPropertyRecord<FIPSTractGeoID>,
38
- | TIGERProperty.GeoID
39
- | GeoIDPart.State
40
- | GeoIDPart.County
41
- | GeoIDPart.Tract
42
- | TIGERProperty.ClassCode
43
- | TIGERProperty.FunctionalStatus
44
- | TIGERProperty.LandAreaSqm
45
- | TIGERProperty.WaterAreaSqm
46
- | TIGERProperty.CentroidLongitude
47
- | TIGERProperty.CentroidLatitude
38
+ | typeof TIGERProperty.GeoID
39
+ | typeof GeoIDPart.State
40
+ | typeof GeoIDPart.County
41
+ | typeof GeoIDPart.Tract
42
+ | typeof TIGERProperty.ClassCode
43
+ | typeof TIGERProperty.FunctionalStatus
44
+ | typeof TIGERProperty.LandAreaSqm
45
+ | typeof TIGERProperty.WaterAreaSqm
46
+ | typeof TIGERProperty.CentroidLongitude
47
+ | typeof TIGERProperty.CentroidLatitude
48
48
  >
49
49
 
50
50
  /**
package/tsconfig.json CHANGED
@@ -4,7 +4,8 @@
4
4
  "allowSyntheticDefaultImports": true,
5
5
  "emitDecoratorMetadata": true,
6
6
  "emitDeclarationOnly": false,
7
- "allowImportingTsExtensions": false,
7
+ "rewriteRelativeImportExtensions": true,
8
+ "erasableSyntaxOnly": true,
8
9
  "experimentalDecorators": true
9
10
  },
10
11
  "exclude": ["./out/**/*"],