@pgpm/measurements 0.28.0 → 0.28.4

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/README.md CHANGED
@@ -189,7 +189,7 @@ pnpm test
189
189
 
190
190
  ## Related Tooling
191
191
 
192
- * [pgpm](https://github.com/constructive-io/constructive/tree/main/pgpm/pgpm): **🖥️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages.
192
+ * [pgpm](https://github.com/constructive-io/constructive/tree/main/pgpm/cli): **🖥️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages.
193
193
  * [pgsql-test](https://github.com/constructive-io/constructive/tree/main/postgres/pgsql-test): **📊 Isolated testing environments** with per-test transaction rollbacks—ideal for integration tests, complex migrations, and RLS simulation.
194
194
  * [supabase-test](https://github.com/constructive-io/constructive/tree/main/postgres/supabase-test): **🧪 Supabase-native test harness** preconfigured for the local Supabase stack—per-test rollbacks, JWT/role context helpers, and CI/GitHub Actions ready.
195
195
  * [graphile-test](https://github.com/constructive-io/constructive/tree/main/graphile/graphile-test): **🔐 Authentication mocking** for Graphile-focused test helpers and emulating row-level security contexts.
@@ -197,21 +197,6 @@ pnpm test
197
197
  * [libpg-query-node](https://github.com/constructive-io/libpg-query-node): **🌉 Node.js bindings** for `libpg_query`, converting SQL into parse trees.
198
198
  * [pg-proto-parser](https://github.com/constructive-io/pg-proto-parser): **📦 Protobuf parser** for parsing PostgreSQL Protocol Buffers definitions to generate TypeScript interfaces, utility functions, and JSON mappings for enums.
199
199
 
200
- ### 📚 Documentation & Skills
201
-
202
- * [constructive-skills](https://github.com/constructive-io/constructive-skills): **📖 Platform documentation and AI agent skills** — feature catalog, blueprint reference, SDK guides, and deployment guides.
203
-
204
- Install skills for AI coding agents:
205
-
206
- ```bash
207
- # All platform skills (security, blueprints, codegen, billing, etc.)
208
- npx skills add constructive-io/constructive-skills
209
-
210
- # Individual repo skills (pgpm, testing, CLI, search, etc.)
211
- npx skills add https://github.com/constructive-io/constructive --skill pgpm
212
- npx skills add https://github.com/constructive-io/constructive --skill constructive-testing
213
- ```
214
-
215
200
  ## Disclaimer
216
201
 
217
202
  AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpm/measurements",
3
- "version": "0.28.0",
3
+ "version": "0.28.4",
4
4
  "description": "Measurement utilities for performance tracking and analytics",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "contributors": [
@@ -21,10 +21,10 @@
21
21
  "test:watch": "jest --watch"
22
22
  },
23
23
  "dependencies": {
24
- "@pgpm/verify": "0.28.0"
24
+ "@pgpm/verify": "0.28.4"
25
25
  },
26
26
  "devDependencies": {
27
- "pgpm": "^4.23.2"
27
+ "pgpm": "^4.28.7"
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",
@@ -34,5 +34,5 @@
34
34
  "bugs": {
35
35
  "url": "https://github.com/constructive-io/pgpm-modules/issues"
36
36
  },
37
- "gitHead": "d2ab7ca810ded086eb742eb8f0ca362b6212b97e"
37
+ "gitHead": "08979b82f1f68af396b540c6ce0cda4b438d34f0"
38
38
  }
@@ -1,84 +0,0 @@
1
- \echo Use "CREATE EXTENSION pgpm-measurements" to load this file. \quit
2
- CREATE SCHEMA measurements;
3
-
4
- CREATE TABLE measurements.quantities (
5
- id serial PRIMARY KEY,
6
- name text,
7
- label text,
8
- unit text,
9
- unit_desc text,
10
- description text
11
- );
12
-
13
- COMMENT ON TABLE measurements.quantities IS 'Unit of measure definitions: maps quantity names to their display labels, units, and descriptions';
14
- COMMENT ON COLUMN measurements.quantities.id IS 'Auto-incrementing identifier for this quantity';
15
- COMMENT ON COLUMN measurements.quantities.name IS 'Machine-readable name for this quantity (e.g. length, mass, temperature)';
16
- COMMENT ON COLUMN measurements.quantities.label IS 'Human-readable display label';
17
- COMMENT ON COLUMN measurements.quantities.unit IS 'Unit symbol or abbreviation (e.g. m, kg, °C)';
18
- COMMENT ON COLUMN measurements.quantities.unit_desc IS 'Full unit name (e.g. meters, kilograms, degrees Celsius)';
19
- COMMENT ON COLUMN measurements.quantities.description IS 'Detailed description of what this quantity measures';
20
-
21
- INSERT INTO measurements.quantities (
22
- id,
23
- name,
24
- label,
25
- unit,
26
- unit_desc,
27
- description
28
- ) VALUES
29
- (1, 'Acceleration', 'Acceleration', 'm/s²', 'meter per square second', 'the rate of change of velocity with respect to time'),
30
- (2, 'AmountOfSubstance', 'Amount Of Substance', 'mol', 'molecules, for example of a substance. The system unit for this quantity is "mol" mole', 'the number of elementary entities (molecules, for example) of a substance'),
31
- (3, 'Angle', 'Angle', 'rad', 'radian', 'the figure formed by two lines diverging from a common point'),
32
- (4, 'AngularAcceleration', 'Angular Acceleration', 'rad/s²', 'radian per square second', 'the rate of change of angular velocity with respect to time'),
33
- (5, 'AngularVelocity', 'Angular Velocity', 'rad/s', 'radian per second', 'the rate of change of angular displacement with respect to time'),
34
- (6, 'Area', 'Area', 'm²', 'square meter', 'the extent of a planar region or of the surface of a solid measured in square units'),
35
- (7, 'CatalyticActivity', 'Catalytic Activity', 'kat', 'katal', 'a catalytic activity'),
36
- (8, 'DataAmount', 'Data Amount', 'bit', NULL, 'a measure of data amount'),
37
- (9, 'DataRate', 'Data Rate', 'bit/s', 'bit per second', 'the speed of data-transmission'),
38
- (10, 'Dimensionless', 'Dimensionless', NULL, NULL, 'a dimensionless quantity'),
39
- (11, 'Duration', 'Duration', 's', 'second', 'a period of existence or persistence'),
40
- (12, 'DynamicViscosity', 'Dynamic Viscosity', 'Pa·s', 'Pascal-Second', 'the dynamic viscosity'),
41
- (13, 'ElectricCapacitance', 'Electric Capacitance', 'F', 'Farad', 'an electric capacitance'),
42
- (14, 'ElectricCharge', 'Electric Charge', 'C', 'Coulomb', 'an electric charge'),
43
- (15, 'ElectricConductance', 'Electric Conductance', 'S', 'Siemens', 'an electric conductance'),
44
- (16, 'ElectricCurrent', 'Electric Current', 'A', 'Ampere', 'the amount of electric charge flowing past a specified circuit point per unit time'),
45
- (17, 'ElectricInductance', 'Electric Inductance', 'H', 'Henry', 'an electric inductance'),
46
- (18, 'ElectricPotential', 'Electric Potential', 'V', 'Volt', 'an electric potential or electromotive force'),
47
- (19, 'ElectricResistance', 'Electric Resistance', 'Ω', 'Ohm', 'an electric resistance'),
48
- (20, 'Energy', 'Energy', 'J', 'Joule', 'the capacity of a physical system to do work'),
49
- (21, 'Force', 'Force', 'N', 'Newton', 'a quantity that tends to produce an acceleration of a body in the direction of its application'),
50
- (22, 'Frequency', 'Frequency', 'Hz', 'Hertz', 'the number of times a specified phenomenon occurs within a specified interval'),
51
- (23, 'Illuminance', 'Illuminance', 'lx', 'lux', 'an illuminance'),
52
- (24, 'KinematicViscosity', 'Kinematic Viscosity', 'm²/s', NULL, 'the diffusion of momentum'),
53
- (25, 'Length', 'Length', 'm', 'meter', 'the extent of something along its greatest dimension or the extent of space between two objects or places'),
54
- (26, 'LuminousFlux', 'Luminous Flux', 'lm', 'lumen', 'a luminous flux'),
55
- (27, 'LuminousIntensity', 'Luminous Intensity', 'cd', 'candela', 'the luminous flux density per solid angle as measured in a given direction relative to the emitting source'),
56
- (28, 'MagneticFlux', 'Magnetic Flux', 'Wb', 'Weber', 'a magnetic flux'),
57
- (29, 'MagneticFluxDensity', 'Magnetic Flux Density', 'T', 'Tesla', 'a magnetic flux density'),
58
- (30, 'Mass', 'Mass', 'kg', 'kilogram', 'the measure of the quantity of matter that a body or an object contains'),
59
- (31, 'MassFlowRate', 'Mass Flow Rate', 'kg/s', 'kilogram per second', 'the movement of mass per time'),
60
- (32, 'Money', 'Money', NULL, NULL, 'something generally accepted as a medium of exchange, a measure of value, or a means of payment'),
61
- (33, 'Power', 'Power', 'W', 'Watt', 'the rate at which work is done'),
62
- (34, 'Pressure', 'Pressure', 'Pa', 'Pascal', 'a force applied uniformly over a surface'),
63
- (35, 'RadiationDoseAbsorbed', 'Radiation Dose Absorbed', 'Gy', 'Gray', 'the amount of energy deposited per unit of mass'),
64
- (36, 'RadiationDoseEffective', 'Radiation Dose Effective', 'equivalent) dose of radiation received by a human or some other living organism. The system unit for this quantity is Sv', 'or "equivalent" dose of radiation received by a human or some other living organism. The system unit for this quantity is "Sv" Sievert', 'the effective (or "equivalent") dose of radiation received by a human or some other living organism'),
65
- (37, 'RadioactiveActivity', 'Radioactive Activity', 'Bq', 'Becquerel', 'a radioactive activity'),
66
- (38, 'SolidAngle', 'Solid Angle', 'sr', 'steradian', 'the angle formed by three or more planes intersecting at a common point'),
67
- (39, 'Temperature', 'Temperature', 'K', 'Kelvin', 'the degree of hotness or coldness of a body or an environment'),
68
- (40, 'Torque', 'Torque', 'N·m', 'Newton-Meter', 'the moment of a force'),
69
- (41, 'Velocity', 'Velocity', 'm/s', 'meter per second', 'a distance traveled divided by the time of travel'),
70
- (42, 'Volume', 'Volume', 'm³', 'cubic meter', 'the amount of space occupied by a three-dimensional object or region of space, expressed in cubic units'),
71
- (43, 'VolumetricDensity', 'Volumetric Density', 'kg/m³', 'kilogram per cubic meter', 'a mass per unit volume of a substance under specified conditions of pressure and temperature'),
72
- (44, 'VolumetricFlowRate', 'Volumetric Flow Rate', 'm³/s', 'cubic meter per second', 'the volume of fluid passing a point in a system per unit of time');
73
-
74
- INSERT INTO measurements.quantities (
75
- id,
76
- name,
77
- label,
78
- unit,
79
- unit_desc,
80
- description
81
- ) VALUES
82
- (45, 'Percent', 'Percent', '%', 'percentage', 'a number or ratio expressed as a fraction of 100'),
83
- (46, 'PartsPerMillion', 'Parts per Million', 'ppm', 'parts per million', 'pseudo-units to describe small values of miscellaneous dimensionless quantities that are pure numbers representing a quantity-per-quantity measure in parts per million'),
84
- (47, 'PartsPerBillion', 'Parts per Billion', 'ppb', 'parts per billion', 'pseudo-units to describe small values of miscellaneous dimensionless quantities that are pure numbers representing a quantity-per-quantity measure in parts per billion');