proj4 2.20.6 → 2.20.7

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 (115) hide show
  1. package/PUBLISHING.md +24 -12
  2. package/README.md +9 -11
  3. package/SECURITY.md +23 -0
  4. package/changelog.md +4 -2
  5. package/dist/proj4-src.js +1 -1
  6. package/dist/proj4.js +1 -1
  7. package/eslint.config.mjs +1 -3
  8. package/package.json +14 -16
  9. package/tsconfig.json +3 -0
  10. package/vitest.config.mjs +14 -0
  11. package/Gruntfile.js +0 -65
  12. package/bower.json +0 -24
  13. package/component.json +0 -17
  14. package/dist/lib/Point.d.ts +0 -24
  15. package/dist/lib/Proj.d.ts +0 -75
  16. package/dist/lib/adjust_axis.d.ts +0 -1
  17. package/dist/lib/checkSanity.d.ts +0 -1
  18. package/dist/lib/common/acosh.d.ts +0 -1
  19. package/dist/lib/common/adjust_lat.d.ts +0 -1
  20. package/dist/lib/common/adjust_lon.d.ts +0 -1
  21. package/dist/lib/common/adjust_zone.d.ts +0 -1
  22. package/dist/lib/common/asinh.d.ts +0 -1
  23. package/dist/lib/common/asinhy.d.ts +0 -1
  24. package/dist/lib/common/asinz.d.ts +0 -1
  25. package/dist/lib/common/atanh.d.ts +0 -1
  26. package/dist/lib/common/clens.d.ts +0 -1
  27. package/dist/lib/common/clens_cmplx.d.ts +0 -1
  28. package/dist/lib/common/cosh.d.ts +0 -1
  29. package/dist/lib/common/e0fn.d.ts +0 -1
  30. package/dist/lib/common/e1fn.d.ts +0 -1
  31. package/dist/lib/common/e2fn.d.ts +0 -1
  32. package/dist/lib/common/e3fn.d.ts +0 -1
  33. package/dist/lib/common/fL.d.ts +0 -1
  34. package/dist/lib/common/gN.d.ts +0 -1
  35. package/dist/lib/common/gatg.d.ts +0 -1
  36. package/dist/lib/common/hypot.d.ts +0 -1
  37. package/dist/lib/common/imlfn.d.ts +0 -1
  38. package/dist/lib/common/invlatiso.d.ts +0 -1
  39. package/dist/lib/common/iqsfnz.d.ts +0 -1
  40. package/dist/lib/common/latiso.d.ts +0 -1
  41. package/dist/lib/common/log1py.d.ts +0 -1
  42. package/dist/lib/common/mlfn.d.ts +0 -1
  43. package/dist/lib/common/msfnz.d.ts +0 -1
  44. package/dist/lib/common/phi2z.d.ts +0 -1
  45. package/dist/lib/common/pj_enfn.d.ts +0 -1
  46. package/dist/lib/common/pj_inv_mlfn.d.ts +0 -1
  47. package/dist/lib/common/pj_mlfn.d.ts +0 -1
  48. package/dist/lib/common/qsfnz.d.ts +0 -1
  49. package/dist/lib/common/sign.d.ts +0 -1
  50. package/dist/lib/common/sinh.d.ts +0 -1
  51. package/dist/lib/common/srat.d.ts +0 -1
  52. package/dist/lib/common/tanh.d.ts +0 -1
  53. package/dist/lib/common/toPoint.d.ts +0 -5
  54. package/dist/lib/common/tsfnz.d.ts +0 -1
  55. package/dist/lib/common/vincenty.d.ts +0 -35
  56. package/dist/lib/constants/Datum.d.ts +0 -1823
  57. package/dist/lib/constants/Ellipsoid.d.ts +0 -353
  58. package/dist/lib/constants/PrimeMeridian.d.ts +0 -16
  59. package/dist/lib/constants/units.d.ts +0 -63
  60. package/dist/lib/constants/values.d.ts +0 -19
  61. package/dist/lib/core.d.ts +0 -119
  62. package/dist/lib/datum.d.ts +0 -10
  63. package/dist/lib/datumUtils.d.ts +0 -28
  64. package/dist/lib/datum_transform.d.ts +0 -2
  65. package/dist/lib/defs.d.ts +0 -59
  66. package/dist/lib/deriveConstants.d.ts +0 -11
  67. package/dist/lib/extend.d.ts +0 -1
  68. package/dist/lib/global.d.ts +0 -1
  69. package/dist/lib/includedProjections.d.ts +0 -1
  70. package/dist/lib/index.d.ts +0 -47
  71. package/dist/lib/match.d.ts +0 -1
  72. package/dist/lib/nadgrid.d.ts +0 -141
  73. package/dist/lib/parseCode.d.ts +0 -6
  74. package/dist/lib/projString.d.ts +0 -5
  75. package/dist/lib/projections/aea.d.ts +0 -83
  76. package/dist/lib/projections/aeqd.d.ts +0 -32
  77. package/dist/lib/projections/bonne.d.ts +0 -27
  78. package/dist/lib/projections/cass.d.ts +0 -36
  79. package/dist/lib/projections/cea.d.ts +0 -28
  80. package/dist/lib/projections/eqc.d.ts +0 -20
  81. package/dist/lib/projections/eqdc.d.ts +0 -71
  82. package/dist/lib/projections/eqearth.d.ts +0 -17
  83. package/dist/lib/projections/equi.d.ts +0 -40
  84. package/dist/lib/projections/etmerc.d.ts +0 -45
  85. package/dist/lib/projections/gauss.d.ts +0 -38
  86. package/dist/lib/projections/geocent.d.ts +0 -22
  87. package/dist/lib/projections/geos.d.ts +0 -51
  88. package/dist/lib/projections/gnom.d.ts +0 -37
  89. package/dist/lib/projections/gstmerc.d.ts +0 -41
  90. package/dist/lib/projections/krovak.d.ts +0 -34
  91. package/dist/lib/projections/laea.d.ts +0 -70
  92. package/dist/lib/projections/lcc.d.ts +0 -36
  93. package/dist/lib/projections/longlat.d.ts +0 -11
  94. package/dist/lib/projections/merc.d.ts +0 -30
  95. package/dist/lib/projections/mill.d.ts +0 -11
  96. package/dist/lib/projections/moll.d.ts +0 -17
  97. package/dist/lib/projections/nzmg.d.ts +0 -33
  98. package/dist/lib/projections/ob_tran.d.ts +0 -80
  99. package/dist/lib/projections/omerc.d.ts +0 -60
  100. package/dist/lib/projections/ortho.d.ts +0 -25
  101. package/dist/lib/projections/poly.d.ts +0 -32
  102. package/dist/lib/projections/qsc.d.ts +0 -31
  103. package/dist/lib/projections/robin.d.ts +0 -24
  104. package/dist/lib/projections/sinu.d.ts +0 -38
  105. package/dist/lib/projections/somerc.d.ts +0 -35
  106. package/dist/lib/projections/stere.d.ts +0 -52
  107. package/dist/lib/projections/sterea.d.ts +0 -33
  108. package/dist/lib/projections/tmerc.d.ts +0 -38
  109. package/dist/lib/projections/tpers.d.ts +0 -45
  110. package/dist/lib/projections/utm.d.ts +0 -19
  111. package/dist/lib/projections/vandg.d.ts +0 -28
  112. package/dist/lib/projections.d.ts +0 -19
  113. package/dist/lib/transform.d.ts +0 -8
  114. package/dist/projs.d.ts +0 -1
  115. package/index.d.ts +0 -6
