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.
- package/PUBLISHING.md +24 -12
- package/README.md +9 -11
- package/SECURITY.md +23 -0
- package/changelog.md +4 -2
- package/dist/proj4-src.js +1 -1
- package/dist/proj4.js +1 -1
- package/eslint.config.mjs +1 -3
- package/package.json +14 -16
- package/tsconfig.json +3 -0
- package/vitest.config.mjs +14 -0
- package/Gruntfile.js +0 -65
- package/bower.json +0 -24
- package/component.json +0 -17
- package/dist/lib/Point.d.ts +0 -24
- package/dist/lib/Proj.d.ts +0 -75
- package/dist/lib/adjust_axis.d.ts +0 -1
- package/dist/lib/checkSanity.d.ts +0 -1
- package/dist/lib/common/acosh.d.ts +0 -1
- package/dist/lib/common/adjust_lat.d.ts +0 -1
- package/dist/lib/common/adjust_lon.d.ts +0 -1
- package/dist/lib/common/adjust_zone.d.ts +0 -1
- package/dist/lib/common/asinh.d.ts +0 -1
- package/dist/lib/common/asinhy.d.ts +0 -1
- package/dist/lib/common/asinz.d.ts +0 -1
- package/dist/lib/common/atanh.d.ts +0 -1
- package/dist/lib/common/clens.d.ts +0 -1
- package/dist/lib/common/clens_cmplx.d.ts +0 -1
- package/dist/lib/common/cosh.d.ts +0 -1
- package/dist/lib/common/e0fn.d.ts +0 -1
- package/dist/lib/common/e1fn.d.ts +0 -1
- package/dist/lib/common/e2fn.d.ts +0 -1
- package/dist/lib/common/e3fn.d.ts +0 -1
- package/dist/lib/common/fL.d.ts +0 -1
- package/dist/lib/common/gN.d.ts +0 -1
- package/dist/lib/common/gatg.d.ts +0 -1
- package/dist/lib/common/hypot.d.ts +0 -1
- package/dist/lib/common/imlfn.d.ts +0 -1
- package/dist/lib/common/invlatiso.d.ts +0 -1
- package/dist/lib/common/iqsfnz.d.ts +0 -1
- package/dist/lib/common/latiso.d.ts +0 -1
- package/dist/lib/common/log1py.d.ts +0 -1
- package/dist/lib/common/mlfn.d.ts +0 -1
- package/dist/lib/common/msfnz.d.ts +0 -1
- package/dist/lib/common/phi2z.d.ts +0 -1
- package/dist/lib/common/pj_enfn.d.ts +0 -1
- package/dist/lib/common/pj_inv_mlfn.d.ts +0 -1
- package/dist/lib/common/pj_mlfn.d.ts +0 -1
- package/dist/lib/common/qsfnz.d.ts +0 -1
- package/dist/lib/common/sign.d.ts +0 -1
- package/dist/lib/common/sinh.d.ts +0 -1
- package/dist/lib/common/srat.d.ts +0 -1
- package/dist/lib/common/tanh.d.ts +0 -1
- package/dist/lib/common/toPoint.d.ts +0 -5
- package/dist/lib/common/tsfnz.d.ts +0 -1
- package/dist/lib/common/vincenty.d.ts +0 -35
- package/dist/lib/constants/Datum.d.ts +0 -1823
- package/dist/lib/constants/Ellipsoid.d.ts +0 -353
- package/dist/lib/constants/PrimeMeridian.d.ts +0 -16
- package/dist/lib/constants/units.d.ts +0 -63
- package/dist/lib/constants/values.d.ts +0 -19
- package/dist/lib/core.d.ts +0 -119
- package/dist/lib/datum.d.ts +0 -10
- package/dist/lib/datumUtils.d.ts +0 -28
- package/dist/lib/datum_transform.d.ts +0 -2
- package/dist/lib/defs.d.ts +0 -59
- package/dist/lib/deriveConstants.d.ts +0 -11
- package/dist/lib/extend.d.ts +0 -1
- package/dist/lib/global.d.ts +0 -1
- package/dist/lib/includedProjections.d.ts +0 -1
- package/dist/lib/index.d.ts +0 -47
- package/dist/lib/match.d.ts +0 -1
- package/dist/lib/nadgrid.d.ts +0 -141
- package/dist/lib/parseCode.d.ts +0 -6
- package/dist/lib/projString.d.ts +0 -5
- package/dist/lib/projections/aea.d.ts +0 -83
- package/dist/lib/projections/aeqd.d.ts +0 -32
- package/dist/lib/projections/bonne.d.ts +0 -27
- package/dist/lib/projections/cass.d.ts +0 -36
- package/dist/lib/projections/cea.d.ts +0 -28
- package/dist/lib/projections/eqc.d.ts +0 -20
- package/dist/lib/projections/eqdc.d.ts +0 -71
- package/dist/lib/projections/eqearth.d.ts +0 -17
- package/dist/lib/projections/equi.d.ts +0 -40
- package/dist/lib/projections/etmerc.d.ts +0 -45
- package/dist/lib/projections/gauss.d.ts +0 -38
- package/dist/lib/projections/geocent.d.ts +0 -22
- package/dist/lib/projections/geos.d.ts +0 -51
- package/dist/lib/projections/gnom.d.ts +0 -37
- package/dist/lib/projections/gstmerc.d.ts +0 -41
- package/dist/lib/projections/krovak.d.ts +0 -34
- package/dist/lib/projections/laea.d.ts +0 -70
- package/dist/lib/projections/lcc.d.ts +0 -36
- package/dist/lib/projections/longlat.d.ts +0 -11
- package/dist/lib/projections/merc.d.ts +0 -30
- package/dist/lib/projections/mill.d.ts +0 -11
- package/dist/lib/projections/moll.d.ts +0 -17
- package/dist/lib/projections/nzmg.d.ts +0 -33
- package/dist/lib/projections/ob_tran.d.ts +0 -80
- package/dist/lib/projections/omerc.d.ts +0 -60
- package/dist/lib/projections/ortho.d.ts +0 -25
- package/dist/lib/projections/poly.d.ts +0 -32
- package/dist/lib/projections/qsc.d.ts +0 -31
- package/dist/lib/projections/robin.d.ts +0 -24
- package/dist/lib/projections/sinu.d.ts +0 -38
- package/dist/lib/projections/somerc.d.ts +0 -35
- package/dist/lib/projections/stere.d.ts +0 -52
- package/dist/lib/projections/sterea.d.ts +0 -33
- package/dist/lib/projections/tmerc.d.ts +0 -38
- package/dist/lib/projections/tpers.d.ts +0 -45
- package/dist/lib/projections/utm.d.ts +0 -19
- package/dist/lib/projections/vandg.d.ts +0 -28
- package/dist/lib/projections.d.ts +0 -19
- package/dist/lib/transform.d.ts +0 -8
- package/dist/projs.d.ts +0 -1
- package/index.d.ts +0 -6
package/PUBLISHING.md
CHANGED
|
@@ -1,22 +1,34 @@
|
|
|
1
1
|
Publishing
|
|
2
2
|
===
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
## Releasing a new version
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
1. Make sure you have the latest from the main branch:
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
git pull origin master
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
2. Update `changelog.md` with the changes since the last release, then commit:
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
git add changelog.md
|
|
13
|
+
git commit -m 'update changelog for x.y.z'
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
4. Set the release version (updates `package.json` and `package-lock.json`, creates a commit and a git tag):
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
npm version x.y.z
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
|
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
|
|
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
|
|
182
|
+
To do the complete build run
|
|
185
183
|
|
|
186
184
|
```bash
|
|
187
|
-
|
|
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
|
-
|
|
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')
|
|
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
|
-
|
|
210
|
+
node scripts/build.mjs tmerc
|
|
213
211
|
#includes transverse Mercator
|
|
214
|
-
|
|
212
|
+
node scripts/build.mjs lcc
|
|
215
213
|
#includes lambert conformal conic
|
|
216
|
-
|
|
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.
|
|
10663
|
+
version: '2.20.7'
|
|
10664
10664
|
});
|
|
10665
10665
|
includedProjections(proj4);
|
|
10666
10666
|
|