ballerina-core 1.0.99 → 1.0.101

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ballerina-core",
3
3
  "author": "Dr. Giuseppe Maggiore",
4
4
  "private": false,
5
- "version": "1.0.99",
5
+ "version": "1.0.101",
6
6
  "main": "main.ts",
7
7
  "scripts": {
8
8
  "prettier": "prettier --write ."
@@ -432,13 +432,6 @@ export const fromAPIRawValue =
432
432
  injectedPrimitives?: InjectedPrimitives<T>,
433
433
  ) =>
434
434
  (raw: any): ValueOrErrors<PredicateValue, string> => {
435
- // allow undefined for unit renderer
436
- if (raw == undefined && (t.kind !== "primitive" || t.value != "unit")) {
437
- return ValueOrErrors.Default.throwOne(
438
- `raw value is undefined for type ${JSON.stringify(t)}`,
439
- );
440
- }
441
-
442
435
  if (t.kind == "primitive") {
443
436
  // unit is a special kind of primitive
444
437
  if (t.value == "unit") {