Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:

strategy:
matrix:
node-version: [22.x, 24.x, 25.x]
node-version: [22.x, 24.x, 26.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node-version }}
- run: rm -rf node_modules && yarn install --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ datasources/00_National_Data_Sets.json
.sass-cache
/terriajs.pid
/terriajs-server.log
/terriajs-server.pid

/wwwroot/editor/
/error.log
Expand Down
16 changes: 16 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Requires node version 22 or above
- Comes with a new version of proxy rewritten using undici instead of deprecated `request` package. This should improve the performance and reliability of the proxy. Please test your map with this new version of terriajs-server and report any issues you find.
- For full changelog see [terriajs-server CHANGES.md](https://github.com/TerriaJS/terriajs-server/blob/master/CHANGES.md#next-release---unreleased)
- Upgraded `terriajs-cesium` to `26.0.0`. We are now using cesium 1.142.

#### 0.4.6

Expand All @@ -14,6 +15,11 @@
#### 0.4.5

- Upgrades TerriaJS to [8.11.3](https://github.com/TerriaJS/terriajs/blob/main/CHANGES.md#8113---2026-02-02)
- Upgrades TerriaJS to [8.12.2](https://github.com/TerriaJS/terriajs/blob/main/packages/terriajs/CHANGES.md#8120---2026-03-27)

#### 0.4.5

- Upgrades TerriaJS to [8.11.3](https://github.com/TerriaJS/terriajs/blob/main/packages/terriajs/CHANGES.md#8113---2026-02-02)

#### 0.4.4

Expand All @@ -27,18 +33,21 @@

- Upgrades TerriaJS to
[8.11.1](https://github.com/TerriaJS/terriajs/blob/main/CHANGES.md#8111---2025-12-04)
[8.11.1](https://github.com/TerriaJS/terriajs/blob/main/packages/terriajs/CHANGES.md#8111---2025-12-04)

#### 0.4.3

**2025-10-09**

- Update TerriaJS to [8.11.0](https://github.com/TerriaJS/terriajs/blob/main/CHANGES.md#8110---2025-10-09)
- Update TerriaJS to [8.11.0](https://github.com/TerriaJS/terriajs/blob/main/packages/terriajs/CHANGES.md#8110---2025-10-09)

#### 0.4.2

**2025-06-03**

- Update TerriaJS to [8.9.5](https://github.com/TerriaJS/terriajs/blob/main/CHANGES.md#895---2025-06-03)
- Update TerriaJS to [8.9.5](https://github.com/TerriaJS/terriajs/blob/main/packages/terriajs/CHANGES.md#895---2025-06-03)
- Update terriajs-server to [4.0.2](https://github.com/TerriaJS/terriajs-server/blob/master/CHANGES.md#402---2025-06-03)

#### 0.4.1
Expand All @@ -48,6 +57,7 @@
- Update TerriaJS to `8.9.3`
- Contains a fix for region mapping and GeoJSON rendering.
- Read full [list of changes](https://github.com/TerriaJS/terriajs/blob/main/CHANGES.md#893---2025-04-24)
- Read full [list of changes](https://github.com/TerriaJS/terriajs/blob/main/packages/terriajs/CHANGES.md#893---2025-04-24)

#### 0.4.0

Expand All @@ -61,6 +71,7 @@
- Bug fixes
- Fixes a regression bug in GeoJSON rendering that caused some features to be not rendered - [PR 7144](https://github.com/TerriaJS/terriajs/pull/7144)
- [Full list of TerriaJS changes](https://github.com/TerriaJS/terriajs/blob/main/CHANGES.md#892---2025-03-31)
- [Full list of TerriaJS changes](https://github.com/TerriaJS/terriajs/blob/main/packages/terriajs/CHANGES.md#892---2025-03-31)

#### 0.3.0

Expand All @@ -71,6 +82,7 @@
- Upgrades Webpack to version 5
- Upgraded sass to version 1.80+
- [Full list of TerriaJS changes](https://github.com/TerriaJS/terriajs/blob/main/CHANGES.md#880---2025-02-18)
- [Full list of TerriaJS changes](https://github.com/TerriaJS/terriajs/blob/main/packages/terriajs/CHANGES.md#880---2025-02-18)
- Converted files from CJS to ESM style
- This includes `entry.js`, `index.js` - if you have changed these files it is likely that you will get a merge conflict when upgrading. Please [reach out to us](https://github.com/terriajs/terriajs/discussions) if you need help.
- Replaced webpack aliases `~terriajs-variables` and `~terriajs` in css imports with relative paths. This simplifies the webpack configuration.
Expand All @@ -92,6 +104,7 @@
- Upgraded gulp to version 5
- Gulp 5 defaults to encoding copied files as utf-8, had turn off encoding by setting `encoding: false` to correctly copy binary assets from dependencies.
- Bunch of other packages upgraded, [see CHANGES](https://github.com/TerriaJS/terriajs/blob/main/CHANGES.md#8710---2024-11-29).
- Bunch of other packages upgraded, [see CHANGES](https://github.com/TerriaJS/terriajs/blob/main/packages/terriajs/CHANGES.md#8710---2024-11-29).

### `0.2.2`

Expand Down Expand Up @@ -124,6 +137,7 @@
- **Upgraded Cesium to version 6.2.0**
- **Upgraded Typescript to version 5.2.x**
- For full list of changes, see [terriajs/CHANGES.md](https://github.com/TerriaJS/terriajs/blob/main/CHANGES.md)
- For full list of changes, see [terriajs/CHANGES.md](https://github.com/TerriaJS/terriajs/blob/main/packages/terriajs/CHANGES.md)
- Replaced `node-sass` with `sass`. (both packages expose the same JavaScript API, so no changes should be required)
- Increase NodeJS minimum version to 16

Expand All @@ -148,6 +162,7 @@ Failed release workflow
- Now supports Google Analytics 4 properties.
- Upgraded babel packages
- See [the full list of changes](https://github.com/TerriaJS/terriajs/blob/main/CHANGES.md#832---2023-08-11).
- See [the full list of changes](https://github.com/TerriaJS/terriajs/blob/main/packages/terriajs/CHANGES.md#832---2023-08-11).

### `0.0.7`

Expand Down Expand Up @@ -181,6 +196,7 @@ Failed release workflow
**2022-09-23**

- Removed `RelatedMaps.jsx` - this is now generated from configuration in `terriajs`. See https://github.com/TerriaJS/terriajs/blob/main/doc/customizing/client-side-config.md#parameters for example configuration.
- Removed `RelatedMaps.jsx` - this is now generated from configuration in `terriajs`. See https://github.com/TerriaJS/terriajs/blob/main/packages/terriajs/doc/customizing/client-side-config.md#parameters for example configuration.
- **Note** `RelatedMaps` can remain unchanged if HTML/JSX file is preferred.

### 2022-06-30
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# develop container
FROM node:20 AS develop
FROM node:24 AS develop

# build container
FROM node:20 AS build
FROM node:24 AS build
USER node

COPY --chown=node:node . /app
Expand All @@ -13,7 +13,7 @@ RUN yarn install --network-timeout 1000000
RUN yarn gulp release

# deploy container
FROM node:20-slim AS deploy
FROM node:24-slim AS deploy

USER node

Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Docker image for the primary terria map application server
FROM node:20
FROM node:24

RUN mkdir -p /usr/src/app && mkdir -p /etc/config/client
WORKDIR /usr/src/app/component
Expand Down
20 changes: 17 additions & 3 deletions deploy/docker/create-docker-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,13 @@ function preparePackage(packageDir, destDir) {
const env = Object.create(process.env);
env.NODE_ENV = "production";

// Resolve the production dependency tree up to the workspace root. In a
// monorepo most of packageDir's deps are hoisted to the root node_modules
// (two levels up from packages/<pkg>), so the search root must reach it. In a
// standalone checkout the deps live in packageDir/node_modules and are found
// before any walk-up, so the wider search root is harmless there.
const productionPackages = _.uniqBy(
getPackageList(packageDir, path.resolve(packageDir, "..")),
getPackageList(packageDir, path.resolve(packageDir, "..", "..")),
(package) => package.path
);

Expand All @@ -341,9 +346,18 @@ function preparePackage(packageDir, destDir) {

function prepareNodeModules(packageDir, destDir, productionPackages) {
productionPackages.forEach((src) => {
const relativePath = path.relative(packageDir, src.path);
// src.path is an absolute path like <root>/node_modules/<name>[/node_modules/<sub>].
// Re-root it under destDir from its FIRST node_modules segment so deps hoisted above
// packageDir (a monorepo workspace) still land inside the docker context, while
// preserving any nested node_modules. path.relative(packageDir, ...) would yield
// "../../node_modules/<name>" for a hoisted dep and escape the context. In a
// standalone checkout the dep is under packageDir/node_modules, so this is the same path.
const nmMarker = path.sep + "node_modules" + path.sep;
const idx = src.path.indexOf(nmMarker);
const relativePath =
idx >= 0 ? src.path.slice(idx + nmMarker.length) : src.name;
const dest = path.resolve(destDir, relativePath);
const srcPath = path.resolve(packageDir, relativePath);
const srcPath = src.path;

// console.log("src " + srcPath + " to " + dest);

Expand Down
4 changes: 4 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Reuse TerriaJS's flat ESLint config; terriamap lints index.js + lib the same way.
import terriajsConfig from "terriajs/eslint.config.mjs";

export default terriajsConfig;
4 changes: 3 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ gulp.task("write-version", function (done) {
nowDate.getMonth() + 1
}-${nowDate.getDate()}`;
const packageJson = require("./package.json");
const terriajsPackageJson = require("./node_modules/terriajs/package.json");
// Resolve terriajs by package name so this works whether terriajs is in this
// package's node_modules (standalone) or hoisted to the workspace root (monorepo).
const terriajsPackageJson = require("terriajs/package.json");

const isClean =
spawnSync("git", ["status", "--porcelain"]).stdout.toString().length === 0;
Expand Down
2 changes: 0 additions & 2 deletions lib/Views/AboutButton.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import MenuButton from "terriajs/lib/ReactViews/Map/MenuButton";

export default function AboutButton() {
Expand Down
45 changes: 19 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,18 @@
{
"private": true,
"workspaces": {
"packages": [
"packages/terriajs1",
"packages/terriajs-cesium/packages/engine",
"packages/terriajs-cesium/packages/widgets",
"packages/terriajs-server",
"packages/plugin-sample"
],
"nohoist": [
"**/husky"
]
},
"name": "terriajs-map",
"version": "0.4.6",
"version": "0.4.7",
"description": "Geospatial catalog explorer based on TerriaJS.",
"license": "Apache-2.0",
"engines": {
"node": ">= 20.0.0"
"node": ">= 22"
},
"repository": {
"type": "git",
"url": "http://github.com/TerriaJS/TerriaMap"
},
"dependencies": {
"terriajs-server": "5.0.0-alpha.2"
"terriajs-server": "5.0.0-alpha.3"
},
"config": {
"docker": {
Expand All @@ -41,18 +29,20 @@
"@babel/core": "^7.29.0",
"@babel/preset-env": "^7.29.2",
"@babel/preset-react": "^7.28.5",
"@typescript-eslint/eslint-plugin": "^8.24.0",
"@typescript-eslint/parser": "^8.24.0",
"@eslint/js": "^10.0.1",
"@typescript-eslint/eslint-plugin": "^8.58.1",
"@typescript-eslint/parser": "^8.58.1",
"babel-loader": "^10.1.1",
"css-loader": "^7.1.4",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint": "^10.2.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.0.1",
"fetch-mock": "^11.1.5",
"fork-ts-checker-notifier-webpack-plugin": "^9.0.0",
"fork-ts-checker-webpack-plugin": "^9.1.0",
"fs-extra": "^7.0.1",
"globals": "^17.4.0",
"gulp": "^5.0.1",
"html-webpack-plugin": "^5.6.3",
"husky": "^9.1.7",
Expand All @@ -73,25 +63,28 @@
"sass-loader": "^16.0.7",
"style-loader": "^4.0.0",
"svg-sprite": "^2.0.4",
"terriajs": "terriajs/terriajs#main",
"terriajs-cesium": "23.0.2",
"terriajs": "8.12.5",
"terriajs-cesium": "26.0.0",
"terriajs-plugin-api": "0.0.1-alpha.17",
"terriajs-plugin-sample": "0.0.1-alpha.7",
"typescript": "^5.9.2",
"typescript-eslint": "^8.58.1",
"urijs": "^1.18.12",
"webpack": "^5.105.4",
"webpack-cli": "^5.1.4",
"yargs": "^17.7.2"
},
"scripts": {
"prepare": "husky install",
"docker-build-local": "node deploy/docker/create-docker-context.js --build --push --tag auto --local",
"docker-build-prod": "node deploy/docker/create-docker-context.js --build --push --tag auto --repository=ghcr.io/terriajs",
"docker-build-ci": "node deploy/docker/create-docker-context.js --build",
"start": "terriajs-server --config-file serverconfig.json",
"gulp": "gulp",
"build": "gulp build",
"dev": "gulp dev",
"postinstall": "echo 'Installation successful. What to do next:\\n yarn gulp dev # Starts the server on port 3001, builds TerriaMap and dependencies, and rebuilds if files change.'",
"prettier": "prettier --write .",
"prettier-check": "prettier --check ."
"prettier-check": "prettier --check .",
"lint": "gulp lint"
}
}
}
Loading