@yuneta/gobj-js 7.2.1 → 7.3.1

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.
@@ -240,7 +240,7 @@ var sdata_flag_t = Object.freeze({
240
240
  SDF_VOLATIL: 32,
241
241
  SDF_RESOURCE: 64,
242
242
  SDF_PKEY: 128,
243
- SDF_FUTURE1: 256,
243
+ SDF_DEPRECATED: 256,
244
244
  SDF_FUTURE2: 512,
245
245
  SDF_WILD_CMD: 1024,
246
246
  SDF_STATS: 2048,
@@ -987,6 +987,7 @@ function json2sdata(hsdata, kw, flag, not_found_cb, gobj) {
987
987
  continue;
988
988
  }
989
989
  if (!(flag === -1 || it.flag & flag)) continue;
990
+ if (it.flag & sdata_flag_t.SDF_DEPRECATED) log_warning(`${gobj_short_name(gobj)}: Deprecated attribute used in gobj creation: ${key}`);
990
991
  ret += json2item(gobj, hsdata, it, jn_value);
991
992
  }
992
993
  return ret;