@b2bc-devkit/sheetorm 0.1.0 → 1.0.0

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.
@@ -1,9 +1,15 @@
1
1
  # SheetORM
2
2
 
3
+ <p>
4
+ <img src="assets/logo.png" alt="SheetORM logo" width="100%" />
5
+ </p>
6
+
3
7
  A TypeScript ORM for Google Sheets running in Google Apps Script (GAS). SheetORM brings a structured,
4
8
  type-safe persistence layer to spreadsheet-based applications with an **ActiveRecord** API — define a class,
5
9
  extend `Record`, and everything just works.
6
10
 
11
+ <img src="assets/demo.gif" alt="SheetORM demo" />
12
+
7
13
  ## Features
8
14
 
9
15
  - **ActiveRecord pattern** — Extend `Record`, define fields, and call `save()` / `find()` / `delete()`
@@ -207,40 +213,11 @@ Car.groupBy("make");
207
213
 
208
214
  See [`examples/cars-crud.ts`](examples/cars-crud.ts) for a complete runnable example.
209
215
 
210
- ## Publishing (Apps Script & npm)
211
-
212
- ### Apps Script library
213
-
214
- - Prerequisites: `npm run login` (clasp), `appsscript.json` configured for your script, and a Script ID to share.
215
- - Run `npm run publish:gas` (or VS Code task “Publish: Apps Script library”). It lints, tests, builds, pushes via `clasp push -f`, creates a new version with `GAS_VERSION_MESSAGE` (default: “SheetORM Apps Script release”), and, if `GAS_DEPLOYMENT_ID` is set, deploys with that description.
216
- - In the Apps Script editor, add the library by Script ID. Use `GasEntrypoints.Record`, `GasEntrypoints.Query`, and `GasEntrypoints.Decorators` in your GAS project; callable menu functions stay limited to `runTests`, `validateTests`, and `runBenchmark`.
217
-
218
- ### npm package
219
-
220
- - Build distributable JS + type definitions with `npm run build:npm` (emits to `dist/npm`).
221
- - Vite stays dedicated to the GAS bundle; the npm build is plain TypeScript output so consumers can use their own bundler.
222
- - Publish with `node scripts/publish-npm.mjs` (or VS Code task “Publish: npm package”); set `NPM_TAG` to publish under a dist-tag if needed. The script runs lint, tests, build, then `npm publish --access public`.
223
- - Import via the bundled aggregator:
224
-
225
- ```ts
226
- import { SheetOrm } from "sheetorm";
227
-
228
- const { Record, Query, Decorators } = SheetOrm;
229
- ```
230
-
231
- - Or import individual surfaces directly: `import { Record } from "sheetorm/core/Record";`, `import { Query } from "sheetorm/query/Query";`, `import { Decorators } from "sheetorm/core/Decorators";`.
232
-
233
- ### VS Code tasks
234
-
235
- Two tasks are available in `.vscode/tasks.json`:
236
-
237
- - `Publish: Apps Script library` → runs `npm run publish:gas`
238
- - `Publish: npm package` → runs `npm run publish:npm`
239
-
240
216
  ## Architecture
241
217
 
242
218
  ```
243
219
  src/
220
+ core/Decorators.ts — @Field, @Indexed, @Required property decorators
244
221
  core/Record.ts — ActiveRecord base class (primary API); tableName = tbl_{Name}s, indexTableName = idx_{Name}s
245
222
  core/RecordConstructor.ts — Constructor contract for Record subclasses
246
223
  core/RecordStatic.ts — Registry-facing static Record contract
@@ -269,11 +246,10 @@ src/
269
246
  index/IndexStore.ts — Secondary index management
270
247
  storage/GoogleSheetAdapter.ts — Native GAS sheet wrapper
271
248
  storage/GoogleSpreadsheetAdapter.ts — Native GAS spreadsheet wrapper
272
- storage/SheetsAPIv4SheetAdapter.ts — Buffered Sheets API v4 sheet wrapper
273
- storage/SheetsAPIv4SpreadsheetAdapter.ts — Buffered Sheets API v4 spreadsheet wrapper
274
249
  core/cache/MemoryCache.ts — In-memory cache implementation
275
250
  utils/Uuid.ts — UUID v4 generation (GAS / fallback)
276
251
  utils/Serialization.ts — Row ↔ Entity conversion
252
+ utils/SheetOrmLogger.ts — Verbose logger for API-call tracing
277
253
  testing/ParityCatalog.ts — Canonical Jest ↔ runtime test case list
278
254
  testing/RuntimeParity.ts — GAS runtime parity suite
279
255
  testing/RuntimeBenchmark.ts — GAS runtime benchmark (Cars + Workers, 1 000 records)
@@ -283,18 +259,6 @@ examples/
283
259
  cars-crud.ts — Full ActiveRecord example
284
260
  ```
285
261
 
286
- ## Code Organization Rules
287
-
288
- Repository conventions are intentionally strict:
289
-
290
- - one exported class / interface / type / enum per file
291
- - no barrel files and no multi-export "grab bag" modules
292
- - exported free functions are not allowed; behavior should live on classes as static methods
293
- - filenames must match the exported artifact name (for example `Record.ts`, `QueryOptions.ts`, `SystemColumns.ts`)
294
- - internal helpers may stay private to a file, but the file's public surface must stay singular and obvious
295
-
296
- When adding new files, follow these rules first and treat them as part of the repository contract.
297
-
298
262
  ## API Reference