package/PUBLISHING.md CHANGED
@@ -1,22 +1,34 @@
1
1
  Publishing
2
2
  ===
3
3
 
4
- Make sure you have the latest from the main branch:
4
+ ## Releasing a new version
5
5
 
6
- git pull origin master
6
+ 1. Make sure you have the latest from the main branch:
7
7
 
8
- Use `tin` to update the version number in the `package.json`, `component.json` & `bower.json`.
8
+ git pull origin master
9
9
 
10
- tin -v x.y.z
10
+ 2. Update `changelog.md` with the changes since the last release, then commit:
11
11
 
12
- Then run the publish script
12
+ git add changelog.md
13
+ git commit -m 'update changelog for x.y.z'
13
14
 
14
- ./publish.sh
15
+ 4. Set the release version (updates `package.json` and `package-lock.json`, creates a commit and a git tag):
15
16
 
16
- afterwards don't forget to update the versions to be a prerelease of the next version, so if you just published 1.1.1 then:
17
+ npm version x.y.z
17
18
 
18
- tin -v 1.1.2-alpha
19
- npm install
20
- git add package.json package-lock.json component.json bower.json
21
- git commit -m 'update version to 1.1.2-alpha'
22
- git push origin master
19
+ 5. Push the commit and tag:
20
+
21
+ git push --follow-tags
22
+
23
+ 6. The tag push triggers two GitHub Actions workflows:
24
+ - **publish.yml** — publishes to npm using [trusted publishing with OIDC](https://docs.npmjs.com/trusted-publishers) (no token required, provenance is automatic)
25
+ - **release.yml** — drafts a GitHub release with `dist.zip` attached (contains the full `dist/` directory)
26
+
27
+ 7. Go to the [GitHub releases page](https://github.com/proj4js/proj4js/releases), review the draft release, edit the notes if needed, and publish it.
28
+
29
+ 8. Update the version to the next pre-release:
30
+
31
+ npm version x.y.(z+1)-alpha --no-git-tag-version
32
+ git add package.json package-lock.json
33
+ git commit -m 'update version to x.y.(z+1)-alpha'
34
+ git push origin master
package/README.md CHANGED
@@ -10,11 +10,9 @@ Depending on your preferences
10
10
 
11
11
  ```bash
12
12
  npm install proj4
13
- bower install proj4
14
- component install proj4js/proj4js
15
13
  ```
16
14
 
17
- or just manually grab the file `proj4.js` from the [latest release](https://github.com/proj4js/proj4js/releases)'s `dist/` folder.
15
+ or download `dist.zip` from the [latest release](https://github.com/proj4js/proj4js/releases) and grab `proj4.js` from it.
18
16
 
19
17
  If you do not want to download anything, Proj4js is also hosted on [cdnjs](https://www.cdnjs.com/libraries/proj4js) for direct use in your browser applications.
20
18
 
@@ -179,12 +177,12 @@ await proj4.nadgrid('ca_nrc_NA83SCRS.tif', tiff).ready;
179
177
  Then use the given key in your definition, e.g. `proj4.defs("EPSG:32188","+proj=tmerc +lat_0=0 +lon_0=-73.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +nadgrids=ca_nrc_NA83SCRS.tif +units=m +no_defs +type=crs");` noting the `+nadgrids=ca_nrc_NA83SCRS.tif` parameter.
180
178
 
181
179
  ## Developing
182
- To set up build tools make sure you have node and grunt-cli installed and then run `npm install`.
180
+ To set up build tools make sure you have node installed and then run `npm install`.
183
181
 
184
- To do the complete build and browser tests run
182
+ To do the complete build run
185
183
 
186
184
  ```bash
187
- node_modules/.bin/grunt
185
+ npm run build
188
186
  ```
189
187
 
190
188
  To run node and browser tests run
@@ -203,16 +201,16 @@ npm run test:coverage
203
201
  To create a build with only default projections (latlon and Mercator) run
204
202
 
205
203
  ```bash
206
- node_modules/.bin/grunt build
204
+ node scripts/build.mjs default
207
205
  ```
208
206
 
209
- To create a build with only custom projections include a comma separated list of projections codes (the file name in 'lib/projections' without the '.js') after a colon, e.g.
207
+ To create a build with only custom projections include a comma separated list of projections codes (the file name in 'lib/projections' without the '.js'), e.g.
210
208
 
211
209
  ```bash
212
- node_modules/.bin/grunt build:tmerc
210
+ node scripts/build.mjs tmerc
213
211
  #includes transverse Mercator
214
- node_modules/.bin/grunt build:lcc
212
+ node scripts/build.mjs lcc
215
213
  #includes lambert conformal conic
216
- node_modules/.bin/grunt build:omerc,moll
214
+ node scripts/build.mjs omerc,moll
217
215
  #includes oblique Mercator and Mollweide
218
216
  ```
package/SECURITY.md ADDED
@@ -0,0 +1,23 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ Only the latest release of proj4js receives security fixes.
6
+
7
+ | Version | Supported |
8
+ |---------|-----------|
9
+ | latest | ✅ |
10
+ | older | ❌ |
11
+
12
+ ## Reporting a Vulnerability
13
+
14
+ Please **do not** report security vulnerabilities through public GitHub issues.
15
+
16
+ Instead, use [GitHub private vulnerability reporting](https://github.com/proj4js/proj4js/security/advisories/new) to submit a report confidentially. This allows us to assess and address the issue before any public disclosure.
17
+
18
+ Please include:
19
+ - A description of the vulnerability and its potential impact
20
+ - Steps to reproduce or a minimal proof-of-concept
21
+ - Any suggested mitigations, if known
22
+
23
+ We will acknowledge the report within 7 days and aim to release a fix within 90 days, following responsible disclosure practices.
package/changelog.md CHANGED
@@ -1,5 +1,7 @@
1
- Change log
2
- ===
1
+ ## Change log
2
+
3
+ - 2.20.7: GitHub releases now contain a separate dist.zip file, so users don't have to find the dist folder in the downloaded source code any more; removed bower.json and component.json; trusted OIDC publishing for the npm package; added security policy; vitest instead of mocha for the tests; removed grunt; renamed main branch to main
4
+
3
5
  - 2.20.0: Include WGS84 UTM zones 1-60 North/South and WGS84 UPS North/South; add support for `+over`; add general oblique transformation; make projjson work with `proj4.defs(code, projjson)`
4
6
 
5
7
  - 2.19.0: TypeScript type definitions are now included. When upgrading, please uninstall the `@types/proj4` package.
package/dist/proj4-src.js CHANGED
@@ -10660,7 +10660,7 @@
10660
10660
  nadgrid,
10661
10661
  transform,
10662
10662
  mgrs,
10663
- version: '2.20.6'
10663
+ version: '2.20.7'
10664
10664
  });
10665
10665
  includedProjections(proj4);
10666
10666