@live-change/db-server 0.8.29 → 0.8.31

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/Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
- FROM node:16
1
+ FROM node:20
2
2
  USER root
3
3
 
4
- RUN npm -g config set user root
4
+ #RUN npm -g config set user root
5
5
 
6
6
  RUN npm install -g encoding-down
7
7
  RUN npm install -g leveldown
@@ -10,10 +10,8 @@ RUN npm install -g memdown
10
10
  RUN npm install -g node-lmdb
11
11
  RUN npm install -g subleveldown
12
12
 
13
- COPY package.json .
14
13
  RUN npm install -g @live-change/db-server@`echo "console.log(require('./package.json').version)" | node`
15
14
  RUN npm install -g @live-change/db-client@`echo "console.log(require('./package.json').version)" | node`
16
- RUN rm package.json
17
15
 
18
16
  RUN cd /usr/local/lib/node_modules/@live-change/db-server/node_modules/@live-change/db-admin/; npm run build
19
17
 
@@ -1,5 +1,6 @@
1
1
  #!/bin/bash
2
2
  VERSION=`echo "console.log(require('./package.json').version)" | node`
3
3
  PLATFORMS="linux/amd64,linux/arm64,linux/arm/v7"
4
+ #PLATFORMS="linux/amd64"
4
5
  echo building docker image for version $VERSION
5
6
  docker buildx build --platform $PLATFORMS -t livechange/db-server:$VERSION -t livechange/db-server:latest --push .
package/lib/Server.js CHANGED
@@ -4,7 +4,10 @@ import http from 'http'
4
4
  import express from 'express'
5
5
  import sockjs from '@live-change/sockjs'
6
6
  import { server as WebSocketServer } from 'websocket'
7
- import { server as ReactiveDaoWebsocketServer, client as ReactiveDaoWebsocketClient } from '@live-change/dao-websocket'
7
+ import {
8
+ server as ReactiveDaoWebsocketServer,
9
+ client as ReactiveDaoWebsocketClient
10
+ } from '@live-change/dao-websocket'
8
11
  import ScriptContext from '@live-change/db/lib/ScriptContext.js'
9
12
  import * as dbDao from './dbDao.js'
10
13
  import * as storeDao from './storeDao.js'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/db-server",
3
- "version": "0.8.29",
3
+ "version": "0.8.31",
4
4
  "description": "Database with observable data for live queries",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,17 +29,18 @@
29
29
  "tape": "^5.7.4"
30
30
  },
31
31
  "dependencies": {
32
- "@live-change/dao": "^0.8.29",
33
- "@live-change/dao-message": "^0.8.29",
34
- "@live-change/dao-sockjs": "^0.8.29",
35
- "@live-change/dao-websocket": "^0.8.29",
36
- "@live-change/db": "^0.8.29",
37
- "@live-change/db-admin": "^0.8.29",
38
- "@live-change/db-client": "^0.8.29",
39
- "@live-change/db-store-level": "^0.8.29",
40
- "@live-change/db-store-lmdb": "^0.8.29",
41
- "@live-change/db-store-observable-db": "^0.8.29",
42
- "@live-change/db-store-rbtree": "^0.8.29",
32
+ "@live-change/dao": "^0.8.31",
33
+ "@live-change/dao-message": "^0.8.31",
34
+ "@live-change/dao-sockjs": "^0.8.31",
35
+ "@live-change/dao-websocket": "^0.8.31",
36
+ "@live-change/db": "^0.8.31",
37
+ "@live-change/db-admin": "^0.8.31",
38
+ "@live-change/db-client": "^0.8.31",
39
+ "@live-change/db-store-level": "^0.8.31",
40
+ "@live-change/db-store-lmdb": "^0.8.31",
41
+ "@live-change/db-store-observable-db": "^0.8.31",
42
+ "@live-change/db-store-rbtree": "^0.8.31",
43
+ "@live-change/server": "^0.8.31",
43
44
  "@live-change/sockjs": "0.4.1",
44
45
  "express": "^4.18.2",
45
46
  "line-reader": "^0.4.0",
@@ -49,5 +50,5 @@
49
50
  "websocket": "^1.0.34",
50
51
  "yargs": "^17.7.2"
51
52
  },
52
- "gitHead": "9bc23973964b33f2e837db9fbf8dfb51916752a8"
53
+ "gitHead": "9ab10c6f2854dd5472cc6becb128951db16218e3"
53
54
  }
@@ -0,0 +1,22 @@
1
+ FROM node:20
2
+ USER root
3
+
4
+ #RUN npm -g config set user root
5
+
6
+ #RUN npm install -g encoding-down leveldown levelupmemdown subleveldown
7
+ #RUN npm install -g node-lmdb
8
+ RUN npm install -g cross-env
9
+
10
+ # APP
11
+ RUN mkdir -p /app
12
+ WORKDIR /app
13
+ COPY package.json .
14
+ RUN yarn install
15
+
16
+ COPY index.js index.js
17
+ COPY lib lib
18
+ COPY bin bin
19
+
20
+ EXPOSE 8001
21
+
22
+ CMD bash