299
263
 
300
264
  ### Record (ActiveRecord base class)
@@ -419,19 +383,21 @@ const ids = indexStore.searchCombined("idx_Cars", "model", "320i");
419
383
  npm test
420
384
  ```
421
385
 
422
- Runs **128 unit and benchmark tests** across 9 test suites using Jest + ts-jest with in-memory mock adapters:
386
+ Runs **333 unit and benchmark tests** across 11 test suites using Jest + ts-jest with in-memory mock adapters:
423
387
 
424
388
  | Suite | Tests | Description |
425
389
  | -------------------------- | ----- | -------------------------------------------- |
426
- | `record.test.ts` | 34 | ActiveRecord API (save, find, query, Query) |
427
- | `query-engine.test.ts` | 21 | Filter, sort, paginate, group |
428
- | `serialization.test.ts` | 14 | Row ↔ Entity conversion |
429
- | `query.test.ts` | 11 | Fluent query API |
430
- | `index-store.test.ts` | 11 | Secondary index CRUD |
431
- | `cache.test.ts` | 8 | MemoryCache TTL behavior |
432
- | `uuid.test.ts` | 2 | UUID generation |
390
+ | `record.test.ts` | 74 | ActiveRecord API (save, find, query, Query) |
391
+ | `query-engine.test.ts` | 60 | Filter, sort, paginate, group |
392
+ | `serialization.test.ts` | 47 | Row ↔ Entity conversion |
393
+ | `index-store.test.ts` | 44 | Secondary index CRUD |
394
+ | `query.test.ts` | 41 | Fluent query API |
395
+ | `sheet-repository.test.ts` | 35 | SheetRepository CRUD, batch, hooks |
396
+ | `cache.test.ts` | 16 | MemoryCache TTL behavior |
397
+ | `benchmark.test.ts` | 6 | 1 000-record perf benchmark: Cars vs Workers |
398
+ | `uuid.test.ts` | 5 | UUID generation |
433
399
  | `parity-validator.test.ts` | 3 | Jest ↔ GAS runtime parity check |
434
- | `benchmark.test.ts` | 4 | 1 000-record perf benchmark: Cars vs Workers |
400
+ | `sheetorm.test.ts` | 2 | npm entry point smoke tests |
435
401
 
436
402
  ### Benchmark Tests (`benchmark.test.ts`)
437
403
 
@@ -482,7 +448,7 @@ npm test
482
448
 
483
449
  Run in Google Apps Script (real Sheets API):
484
450
 
485
- - `runTests()` — executes full runtime parity suite against the active spreadsheet
451
+ - `runTestsStageOne()` / `runTestsStageTwo()` / `runTestsStageThree()` staged runtime parity suite
486
452
  - `validateTests()` — validates mapping only (fast drift check)
487
453
 
488
454
  ### GAS Runtime Benchmark
@@ -497,25 +463,21 @@ Run in Google Apps Script (real Sheets API):
497
463
 
498
464
  ## Exposed GAS Functions
499
465
 
500
- Only three callable functions are surfaced as GAS globals (visible in the Apps Script editor Run menu and
466
+ The following callable functions are surfaced as GAS globals (visible in the Apps Script editor Run menu and
501
467
  callable as triggers). Everything else is an internal implementation detail bundled into `Code.js`.
502
468
 
503
- | Function | Signature | Purpose | When to use |
504
- | --------------- | ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
505
- | `runTests` | `runTests(): void` | Executes the full runtime parity suite (all ~146 test cases) against the active Google Spreadsheet. Logs per-test PASS/FAIL to `Logger` and cleans up all temporary sheets after the run. | After deploying a new version of SheetORM to GAS to verify the real Sheets API behaves identically to the Jest mock suite. |
506
- | `validateTests` | `validateTests(): void` | Checks that every Jest test case has a matching GAS handler (and vice versa). Throws immediately if the two catalogs have drifted — no Sheets API calls made. | Quick sanity check during development; runs in milliseconds without touching any spreadsheet. |
507
- | `runBenchmark` | `runBenchmark(): void` | Runs a write/read/query/delete cycle for Cars (with `@Indexed`) and Workers (without `@Indexed`) using 100 records each. Logs per-operation timings and a comparison summary to `Logger`. | Measuring real-world Sheets API performance and understanding the latency trade-off of `@Indexed` versus plain tables. |
508
-
509
- ## CI
510
-
511
- GitHub Actions workflow at `.github/workflows/ci.yml`:
512
-
513
- 1. TypeScript type-check (`tsc --noEmit`)
514
- 2. Unit tests (`npm test`)
515
- 3. Production build (`npm run build`)
516
- 4. Verify `Code.js` output exists
517
-
518
- Matrix: Node 18, 20, 22.
469
+ | Function | Purpose |
470
+ | ---------------------- | ------------------------------------------------------------------------------------------------ |
471
+ | `runTestsStageOne()` | Stage-one parity tests (basic CRUD + query) against the active spreadsheet. |
472
+ | `runTestsStageTwo()` | Stage-two parity tests (indexes + search). |
473
+ | `runTestsStageThree()` | Stage-three parity tests (advanced queries + pagination). |
474
+ | `validateTests()` | Checks Jest ↔ GAS handler mapping parity — no Sheets API calls, fails immediately on drift. |
475
+ | `runBenchmark()` | Write/read/query/delete cycle for Cars + Workers (100 records each); logs per-operation timings. |
476
+ | `removeAllSheets()` | Deletes every sheet in the active spreadsheet (destructive — use with caution). |
477
+ | `demoCreate()` | Creates 5 sample DemoCar records in the sheet. |
478
+ | `demoRead()` | Reads and logs DemoCar records using find/query/where. |
479
+ | `demoUpdate()` | Updates existing DemoCar records and logs changes. |
480
+ | `demoDelete()` | Deletes DemoCar records and verifies removal. |
519
481
 
520
482
  ## Available Scripts
521
483
 
@@ -526,8 +488,6 @@ Matrix: Node 18, 20, 22.
526
488
  | `npm run lint` | Lint with ESLint |
527
489
  | `npm run format` | Format with Prettier |
528
490
  | `npm run login` | Authenticate with Google Apps Script (once) |
529
- | `npm run push` | Build + push to GAS |
530
- | `npm run deploy` | Build + push + create versioned deployment |
531
491
 
532
492
  ## Sheet Layout
533
493
 
@@ -543,18 +503,22 @@ Special sheets:
543
503
 
544
504
  ## Storage Adapters
545
505
 
546
- SheetORM separates sheet I/O behind two interfaces defined in `src/core/types/ISheetAdapter.ts` and `src/core/types/ISpreadsheetAdapter.ts`:
506
+ SheetORM separates sheet I/O behind two interfaces defined in `src/core/types/ISheetAdapter.ts` and
507
+ `src/core/types/ISpreadsheetAdapter.ts`:
547
508
 
548
- - **`ISpreadsheetAdapter`** — spreadsheet-level operations: `getSheetByName`, `createSheet`, `deleteSheet`, `getSheetNames`
549
- - **`ISheetAdapter`** — sheet-level operations: read (`getAllData`, `getHeaders`, `getRow`, …), write (`appendRows`, `writeRowsAt`, `updateRow`, …), `clear`, `flush`
509
+ - **`ISpreadsheetAdapter`** — spreadsheet-level operations: `getSheetByName`, `createSheet`, `deleteSheet`,
510
+ `getSheetNames`
511
+ - **`ISheetAdapter`** — sheet-level operations: read (`getAllData`, `getHeaders`, `getRow`, …), write
512
+ (`appendRows`, `writeRowsAt`, `updateRow`, …), `clear`, `flush`
550
513
 
551
- Two production adapters are provided. Both implement the full interface; they differ only in how write calls reach Google Sheets.
514
+ One production adapter pair is provided:
552
515
 
553
516
  ### `GoogleSpreadsheetAdapter` / `GoogleSheetAdapter`
554
517
 
555
518
  **Location**: `src/storage/GoogleSpreadsheetAdapter.ts`, `src/storage/GoogleSheetAdapter.ts`
556
519
 
557
- Uses the native GAS `SpreadsheetApp` / `Sheet` objects directly. This is the default adapter — no configuration required.
520
+ Uses the native GAS `SpreadsheetApp` / `Sheet` objects directly. This is the default adapter — no
521
+ configuration required.
558
522
 
559
523
  ```ts
560
524
  import { GoogleSpreadsheetAdapter } from "./src/storage/GoogleSpreadsheetAdapter";
@@ -569,93 +533,29 @@ Registry.getInstance().configure({
569
533
  });
570
534
  ```
571
535
 
572
- | Property | Value |
573
- | -------------------- | ------------------------------------------------------------------ |
574
- | Write mechanism | `Range.setValues()` — GAS native API |
575
- | Calls per `saveAll` | **2** — one `setValues` for entity sheet + one for index sheet |
576
- | Flush required | No — writes are synchronous and immediately visible |
577
- | Quota impact | Counts against SpreadsheetApp call budget (no daily UrlFetch quota)|
578
- | Read operations | Native `Range.getValues()` |
579
- | GAS V8 latency | ~300–500 ms per `setValues` call on large ranges |
580
- | Best for | All production use; default choice |
581
-
582
- ### `SheetsAPIv4SpreadsheetAdapter` / `SheetsAPIv4SheetAdapter`
583
-
584
- **Location**: `src/storage/SheetsAPIv4SpreadsheetAdapter.ts`, `src/storage/SheetsAPIv4SheetAdapter.ts`
585
-
586
- Buffers all write operations (`writeRowsAt`, `appendRows`) in memory as A1-notation `ValueRange` objects and sends them all in a **single HTTP `spreadsheets.values.batchUpdate` request** when `flushAllPending()` is called. Read operations still use the native GAS API (the ORM reads from in-memory cache after `saveAll`, so extra sheet reads are rare).
587
-
588
- ```ts
589
- import { SheetsAPIv4SpreadsheetAdapter } from "./src/storage/SheetsAPIv4SpreadsheetAdapter";
590
- import { Registry } from "./src/core/Registry";
591
-
592
- const v4 = new SheetsAPIv4SpreadsheetAdapter(); // uses active spreadsheet
593
- Registry.getInstance().configure({ adapter: v4 });
594
-
595
- MyRecord.saveAll(items); // buffers entity rows + index rows in memory
596
- v4.flushAllPending(); // ONE HTTP batchUpdate — both sheets at once
597
- ```
598
-
599
- | Property | Value |
600
- | -------------------- | -------------------------------------------------------------------------- |
601
- | Write mechanism | `UrlFetchApp.fetch()` → Sheets REST API v4 `values:batchUpdate` |
602
- | Calls per `saveAll` | **1** — entity sheet + index sheet rows combined in one HTTP request |
603
- | Flush required | **Yes** — call `v4.flushAllPending()` after each `saveAll` (or batch) |
604
- | Auth | `ScriptApp.getOAuthToken()` — reuses the existing `spreadsheets` scope |
605
- | Quota impact | `UrlFetchApp` quota: 20 000 calls/day per script |
606
- | Read operations | Native `Range.getValues()` — unchanged |
607
- | GAS V8 latency | 1 HTTP round-trip instead of N `setValues()` calls |
608
- | Best for | Benchmarking / high-volume batch imports where minimising API calls matters |
609
-
610
- **Required OAuth scopes** (already set in `appsscript.json`):
611
-
612
- ```json
613
- "oauthScopes": [
614
- "https://www.googleapis.com/auth/spreadsheets",
615
- "https://www.googleapis.com/auth/script.external_request"
616
- ]
617
- ```
618
-
619
- ### Adapter comparison
620
-
621
- | Criterion | `GoogleSpreadsheetAdapter` | `SheetsAPIv4SpreadsheetAdapter` |
622
- | --------------------------- | :------------------------: | :-----------------------------: |
623
- | Setup complexity | None | Requires `flushAllPending()` call |
624
- | Write batching | 2 calls per `saveAll` | 1 HTTP call per flush |
625
- | Flush step needed | No | Yes |
626
- | UrlFetch daily quota used | No | Yes (1 per flush) |
627
- | Works without internet auth | Yes (native GAS) | No (needs `UrlFetchApp`) |
628
- | In-band error visibility | Immediate on write | Deferred to flush |
629
- | Recommended default | ✅ Yes | Only for bulk-write optimisation |
630
-
631
- The `GoogleSpreadsheetAdapter` is the default and recommended choice for all production use. The `SheetsAPIv4SpreadsheetAdapter` is provided as an opt-in for scenarios where reducing the number of GAS API calls is the primary concern (e.g. large batch imports exceeding GAS execution-time limits).
536
+ | Property | Value |
537
+ | ------------------- | ------------------------------------------------------------------- |
538
+ | Write mechanism | `Range.setValues()` — GAS native API |
539
+ | Calls per `saveAll` | **2** — one `setValues` for entity sheet + one for index sheet |
540
+ | Flush required | No — writes are synchronous and immediately visible |
541
+ | Quota impact | Counts against SpreadsheetApp call budget (no daily UrlFetch quota) |
542
+ | Read operations | Native `Range.getValues()` |
543
+ | GAS V8 latency | ~300–500 ms per `setValues` call on large ranges |
544
+ | Best for | All production use; default choice |
632
545
 
633
546
  ## Development Notes
634
547
 
635
548
  ### Exposing Functions to GAS
636
549
 
637
- `src/index.ts` now exports a single `GasEntrypoints` class. During bundling, the Vite GAS plugin maps its
638
- static methods to GAS globals (`runTests`, `validateTests`, `runBenchmark`) and also emits matching stub
639
- functions so that Apps Script still shows them in the Run menu.
640
-
641
- ```ts
642
- export class GasEntrypoints {
643
- static runTests(): void {
644
- RuntimeParity.run();
645
- }
550
+ `src/index.ts` exports a single `GasEntrypoints` class. During bundling, the Vite GAS plugin maps its static
551
+ methods to GAS globals and emits matching stub functions so that Apps Script shows them in the Run menu.
646
552
 
647
- static validateTests(): void {
648
- RuntimeParity.validate();
649
- }
650
-
651
- static runBenchmark(): void {
652
- RuntimeBenchmark.run();
653
- }
654
- }
655
- ```
553
+ GAS-callable methods include staged test runners (`runTestsStageOne`/`Two`/`Three`), `validateTests`,
554
+ `runBenchmark`, `removeAllSheets`, and four CRUD demos (`demoCreate`, `demoRead`, `demoUpdate`, `demoDelete`).
555
+ The class also exposes core API classes (`Record`, `Query`, `Decorators`, `IndexStore`, `Registry`,
556
+ `SheetOrmLogger`) as static readonly fields for use inside GAS scripts.
656
557
 
657
- This keeps the source aligned with the repository rule of one public export per file while preserving the same
658
- three callable GAS entrypoints.
558
+ This keeps the source aligned with the repository rule of one public export per file.
659
559
 
660
560
  ### Circular Dependencies
661
561
 
@@ -669,4 +569,4 @@ included in this template):
669
569
 
670
570
  ## License
671
571
 
672
- GPL-2.0 — see [license.md](license.md).
572
+ GPL-3.0-or-later — see [license.md](license.md).
package/license.md CHANGED
@@ -1,18 +1,475 @@
1
- MIT License
1
+ # GNU GENERAL PUBLIC LICENSE
2
2
 
3
- Copyright (c) 2023 Ian Sanders
3
+ Version 3, 29 June 2007
4
4
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
6
- documentation files (the "Software"), to deal in the Software without restriction, including without
7
- limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
8
- Software, and to permit persons to whom the Software is furnished to do so, subject to the following
9
- conditions:
5
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
10
6
 
11
- The above copyright notice and this permission notice shall be included in all copies or substantial portions
12
- of the Software.
7
+ Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not
8
+ allowed.
13
9
 
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
15
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16
- THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
17
- CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
18
- DEALINGS IN THE SOFTWARE.
10
+ ## Preamble
11
+
12
+ The GNU General Public License is a free, copyleft license for software and other kinds of works.
13
+
14
+ The licenses for most software and other practical works are designed to take away your freedom to share and
15
+ change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share
16
+ and change all versions of a program--to make sure it remains free software for all its users. We, the Free
17
+ Software Foundation, use the GNU General Public License for most of our software; it applies also to any other
18
+ work released this way by its authors. You can apply it to your programs, too.
19
+
20
+ When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are
21
+ designed to make sure that you have the freedom to distribute copies of free software (and charge for them if
22
+ you wish), that you receive source code or can get it if you want it, that you can change the software or use
23
+ pieces of it in new free programs, and that you know you can do these things.
24
+
25
+ To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the
26
+ rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you
27
+ modify it: responsibilities to respect the freedom of others.
28
+
29
+ For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the
30
+ recipients the same freedoms that you received. You must make sure that they, too, receive or can get the
31
+ source code. And you must show them these terms so they know their rights.
32
+
33
+ Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and
34
+ (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
35
+
36
+ For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free
37
+ software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so
38
+ that their problems will not be attributed erroneously to authors of previous versions.
39
+
40
+ Some devices are designed to deny users access to install or run modified versions of the software inside
41
+ them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting
42
+ users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for
43
+ individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version
44
+ of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains,
45
+ we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect
46
+ the freedom of users.
47
+
48
+ Finally, every program is threatened constantly by software patents. States should not allow patents to
49
+ restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid
50
+ the special danger that patents applied to a free program could make it effectively proprietary. To prevent
51
+ this, the GPL assures that patents cannot be used to render the program non-free.
52
+
53
+ The precise terms and conditions for copying, distribution and modification follow.
54
+
55
+ ## TERMS AND CONDITIONS
56
+
57
+ ### 0. Definitions.
58
+
59
+ "This License" refers to version 3 of the GNU General Public License.
60
+
61
+ "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
62
+
63
+ "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as
64
+ "you". "Licensees" and "recipients" may be individuals or organizations.
65
+
66
+ To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright
67
+ permission, other than the making of an exact copy. The resulting work is called a "modified version" of the
68
+ earlier work or a work "based on" the earlier work.
69
+
70
+ A "covered work" means either the unmodified Program or a work based on the Program.
71
+
72
+ To "propagate" a work means to do anything with it that, without permission, would make you directly or
73
+ secondarily liable for infringement under applicable copyright law, except executing it on a computer or
74
+ modifying a private copy. Propagation includes copying, distribution (with or without modification), making
75
+ available to the public, and in some countries other activities as well.
76
+
77
+ To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere
78
+ interaction with a user through a computer network, with no transfer of a copy, is not conveying.
79
+
80
+ An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient
81
+ and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that
82
+ there is no warranty for the work (except to the extent that warranties are provided), that licensees may
83
+ convey the work under this License, and how to view a copy of this License. If the interface presents a list
84
+ of user commands or options, such as a menu, a prominent item in the list meets this criterion.
85
+
86
+ ### 1. Source Code.
87
+
88
+ The "source code" for a work means the preferred form of the work for making modifications to it. "Object
89
+ code" means any non-source form of a work.
90
+
91
+ A "Standard Interface" means an interface that either is an official standard defined by a recognized
92
+ standards body, or, in the case of interfaces specified for a particular programming language, one that is
93
+ widely used among developers working in that language.
94
+
95
+ The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is
96
+ included in the normal form of packaging a Major Component, but which is not part of that Major Component, and
97
+ (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for
98
+ which an implementation is available to the public in source code form. A "Major Component", in this context,
99
+ means a major essential component (kernel, window system, and so on) of the specific operating system (if any)
100
+ on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used
101
+ to run it.
102
+
103
+ The "Corresponding Source" for a work in object code form means all the source code needed to generate,
104
+ install, and (for an executable work) run the object code and to modify the work, including scripts to control
105
+ those activities. However, it does not include the work's System Libraries, or general-purpose tools or
106
+ generally available free programs which are used unmodified in performing those activities but which are not
107
+ part of the work. For example, Corresponding Source includes interface definition files associated with source
108
+ files for the work, and the source code for shared libraries and dynamically linked subprograms that the work
109
+ is specifically designed to require, such as by intimate data communication or control flow between those
110
+ subprograms and other parts of the work.
111
+
112
+ The Corresponding Source need not include anything that users can regenerate automatically from other parts of
113
+ the Corresponding Source.
114
+
115
+ The Corresponding Source for a work in source code form is that same work.
116
+
117
+ ### 2. Basic Permissions.
118
+
119
+ All rights granted under this License are granted for the term of copyright on the Program, and are
120
+ irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission
121
+ to run the unmodified Program. The output from running a covered work is covered by this License only if the
122
+ output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or
123
+ other equivalent, as provided by copyright law.
124
+
125
+ You may make, run and propagate covered works that you do not convey, without conditions so long as your
126
+ license otherwise remains in force. You may convey covered works to others for the sole purpose of having them
127
+ make modifications exclusively for you, or provide you with facilities for running those works, provided that
128
+ you comply with the terms of this License in conveying all material for which you do not control copyright.
129
+ Those thus making or running the covered works for you must do so exclusively on your behalf, under your
130
+ direction and control, on terms that prohibit them from making any copies of your copyrighted material outside
131
+ their relationship with you.
132
+
133
+ Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is
134
+ not allowed; section 10 makes it unnecessary.
135
+
136
+ ### 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
137
+
138
+ No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling
139
+ obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws
140
+ prohibiting or restricting circumvention of such measures.
141
+
142
+ When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to
143
+ the extent such circumvention is effected by exercising rights under this License with respect to the covered
144
+ work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing,
145
+ against the work's users, your or third parties' legal rights to forbid circumvention of technological
146
+ measures.
147
+
148
+ ### 4. Conveying Verbatim Copies.
149
+
150
+ You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that
151
+ you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all
152
+ notices stating that this License and any non-permissive terms added in accord with section 7 apply to the
153
+ code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License
154
+ along with the Program.
155
+
156
+ You may charge any price or no price for each copy that you convey, and you may offer support or warranty
157
+ protection for a fee.
158
+
159
+ ### 5. Conveying Modified Source Versions.
160
+
161
+ You may convey a work based on the Program, or the modifications to produce it from the Program, in the form
162
+ of source code under the terms of section 4, provided that you also meet all of these conditions:
163
+
164
+ - a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
165
+ - b) The work must carry prominent notices stating that it is released under this License and any conditions
166
+ added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices".
167
+ - c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a
168
+ copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole
169
+ of the work, and all its parts, regardless of how they are packaged. This License gives no permission to
170
+ license the work in any other way, but it does not invalidate such permission if you have separately
171
+ received it.
172
+ - d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the
173
+ Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make
174
+ them do so.
175
+
176
+ A compilation of a covered work with other separate and independent works, which are not by their nature
177
+ extensions of the covered work, and which are not combined with it such as to form a larger program, in or on
178
+ a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting
179
+ copyright are not used to limit the access or legal rights of the compilation's users beyond what the
180
+ individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to
181
+ the other parts of the aggregate.
182
+
183
+ ### 6. Conveying Non-Source Forms.
184
+
185
+ You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also
186
+ convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
187
+
188
+ - a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium),
189
+ accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software
190
+ interchange.
191
+ - b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium),
192
+ accompanied by a written offer, valid for at least three years and valid for as long as you offer spare
193
+ parts or customer support for that product model, to give anyone who possesses the object code either (1) a
194
+ copy of the Corresponding Source for all the software in the product that is covered by this License, on a
195
+ durable physical medium customarily used for software interchange, for a price no more than your reasonable
196
+ cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from
197
+ a network server at no charge.
198
+ - c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding
199
+ Source. This alternative is allowed only occasionally and noncommercially, and only if you received the
200
+ object code with such an offer, in accord with subsection 6b.
201
+ - d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer
202
+ equivalent access to the Corresponding Source in the same way through the same place at no further charge.
203
+ You need not require recipients to copy the Corresponding Source along with the object code. If the place to
204
+ copy the object code is a network server, the Corresponding Source may be on a different server (operated by
205
+ you or a third party) that supports equivalent copying facilities, provided you maintain clear directions
206
+ next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the
207
+ Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy
208
+ these requirements.
209
+ - e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object
210
+ code and Corresponding Source of the work are being offered to the general public at no charge under
211
+ subsection 6d.
212
+
213
+ A separable portion of the object code, whose source code is excluded from the Corresponding Source as a
214
+ System Library, need not be included in conveying the object code work.
215
+
216
+ A "User Product" is either (1) a "consumer product", which means any tangible personal property which is
217
+ normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation
218
+ into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in
219
+ favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical
220
+ or common use of that class of product, regardless of the status of the particular user or of the way in which
221
+ the particular user actually uses, or expects or is expected to use, the product. A product is a consumer
222
+ product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless
223
+ such uses represent the only significant mode of use of the product.
224
+
225
+ "Installation Information" for a User Product means any methods, procedures, authorization keys, or other
226
+ information required to install and execute modified versions of a covered work in that User Product from a
227
+ modified version of its Corresponding Source. The information must suffice to ensure that the continued
228
+ functioning of the modified object code is in no case prevented or interfered with solely because modification
229
+ has been made.
230
+
231
+ If you convey an object code work under this section in, or with, or specifically for use in, a User Product,
232
+ and the conveying occurs as part of a transaction in which the right of possession and use of the User Product
233
+ is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is
234
+ characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation
235
+ Information. But this requirement does not apply if neither you nor any third party retains the ability to
236
+ install modified object code on the User Product (for example, the work has been installed in ROM).
237
+
238
+ The requirement to provide Installation Information does not include a requirement to continue to provide
239
+ support service, warranty, or updates for a work that has been modified or installed by the recipient, or for
240
+ the User Product in which it has been modified or installed. Access to a network may be denied when the
241
+ modification itself materially and adversely affects the operation of the network or violates the rules and
242
+ protocols for communication across the network.
243
+
244
+ Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a
245
+ format that is publicly documented (and with an implementation available to the public in source code form),
246
+ and must require no special password or key for unpacking, reading or copying.
247
+
248
+ ### 7. Additional Terms.
249
+
250
+ "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or
251
+ more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as
252
+ though they were included in this License, to the extent that they are valid under applicable law. If
253
+ additional permissions apply only to part of the Program, that part may be used separately under those
254
+ permissions, but the entire Program remains governed by this License without regard to the additional
255
+ permissions.
256
+
257
+ When you convey a copy of a covered work, you may at your option remove any additional permissions from that
258
+ copy, or from any part of it. (Additional permissions may be written to require their own removal in certain
259
+ cases when you modify the work.) You may place additional permissions on material, added by you to a covered
260
+ work, for which you have or can give appropriate copyright permission.
261
+
262
+ Notwithstanding any other provision of this License, for material you add to a covered work, you may (if
263
+ authorized by the copyright holders of that material) supplement the terms of this License with terms:
264
+
265
+ - a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this
266
+ License; or
267
+ - b) Requiring preservation of specified reasonable legal notices or author attributions in that material or
268
+ in the Appropriate Legal Notices displayed by works containing it; or
269
+ - c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such
270
+ material be marked in reasonable ways as different from the original version; or
271
+ - d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
272
+ - e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks;
273
+ or
274
+ - f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material
275
+ (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability
276
+ that these contractual assumptions directly impose on those licensors and authors.
277
+
278
+ All other non-permissive additional terms are considered "further restrictions" within the meaning of
279
+ section 10. If the Program as you received it, or any part of it, contains a notice stating that it is
280
+ governed by this License along with a term that is a further restriction, you may remove that term. If a
281
+ license document contains a further restriction but permits relicensing or conveying under this License, you
282
+ may add to a covered work material governed by the terms of that license document, provided that the further
283
+ restriction does not survive such relicensing or conveying.
284
+
285
+ If you add terms to a covered work in accord with this section, you must place, in the relevant source files,
286
+ a statement of the additional terms that apply to those files, or a notice indicating where to find the
287
+ applicable terms.
288
+
289
+ Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or
290
+ stated as exceptions; the above requirements apply either way.
291
+
292
+ ### 8. Termination.
293
+
294
+ You may not propagate or modify a covered work except as expressly provided under this License. Any attempt
295
+ otherwise to propagate or modify it is void, and will automatically terminate your rights under this License
296
+ (including any patent licenses granted under the third paragraph of section 11).
297
+
298
+ However, if you cease all violation of this License, then your license from a particular copyright holder is
299
+ reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your
300
+ license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable
301
+ means prior to 60 days after the cessation.
302
+
303
+ Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder
304
+ notifies you of the violation by some reasonable means, this is the first time you have received notice of
305
+ violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30
306
+ days after your receipt of the notice.
307
+
308
+ Termination of your rights under this section does not terminate the licenses of parties who have received
309
+ copies or rights from you under this License. If your rights have been terminated and not permanently
310
+ reinstated, you do not qualify to receive new licenses for the same material under section 10.
311
+
312
+ ### 9. Acceptance Not Required for Having Copies.
313
+
314
+ You are not required to accept this License in order to receive or run a copy of the Program. Ancillary
315
+ propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive
316
+ a copy likewise does not require acceptance. However, nothing other than this License grants you permission to
317
+ propagate or modify any covered work. These actions infringe copyright if you do not accept this License.
318
+ Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
319
+
320
+ ### 10. Automatic Licensing of Downstream Recipients.
321
+
322
+ Each time you convey a covered work, the recipient automatically receives a license from the original
323
+ licensors, to run, modify and propagate that work, subject to this License. You are not responsible for
324
+ enforcing compliance by third parties with this License.
325
+
326
+ An "entity transaction" is a transaction transferring control of an organization, or substantially all assets
327
+ of one, or subdividing an organization, or merging organizations. If propagation of a covered work results
328
+ from an entity transaction, each party to that transaction who receives a copy of the work also receives
329
+ whatever licenses to the work the party's predecessor in interest had or could give under the previous
330
+ paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in
331
+ interest, if the predecessor has it or can get it with reasonable efforts.
332
+
333
+ You may not impose any further restrictions on the exercise of the rights granted or affirmed under this
334
+ License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights
335
+ granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a
336
+ lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or
337
+ importing the Program or any portion of it.
338
+
339
+ ### 11. Patents.
340
+
341
+ A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which
342
+ the Program is based. The work thus licensed is called the contributor's "contributor version".
343
+
344
+ A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor,
345
+ whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this
346
+ License, of making, using, or selling its contributor version, but do not include claims that would be
347
+ infringed only as a consequence of further modification of the contributor version. For purposes of this
348
+ definition, "control" includes the right to grant patent sublicenses in a manner consistent with the
349
+ requirements of this License.
350
+
351
+ Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's
352
+ essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate
353
+ the contents of its contributor version.
354
+
355
+ In the following three paragraphs, a "patent license" is any express agreement or commitment, however
356
+ denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to
357
+ sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or
358
+ commitment not to enforce a patent against the party.
359
+
360
+ If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work
361
+ is not available for anyone to copy, free of charge and under the terms of this License, through a publicly
362
+ available network server or other readily accessible means, then you must either (1) cause the Corresponding
363
+ Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this
364
+ particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the
365
+ patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the
366
+ patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a
367
+ country, would infringe one or more identifiable patents in that country that you have reason to believe are
368
+ valid.
369
+
370
+ If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by
371
+ procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the
372
+ covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then
373
+ the patent license you grant is automatically extended to all recipients of the covered work and works based
374
+ on it.
375
+
376
+ A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the
377
+ exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted
378
+ under this License. You may not convey a covered work if you are a party to an arrangement with a third party
379
+ that is in the business of distributing software, under which you make payment to the third party based on the
380
+ extent of your activity of conveying the work, and under which the third party grants, to any of the parties
381
+ who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of
382
+ the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection
383
+ with specific products or compilations that contain the covered work, unless you entered into that
384
+ arrangement, or that patent license was granted, prior to 28 March 2007.
385
+
386
+ Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to
387
+ infringement that may otherwise be available to you under applicable patent law.
388
+
389
+ ### 12. No Surrender of Others' Freedom.
390
+
391
+ If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the
392
+ conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a
393
+ covered work so as to satisfy simultaneously your obligations under this License and any other pertinent
394
+ obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that
395
+ obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only
396
+ way you could satisfy both those terms and this License would be to refrain entirely from conveying the
397
+ Program.
398
+
399
+ ### 13. Use with the GNU Affero General Public License.
400
+
401
+ Notwithstanding any other provision of this License, you have permission to link or combine any covered work
402
+ with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and
403
+ to convey the resulting work. The terms of this License will continue to apply to the part which is the
404
+ covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning
405
+ interaction through a network will apply to the combination as such.
406
+
407
+ ### 14. Revised Versions of this License.
408
+
409
+ The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from
410
+ time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to
411
+ address new problems or concerns.
412
+
413
+ Each version is given a distinguishing version number. If the Program specifies that a certain numbered
414
+ version of the GNU General Public License "or any later version" applies to it, you have the option of
415
+ following the terms and conditions either of that numbered version or of any later version published by the
416
+ Free Software Foundation. If the Program does not specify a version number of the GNU General Public License,
417
+ you may choose any version ever published by the Free Software Foundation.
418
+
419
+ If the Program specifies that a proxy can decide which future versions of the GNU General Public License can
420
+ be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that
421
+ version for the Program.
422
+
423
+ Later license versions may give you additional or different permissions. However, no additional obligations
424
+ are imposed on any author or copyright holder as a result of your choosing to follow a later version.
425
+
426
+ ### 15. Disclaimer of Warranty.
427
+
428
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED
429
+ IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY
430
+ KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
431
+ AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH
432
+ YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
433
+
434
+ ### 16. Limitation of Liability.
435
+
436
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER
437
+ PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
438
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM
439
+ (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR
440
+ THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
441
+ PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
442
+
443
+ ### 17. Interpretation of Sections 15 and 16.
444
+
445
+ If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect
446
+ according to their terms, reviewing courts shall apply local law that most closely approximates an absolute
447
+ waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability
448
+ accompanies a copy of the Program in return for a fee.
449
+
450
+ END OF TERMS AND CONDITIONS
451
+
452
+ ## How to Apply These Terms to Your New Programs
453
+
454
+ If you develop a new program, and you want it to be of the greatest possible use to the public, the best way
455
+ to achieve this is to make it free software which everyone can redistribute and change under these terms.
456
+
457
+ To do so, attach the following notices to the program. It is safest to attach them to the start of each source
458
+ file to most effectively state the exclusion of warranty; and each file should have at least the "copyright"
459
+ line and a pointer to where the full notice is found.
460
+
461
+ SheetORM — A TypeScript ORM for Google Sheets.
462
+ Copyright (C) 2025 b2bc-devkit
463
+
464
+ This program is free software: you can redistribute it and/or modify
465
+ it under the terms of the GNU General Public License as published by
466
+ the Free Software Foundation, either version 3 of the License, or
467
+ (at your option) any later version.
468
+
469
+ This program is distributed in the hope that it will be useful,
470
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
471
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
472
+ GNU General Public License for more details.
473
+
474
+ You should have received a copy of the GNU General Public License
475
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b2bc-devkit/sheetorm",
3
- "version": "0.1.0",
3
+ "version": "1.0.0",
4
4
  "description": "TypeScript ORM for Google Sheets (Google Apps Script runtime)",
5
5
  "type": "module",
6
6
  "license": "GPL-3.0-or-later",
@@ -49,6 +49,14 @@
49
49
  },
50
50
  "./package.json": "./package.json"
51
51
  },
52
+ "repository": {
53
+ "type": "git",
54
+ "url": "https://github.com/b2bc-devkit/SheetORM.git"
55
+ },
56
+ "homepage": "https://github.com/b2bc-devkit/SheetORM#readme",
57
+ "bugs": {
58
+ "url": "https://github.com/b2bc-devkit/SheetORM/issues"
59
+ },
52
60
  "publishConfig": {
53
61
  "access": "public"
54
62
  },