@digital-gravy/etch-connector 0.2.1 → 0.2.2

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.
Files changed (2) hide show
  1. package/dist/guidance.js +9 -2
  2. package/package.json +1 -1
package/dist/guidance.js CHANGED
@@ -35,7 +35,12 @@ function dynamicDataGuidance(environment) {
35
35
  " yielding a list: data('products'), a path into one",
36
36
  " (data('products').items), nested data from an enclosing loop",
37
37
  ' (item.tags), or a generated list (range(1, 10)). There is no',
38
- ' loopId/loopParams here.'
38
+ ' loopId/loopParams here.',
39
+ ' The sources themselves are managed through etch.dataSources.*:',
40
+ ' list(), get(key) and findDataSource(query) read them synchronously;',
41
+ ' createAsync(), updateAsync() and deleteAsync() persist immediately.',
42
+ ' Call resolveAsync(key) to see the value a source actually returns',
43
+ ' before authoring property paths into it — do not guess its shape.'
39
44
  ];
40
45
  }
41
46
  if (hasCapability(environment, 'loops')) {
@@ -44,7 +49,9 @@ function dynamicDataGuidance(environment) {
44
49
  ' definitions. An etch/loop block binds one by `loopId`, passes',
45
50
  ' $-prefixed `loopParams`, and `target` is an optional sub-path within',
46
51
  " it. There are no data sources here — a data('key') expression",
47
- ' resolves to nothing.'
52
+ ' resolves to nothing and etch.dataSources is absent, not merely',
53
+ ' unavailable: the property does not exist, so feature-detect it',
54
+ ' rather than calling it and catching.'
48
55
  ];
49
56
  }
50
57
  return [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-gravy/etch-connector",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },