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