skif-darwin-x64 0.0.0 → 0.1.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.
@@ -0,0 +1,178 @@
1
+ # Attributions
2
+
3
+ This document acknowledges sources of forked or copied code used in the skif project. Ordinary
4
+ crates.io dependencies are tracked in `Cargo.toml` / `Cargo.lock` and governed by `deny.toml`; this
5
+ file covers code that was **copied or derived** into the repository from other projects.
6
+
7
+ ## sherif
8
+
9
+ A zero-config linter for TypeScript and JavaScript monorepos. skif began as a fork of sherif and was
10
+ rebuilt as a clean, restructured codebase; the workspace and manifest rules are ported from it.
11
+
12
+ - **Source**: <https://github.com/QuiiBz/sherif>
13
+ - **Upstream commit**: `1eeac7104af1a6143d7f5d17d18d11635222ca8d`
14
+ - **License**: MIT
15
+ - **Authors**: Tom Lienard and the sherif contributors
16
+ - **Copyright**: Copyright (c) 2023 Tom Lienard
17
+ - **Location**: `crates/skif-rules` and `crates/skif-workspace` (rule logic, package and workspace collection)
18
+ - **Purpose**: Monorepo workspace rules (dependency hygiene, root and member `package.json`
19
+ checks, workspace discovery for npm, yarn and pnpm) and their autofixes.
20
+
21
+ ### Modifications
22
+
23
+ - Renamed from sherif to skif; the crate, binary, repository, and distribution surface are new.
24
+ - Restructured from a single binary crate into a library-first workspace of `skif-*` crates.
25
+ - Rules are rewritten and renamed to stable rule IDs, with structured diagnostics instead of
26
+ pre-rendered messages.
27
+ - Configuration comes from `skif.toml` / `.skif.toml` and CLI flags; the `sherif` key in
28
+ `package.json` and the `sherif.config.jsonc` / `.sherifrc.jsonc` files are not supported.
29
+ - The upstream GitHub Action, npm packaging, and website assets were removed.
30
+
31
+ ### License Compatibility
32
+
33
+ MIT is permissive and compatible with skif's MIT license. The upstream license text follows.
34
+
35
+ ```text
36
+ MIT License
37
+
38
+ Copyright (c) 2023 Tom Lienard
39
+
40
+ Permission is hereby granted, free of charge, to any person obtaining a copy
41
+ of this software and associated documentation files (the "Software"), to deal
42
+ in the Software without restriction, including without limitation the rights
43
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
44
+ copies of the Software, and to permit persons to whom the Software is
45
+ furnished to do so, subject to the following conditions:
46
+
47
+ The above copyright notice and this permission notice shall be included in all
48
+ copies or substantial portions of the Software.
49
+
50
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
51
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
52
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
53
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
54
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
55
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
56
+ SOFTWARE.
57
+ ```
58
+
59
+ ## syncpack specifier
60
+
61
+ The npm dependency specifier parser and comparator from syncpack, a consistent-versions tool for
62
+ JavaScript monorepos.
63
+
64
+ - **Source**: <https://github.com/JamieMason/syncpack>
65
+ - **Upstream path**: `crates/syncpack-specifier`
66
+ - **Upstream commit**: `958d30689ac24b60623258630242330bd6d0264b`
67
+ - **License**: MIT
68
+ - **Copyright**: Copyright (c) 2017-2023 Jamie Mason
69
+ - **Location**: `crates/skif-specifier`
70
+ - **Purpose**: Parsing, classification, ordering, and semver comparison of npm dependency
71
+ specifiers (exact, ranges, workspace protocol, aliases, git, tags, and so on).
72
+
73
+ ### Modifications
74
+
75
+ 1. Every vendored source file carries a header comment naming its upstream path and commit.
76
+ 2. Thread safety: `Rc` is replaced with `Arc` and `OnceCell` with `OnceLock`, and the
77
+ `thread_local!` caches are removed. `Specifier::new` and `Specifier::create` parse without
78
+ caching; the caller-owned `SpecifierCache` (`RwLock<HashMap>`, `get_or_parse`) provides
79
+ interning. Static assertions check that `Specifier` and `SpecifierCache` are `Send + Sync`.
80
+ 3. `node-semver` 2.2.0 is replaced with `nodejs-semver` 7.0.0 (Apache-2.0). `Range` and `Version`
81
+ parsing, `satisfies`, and `allows_any` map one to one; the only adaptation is that version
82
+ components are read through accessor methods (`major()`, `minor()`, `patch()`,
83
+ `pre_release()`) instead of public fields.
84
+ 4. The upstream tests and test data are kept. `eq_hash_test::specifier_eq_by_raw_string` now
85
+ obtains pointer-equal specifiers through `SpecifierCache` because `Specifier::new` no longer
86
+ interns. The upstream `#[ignore]`d prerelease test stays ignored, with a reason attached.
87
+ 5. Lint fixes to the skif workspace standard (clippy pedantic, no `unwrap`/`expect` in non-test
88
+ code where avoidable); two crate-level lint allowances and a per-function `expect_used`
89
+ allowance are documented in place. The code is formatted with the workspace `rustfmt.toml`,
90
+ and the benchmark crate name is updated.
91
+ 6. Hardening: `Major`, `Minor`, `RangeMajor`, `RangeMinor` and `Latest` parse their padded
92
+ versions and ranges eagerly (no `OnceLock`, no `expect`); numbers that `nodejs-semver` rejects
93
+ (for example `99999999999999999999`, above 2^53 - 1) now yield `Specifier::Unsupported`
94
+ instead of panicking later. `Ord` breaks semantic ties on the raw string so that
95
+ `cmp == Equal` exactly when `==` does (`1.2.3` and `=1.2.3` no longer compare equal).
96
+ `is_complex_range` accepts unspaced `||` unions, prerelease tags and x-range operands
97
+ (`1.x || 2.x`), and only a bare `*`, `x` or `X` is `Latest` (`*foo` is `Unsupported`, `xyz` is
98
+ a `Tag`). Property tests cover panic freedom and the `Ord`/`Eq` law.
99
+ 7. The version-group state machine in `crates/skif-rules/src/policy/visit.rs` is a Rust re-implementation of
100
+ the visitors in syncpack's `src/version_group/*.rs` (preferred-semver, pinned, banned, ignored, same-range,
101
+ same-minor, snapped-to) at the same commit, on skif's own instance model; no syncpack code is copied. It differs
102
+ in having no strict mode, leaving `catalog:` references to the catalog rules, and treating specifiers that
103
+ cannot carry a semver range as having no preferred range.
104
+
105
+ ### License Compatibility
106
+
107
+ MIT is permissive and compatible with skif's MIT license. The upstream license text follows.
108
+
109
+ ```text
110
+ MIT License
111
+
112
+ Copyright (c) 2017-2023 Jamie Mason
113
+
114
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
115
+ this software and associated documentation files (the "Software"), to deal in
116
+ the Software without restriction, including without limitation the rights to
117
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
118
+ the Software, and to permit persons to whom the Software is furnished to do so,
119
+ subject to the following conditions:
120
+
121
+ The above copyright notice and this permission notice shall be included in all
122
+ copies or substantial portions of the Software.
123
+
124
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
125
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
126
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
127
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
128
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
129
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
130
+ ```
131
+
132
+ ## knip
133
+
134
+ A tool that finds unused files, exports and dependencies in JavaScript and TypeScript projects. skif's JS
135
+ analysis follows its semantics and its plugin set; the behaviour is re-implemented in Rust on oxc, and no knip
136
+ source file is copied, apart from the data noted below.
137
+
138
+ - **Source**: <https://github.com/webpro-nl/knip>
139
+ - **Upstream commit**: `da07b6e9887f9a1eb08545da29755b7f9d309bca`
140
+ - **License**: ISC
141
+ - **Authors**: Lars Kappert and the knip contributors
142
+ - **Copyright**: Copyright (c) 2022-2026 Lars Kappert
143
+ - **Location**: `crates/skif-js` (issue types, module graph and usage rules) and `crates/skif-js-plugins` (the
144
+ plugin table, entry patterns and configuration readers)
145
+ - **Purpose**: Unused and unlisted dependency, unused export, unresolved import and dead file analysis.
146
+
147
+ ### Modifications
148
+
149
+ - The behaviour of knip's issue types, plugins and production mode is re-implemented in Rust; no TypeScript
150
+ source is translated line by line.
151
+ - Analysis is static: configuration files are read with oxc, never executed, and tools are not run to ask for
152
+ their entries.
153
+ - The list of binaries that are never reported as unlisted is adapted from knip's `constants.ts`.
154
+ - The plugin table is declarative data with optional resolvers, keyed by knip's plugin names. `aws-cdk` and
155
+ `browser-extension` are skif's own: knip has no plugin of either name at the pinned commit.
156
+ - Rule ids, severities and configuration (`skif.toml`) are skif's own.
157
+
158
+ ### License Compatibility
159
+
160
+ ISC is permissive and compatible with skif's MIT license. The upstream license text follows.
161
+
162
+ ```text
163
+ ISC License
164
+
165
+ Copyright (c) 2022-2026 Lars Kappert
166
+
167
+ Permission to use, copy, modify, and/or distribute this software for any
168
+ purpose with or without fee is hereby granted, provided that the above
169
+ copyright notice and this permission notice appear in all copies.
170
+
171
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
172
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
173
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
174
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
175
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
176
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
177
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
178
+ ```
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # `skif-darwin-x64`
2
+
3
+ This is the **x86_64-apple-darwin** binary for `skif`
package/package.json CHANGED
@@ -1,7 +1,47 @@
1
1
  {
2
2
  "name": "skif-darwin-x64",
3
- "version": "0.0.0",
4
- "description": "Name reservation for skif. Real releases start at 0.1.0.",
3
+ "version": "0.1.1",
4
+ "cpu": [
5
+ "x64"
6
+ ],
7
+ "main": "skif.darwin-x64.node",
8
+ "files": [
9
+ "ATTRIBUTIONS.md",
10
+ "LICENSE",
11
+ "skif.darwin-x64.node"
12
+ ],
13
+ "description": "A dependency and package-manager linter, auditor and enforcer for JavaScript and TypeScript, with first-class monorepo support.",
14
+ "keywords": [
15
+ "dependencies",
16
+ "linter",
17
+ "monorepo",
18
+ "workspaces",
19
+ "pnpm",
20
+ "npm",
21
+ "yarn",
22
+ "bun",
23
+ "catalog",
24
+ "audit"
25
+ ],
26
+ "author": "Na'aman Hirschfeld <nhirschfeld@gmail.com>",
27
+ "homepage": "https://github.com/Goldziher/skif#readme",
5
28
  "license": "MIT",
6
- "repository": { "type": "git", "url": "git+https://github.com/Goldziher/skif.git" }
7
- }
29
+ "engines": {
30
+ "node": ">=22",
31
+ "bun": ">=1"
32
+ },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/Goldziher/skif.git",
36
+ "directory": "npm-package"
37
+ },
38
+ "bugs": {
39
+ "url": "https://github.com/Goldziher/skif/issues"
40
+ },
41
+ "publishConfig": {
42
+ "access": "public"
43
+ },
44
+ "os": [
45
+ "darwin"
46
+ ]
47
+ }
Binary file