@blocklet/meta 1.6.2 → 1.6.3

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/lib/constants.js CHANGED
@@ -140,8 +140,9 @@ module.exports = Object.freeze({
140
140
  BLOCKLET_DEFAULT_VERSION: '1.0.0',
141
141
  BLOCKLET_DEFAULT_PORT_NAME: 'BLOCKLET_PORT',
142
142
 
143
- BLOCKLET_LATEST_SPEC_VERSION: '1.2.0',
144
- BLOCKLET_LATEST_REQUIREMENT_ABTNODE: '>=1.5.15',
143
+ BLOCKLET_LATEST_SPEC_VERSION: '1.2.1',
144
+ BLOCKLET_LATEST_REQUIREMENT_SERVER: '>=1.6.2',
145
+ BLOCKLET_LATEST_REQUIREMENT_ABTNODE: '>=1.5.15', // Deprecated
145
146
 
146
147
  BLOCKLET_CONFIGURABLE_KEY: {
147
148
  BLOCKLET_CLUSTER_SIZE: 'BLOCKLET_CLUSTER_SIZE',
package/lib/schema.js CHANGED
@@ -17,7 +17,7 @@ const {
17
17
  BLOCKLET_DEFAULT_PORT_NAME,
18
18
  BLOCKLET_DYNAMIC_PATH_PREFIX,
19
19
  BlockletGroup,
20
- BLOCKLET_LATEST_REQUIREMENT_ABTNODE,
20
+ BLOCKLET_LATEST_REQUIREMENT_SERVER,
21
21
  BLOCKLET_INTERFACE_TYPE_WEB,
22
22
  BLOCKLET_INTERFACE_TYPE_WELLKNOWN,
23
23
  } = require('./constants');
@@ -274,7 +274,8 @@ const createBlockletSchema = (
274
274
  }).default({ start: 60 }),
275
275
 
276
276
  requirements: Joi.object({
277
- abtnode: Joi.semverRange().valid(),
277
+ abtnode: Joi.semverRange().valid(), // deprecated in v1.6.1
278
+ server: Joi.semverRange().valid(),
278
279
  os: Joi.alternatives().try(
279
280
  Joi.string().valid('*', ...BLOCKLET_PLATFORMS),
280
281
  Joi.array()
@@ -287,7 +288,7 @@ const createBlockletSchema = (
287
288
  .items(Joi.string().valid(...BLOCKLET_ARCHITECTURES))
288
289
  .min(1)
289
290
  ),
290
- }).default({ abtnode: BLOCKLET_LATEST_REQUIREMENT_ABTNODE, os: '*', cpu: '*' }),
291
+ }).default({ server: BLOCKLET_LATEST_REQUIREMENT_SERVER, os: '*', cpu: '*' }),
291
292
 
292
293
  // interfaces: https://github.com/blocklet/blocklet-specification/issues/2
293
294
  interfaces: Joi.array()
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.6.2",
6
+ "version": "1.6.3",
7
7
  "description": "Library to parse/validate/fix blocklet meta",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -42,5 +42,5 @@
42
42
  "devDependencies": {
43
43
  "jest": "^27.3.1"
44
44
  },
45
- "gitHead": "42586732917837bda0ef7bb6a9610b5cebd42b92"
45
+ "gitHead": "3642ccce1e0ab0e1937e32a7dc119a9763bc21c2"
46
46
  }