instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
stumpy-dev__stumpy__752 | stumpy-dev/stumpy | 752 | defect | f81e9c3d10a3facda8e957cae0a6606e94591526 | 4fd9444460f601fa3f84d5a57e3ed0fa5cadea44 | fix skip in `test_core` when no GPU available | After moving the two functions `_gpu_searchsorted_left` and `_gpu_searchsorted_right` to `core.py` in PR #714 , I modified `test_core.py`. **However, my modification resulted in skipping the whole unit test `test_core.py` when there is no GPU.**
This PR fixes this issue.
| diff --git a/stumpy/__init__.py b/stumpy/__init__.py
index 6ce63705e..9f7693fd5 100644
--- a/stumpy/__init__.py
+++ b/stumpy/__init__.py
@@ -38,6 +38,8 @@
from .gpu_aampdist import gpu_aampdist # noqa: F401
from .gpu_stimp import gpu_stimp # noqa: F401
from .gpu_aamp_stimp import gpu_aamp_stimp # noqa... | 7 | 6 | 1 | [{"id": "G0", "claim": "The project's pytest/CI reporting does not surface skipped tests, so an entirely skipped test file (the module-level skip of test_core.py) went unnoticed; the author asks for a skipped-tests report similar to the coverage report.", "category": "testing", "verdict": "supported", "priority": "P2",... | null |
stumpy-dev__stumpy__759 | stumpy-dev/stumpy | 759 | defect | 5e330753579d96a6fb76f30511df23be9994b2da | 68d3c87d819796afdb734bdc2fe0cb69e64868f4 | Parallelize rolling std | Using parallelization to compute the rolling std. So, instead of using welford, we calculate the "std" of each subsequence on its own. The time complexity of this approach is `O(n.m)`, where `n` is the length of the time series input `T` (if 1D), and `m` is the window size. | diff --git a/stumpy/core.py b/stumpy/core.py
index a074782bb..a0847a62f 100644
--- a/stumpy/core.py
+++ b/stumpy/core.py
@@ -7,7 +7,7 @@
import inspect
import numpy as np
-from numba import njit, cuda
+from numba import njit, cuda, prange
from scipy.signal import convolve
from scipy.ndimage import maximum_filter1... | 14 | 11 | 3 | [{"id": "G0", "claim": "The structure is too complicated and should be redesigned as a public `rolling_nanstd(a, w, welford=False)` taking numpy-consistent `(a, w)` inputs with a `welford=False` default, wrapping a private parallel `_rolling_nanstd_1d`, so that no separate `_rolling_nanstd_fast` function is needed.", "... | null |
stumpy-dev__stumpy__810 | stumpy-dev/stumpy | 810 | defect | 203aa3f7721509d1139e451c43bb3aaccc63d713 | 013edac9f88fb2edcf3cb0430666f4b98d9d1617 | Add param subseq_isconstant to floss | This PR adds subseq_isconstant param to `floss` module | diff --git a/stumpy/floss.py b/stumpy/floss.py
index 328aaa057..fd6041f2d 100644
--- a/stumpy/floss.py
+++ b/stumpy/floss.py
@@ -347,6 +347,14 @@ class floss:
normalize : bool, default True
When set to `True`, this z-normalizes subsequences prior to computing distances
+ T_subseq_isconstant : functio... | 11 | 10 | 1 | [{"id": "G0", "claim": "The `self._T_subseq_isconstant` computation in `__init__` should be moved inside the `if self._normalize` block so it is only computed when needed.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`M_T` and `Σ_T` should be comp... | null |
stumpy-dev__stumpy__815 | stumpy-dev/stumpy | 815 | defect | a4bb1e1836e76562974d6b611d1dd71f36eb3202 | 0e81f1e1362c9c9c11d802f8a356e6302e34b15e | Add isconstant param to stumpi | To resolve the issue in this PR, I think we should first address #814 (I can do it in this PR if that is okay). Or, we can just avoid comparing matrix profile indices obtained, in uni testing, via naive and performant version. | diff --git a/stumpy/stumpi.py b/stumpy/stumpi.py
index 5220f3034..68837f015 100644
--- a/stumpy/stumpi.py
+++ b/stumpy/stumpi.py
@@ -42,6 +42,14 @@ class stumpi:
Note that this will increase the total computational time and memory usage
when k > 1.
+ T_subseq_isconstant_func : function, default ... | 2 | 1 | 0 | [{"id": "G0", "claim": "When calling stump inside stumpi, the explicit `T_A=` and `m=` keyword arguments should be omitted, since those required arguments are consistently passed positionally throughout the codebase.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id... | null |
stumpy-dev__stumpy__821 | stumpy-dev/stumpy | 821 | defect | f8a8e937cfb78b58ab5cbbce2d13d2a4a0b8b4ff | e3d4a2d8cc25110d1b067e8de8ab41a8ce6a4bac | Add param isconstant to mpdist | `tests/test_mpdist.py` contains this test function
https://github.com/TDAmeritrade/stumpy/blob/f8a8e937cfb78b58ab5cbbce2d13d2a4a0b8b4ff/tests/test_mpdist.py#L50-L62
which tests `core._compute_P_ABBA`. I think we should move this test function to `tests/test_core.py`. `test_mpdist` is another test function that s... | diff --git a/stumpy/aampdist.py b/stumpy/aampdist.py
index c83d59561..0b8cd3a82 100644
--- a/stumpy/aampdist.py
+++ b/stumpy/aampdist.py
@@ -2,7 +2,6 @@
# Copyright 2019 TD Ameritrade. Released under the terms of the 3-Clause BSD license.
# STUMPY is a trademark of TD Ameritrade IP Company, Inc. All rights reserved.
... | 6 | 6 | 2 | [{"id": "G0", "claim": "Move the test functions that test core._compute_P_ABBA (and the other test function mentioned) from tests/test_mpdist.py over to tests/test_core.py.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Avoid managing separate... | null |
stumpy-dev__stumpy__823 | stumpy-dev/stumpy | 823 | defect | f8a8e937cfb78b58ab5cbbce2d13d2a4a0b8b4ff | 2a8e035f1ef66e3b7fa23b8c7e9f59fee0b076b5 | Fixed bug in module `snippet` | Previously, we tried to address issue #677 in PR #678. However, the aforementioned PR: (1) did not correctly address the issue and (2) faced some "loss of precision" issue and we decided to handle it in a separate PR.
This PR is to just fix the bug in `snippet`. | diff --git a/stumpy/snippets.py b/stumpy/snippets.py
index a5c7c3ec9..4135cdf79 100644
--- a/stumpy/snippets.py
+++ b/stumpy/snippets.py
@@ -110,11 +110,11 @@ def _get_all_profiles(
S_i,
T,
s,
- M_T[start : start + s],
- Σ_T[start : start + s],
+ M... | 3 | 1 | 0 | [{"id": "G0", "claim": "The computation suffers a small loss of precision: the correlation of a subsequence with itself comes out as 0.9999999999999999 instead of 1.0, so identical subsequences get a non-zero distance.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id... | null |
stumpy-dev__stumpy__838 | stumpy-dev/stumpy | 838 | defect | 89db087914084a5e9e5915567c5f1a3bc9ec895d | 74ed9f070f87f4ad0851b1a682daa4b249a720cf | Add isconstant scrump | param isconstant should be added to `prescrump` and `scrump`
- [ ] prescrump
- [ ] scrump | diff --git a/stumpy/scrump.py b/stumpy/scrump.py
index 7e436d108..eed29f250 100644
--- a/stumpy/scrump.py
+++ b/stumpy/scrump.py
@@ -11,7 +11,9 @@
from .stump import _stump
-def _preprocess_prescrump(T_A, m, T_B=None, s=None):
+def _preprocess_prescrump(
+ T_A, m, T_B=None, s=None, T_A_subseq_isconstant=None, T... | 5 | 2 | 0 | [{"id": "G0", "claim": "The replacement `QT_j = QT[j]` may be wrong: the reviewer doubts that reading `QT[j]` is valid here (QT could be empty or hold wrong values, and the original backward formula came from the Matlab code) and asks for a pure-Python experiment, repeated for AB-joins, to convince themselves the code ... | null |
stumpy-dev__stumpy__843 | stumpy-dev/stumpy | 843 | defect | 8cc59b2bc5ec7222002ae68234303b09d007bc4a | 4b6759457041bb2c04b197c874ab15964d946987 | Add isconstant motifs | This PR is to add isconstant param to module `motifs` | diff --git a/stumpy/motifs.py b/stumpy/motifs.py
index 0c8246dcf..1aa6e00fe 100644
--- a/stumpy/motifs.py
+++ b/stumpy/motifs.py
@@ -366,6 +366,7 @@ def match(
p=2.0,
T_subseq_isfinite=None,
T_subseq_isconstant=None,
+ Q_subseq_isconstant=None,
):
"""
Find all matches of a query `Q` in a ti... | 3 | 2 | 0 | [{"id": "G0", "claim": "A second test should be added that calls `match` on 2D data without passing `isconstant`.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new naive helper should be named `naive_multi_match` rather than `naive_match_multi`.", ... | null |
stumpy-dev__stumpy__856 | stumpy-dev/stumpy | 856 | defect | 29a12015e9e7a91028b1d97bdb44c9d287b85df6 | e9bdaf26deab5f2d83e4ee62f62ac375979415ed | Fix #844 Fix bug in module `motifs` | @seanlaw
Sorry for the noise! I am not getting revenge btw :laughing: I am just newbie. So, the nature of our noises are different :) | diff --git a/stumpy/motifs.py b/stumpy/motifs.py
index 0c8246dcf..9b9581e0c 100644
--- a/stumpy/motifs.py
+++ b/stumpy/motifs.py
@@ -121,7 +121,7 @@ def _motifs(
T,
M_T=M_T,
Σ_T=Σ_T,
- max_matches=None,
+ max_matches=max_matches,
max_distance=max... | 2 | 2 | 0 | [{"id": "G0", "claim": "The comments of the two max_matches tests should be reworded to say \"If `max_motifs=2` and `max_matches=3`, the result should contain (at most) two sets of motifs and each motif set should contain (at most) the top three matches\" with distinct numbers, and `max_matches` should be changed to 3 ... | null |
stumpy-dev__stumpy__860 | stumpy-dev/stumpy | 860 | defect | 8b16995987af9b6bd424780c5408162280f5e832 | 27a5e56cd69b6e3d871bb7fee33c26ce5f92cba5 | Fix loss of precision for distance between a subseq and itself | According to [this error](https://github.com/TDAmeritrade/stumpy/actions/runs/4902125133/jobs/8753783558?pr=856), we can realize that there is a loss of precision in self match in core.mass. This can result in loss-of-precision in the output of `motifs`.
We first add a test function to expose this error. | diff --git a/stumpy/core.py b/stumpy/core.py
index 714a4f403..2f65300cf 100644
--- a/stumpy/core.py
+++ b/stumpy/core.py
@@ -1196,7 +1196,7 @@ def _mass_absolute(Q, T, p=2.0):
).flatten()
-def mass_absolute(Q, T, T_subseq_isfinite=None, p=2.0):
+def mass_absolute(Q, T, T_subseq_isfinite=None, p=2.0, query_idx=... | 4 | 3 | 2 | [{"id": "G0", "claim": "mass_absolute should warn when `Q` and `T[query_idx:query_idx+m]` are not allclose before setting `distance_profile[query_idx]` to 0.0.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "mass() should not set the self-distance to... | null |
stumpy-dev__stumpy__875 | stumpy-dev/stumpy | 875 | defect | e91d813f553f14a7207c310ccaef1887fea02ab5 | 0b0e3f309914f3719dee745894a37bc09fd10f8d | Add function `process_isconstant` | The new function, `process_isconstant`, is added to the `stumpy.core` module to handle:
* 2D time series when `T_subseq_isconstant` is provided as a list
* To fix the conflict between `T_subseq_isconstant` and `T_subseq_isfinite`
Two notes:
(1) The function `core.rolling_isconstant` can handle 2D time series, and... | diff --git a/stumpy/core.py b/stumpy/core.py
index 136ece9e2..83e640a01 100644
--- a/stumpy/core.py
+++ b/stumpy/core.py
@@ -2133,8 +2133,7 @@ def preprocess(
T[np.isinf(T)] = np.nan
- T_subseq_isconstant = rolling_isconstant(T, m, T_subseq_isconstant)
- T_subseq_isconstant = fix_isconstant_isfinite_conf... | 7 | 5 | 0 | [{"id": "G0", "claim": "The second case of test_process_isconstant_2d should set the NaN in the last row (T[-1, col] = np.nan) with T_subseq_isconstant[-1][col] = True so that the conflict handling of fix_isconstant_isfinite_conflicts is actually exercised.", "category": "testing", "verdict": "supported", "priority": "... | null |
stx-labs__stacks.js__1032 | stx-labs/stacks.js | 1,032 | defect | 4ce29cb46552721dca446fd1e23e011cd0a5ac52 | de0ac452f12916baa04e3e090e4669662351f8f6 | Add missing stx burn and NFT post conditions | ## Description
This PR fixes the issue of missing post conditions in BNS package in following functions:
* `buildPreorderNamespaceTx`
* `buildPreorderNameTx`
* `buildRenewNameTx`
* `buildTransferNameTx`
These functions are missing the stx burn and NFT post conditions which results in transactions being rolled bac... | diff --git a/packages/bns/src/index.ts b/packages/bns/src/index.ts
index a3f98ea86e..4c5567c923 100644
--- a/packages/bns/src/index.ts
+++ b/packages/bns/src/index.ts
@@ -18,6 +18,16 @@ import {
someCV,
noneCV,
UnsignedContractCallOptions,
+ PostCondition,
+ createSTXPostCondition,
+ createStacksPublicKey,
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new post-condition variables in buildTransferNameTx should get more descriptive names, e.g. postConditionSender and postConditionReceiver instead of nameTransferPostConditionOne and nameTransferPostConditionTwo.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scop... | null |
stx-labs__stacks.js__1116 | stx-labs/stacks.js | 1,116 | defect | 1af7a18b1017981f5b44c1006d940eb4648d0491 | f95d2f78f37145dfcbbdef4b3fb1c3a1fa30d355 | Support custom derivation paths with CLI | ## Description
This PR fixes the issue #918 by introducing custom derivation path support in `make_keychain` and `get_stacks_wallet_key` commands.
Refer to #918 for more details.
This PR closes the issue #918
## Type of Change
- [X] New feature
- [ ] Bug fix
- [ ] API reference/documentation update
- [ ] ... | diff --git a/packages/cli/src/cli.ts b/packages/cli/src/cli.ts
index 1ab8a71fae..6557ec68b0 100644
--- a/packages/cli/src/cli.ts
+++ b/packages/cli/src/cli.ts
@@ -331,8 +331,16 @@ async function getPaymentKey(network: CLINetworkAdapter, args: string[]): Promis
*/
async function getStacksWalletKey(network: CLINetwork... | 3 | 3 | 1 | [{"id": "G0", "claim": "The custom derivation path prompt should show the default path it falls back to.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A test for a genuinely custom path like m/888'/0'/0 should be added, since the added tests only mock t... | null |
stx-labs__stacks.js__1479 | stx-labs/stacks.js | 1,479 | defect | 0370bf69950fd333a7e5e0251485668191b1bfa8 | 73b2f09fc5c95a8d7d79fb5b31f29775ab236d2d | chore: add cl helper | > This PR was published to npm with the version `6.5.1-pr.f11b880.0`
> e.g. `npm install @stacks/common@6.5.1-pr.f11b880.0 --save-exact`<!-- Sticky Header Marker -->
- closes https://github.com/hirosystems/stacks.js/issues/1444
## summary
Adds a `Cl` bundled export that allows better discovery of clarity methods... | diff --git a/packages/common/src/utils.ts b/packages/common/src/utils.ts
index ede216bd6..ee36a6830 100644
--- a/packages/common/src/utils.ts
+++ b/packages/common/src/utils.ts
@@ -614,12 +614,9 @@ export function concatArray(elements: (Uint8Array | number[] | number)[]) {
}
/**
- * Better `instanceof` check for Ar... | 3 | 3 | 0 | [{"id": "G0", "claim": "In the listCV JSDoc, the `@param` line should read `{ClarityValue[]} list of ClarityValues to be converted to ListCV clarity type` (the `values` identifier and double space removed).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
stx-labs__stacks.js__1599 | stx-labs/stacks.js | 1,599 | defect | da86f997e877ad5a9b1bdf59eecafab7a6f9be85 | 26e2fb19f8880f2a505b1871500527a1500cfb9f | feat: cli option to decode serialized Clarity values | > This PR was published to npm with the version `6.9.1-pr.b33d848.0`
> e.g. `npm install @stacks/common@6.9.1-pr.b33d848.0 --save-exact`<!-- Sticky Header Marker -->
### Description
New CLI feature to decode Clarity values into json/repr/pretty strings.
### Example
The `repr` format string is returned by defa... | diff --git a/packages/cli/src/argparse.ts b/packages/cli/src/argparse.ts
index 3c32385cb..9a3c87c6e 100644
--- a/packages/cli/src/argparse.ts
+++ b/packages/cli/src/argparse.ts
@@ -395,6 +395,37 @@ export const CLI_ARGS = {
'\n',
group: 'Account Management',
},
+ decode_cv: {
+ type: 'array... | 2 | 1 | 0 | [{"id": "G0", "claim": "stdin could be detected from the absence of the parameter instead of requiring the explicit '-' argument.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new decode_cv command should be placed in a different help group, such as U... | null |
stx-labs__stacks.js__1681 | stx-labs/stacks.js | 1,681 | defect | 10887a24bfc071c0e52ecf617c8b6107892a93d6 | d2c0a242e917c1990c244171ccb5340c7281d0e9 | feat: Add `Cl.parse` Clarity value parser | > This PR was published to npm with the version `6.15.0`
> e.g. `npm install @stacks/common@6.15.0 --save-exact`<!-- Sticky Header Marker -->
- Adds `Cl.parse`, which allows us to parse clarity syntax as JS representation `ClarityValue`.
- Renames `prettyPrint` to `stringify` (matching `JSON.` more closely in naming... | diff --git a/packages/transactions/src/cl.ts b/packages/transactions/src/cl.ts
index fe54bfa87..04f6cd57c 100644
--- a/packages/transactions/src/cl.ts
+++ b/packages/transactions/src/cl.ts
@@ -18,7 +18,8 @@ import {
uintCV,
} from './clarity';
-export { prettyPrint } from './clarity/prettyPrint';
+export { pretty... | 2 | 2 | 1 | [{"id": "G0", "claim": "The stale todo comment about adding `(tuple` syntax in clTuple can be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Parsing the Clarity value `{ a: 0x68656c6c6f21 }` throws a parse error.", "category": "correctn... | null |
stx-labs__stacks.js__1710 | stx-labs/stacks.js | 1,710 | defect | 2c57ea4e5abed76da903f5138c79c1d2eceb008b | a46017adcff393b403a285ccdde57ee52fdd00bf | feat: Add non-sequential multi-sig support | > This PR was published to npm with the version `6.15.0`
> e.g. `npm install @stacks/common@6.15.0 --save-exact`<!-- Sticky Header Marker -->
- Adds non-sequential multi-sig support ✨ closes https://github.com/hirosystems/stacks.js/issues/1487
* Fixes incorrect compression check in signing algorithm
* Fixes incorr... | diff --git a/packages/common/src/constants.ts b/packages/common/src/constants.ts
index 58f920990..f11a7ce93 100644
--- a/packages/common/src/constants.ts
+++ b/packages/common/src/constants.ts
@@ -33,6 +33,7 @@ export enum PeerNetworkID {
/** @ignore internal */
export const PRIVATE_KEY_COMPRESSED_LENGTH = 33;
+// ... | 10 | 5 | 1 | [{"id": "G0", "claim": "The author asks whether changing UnsignedMultiSigTokenTransferOptions from an interface to a type intersection could be a problem.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The helpers should not force-sort public keys for mu... | null |
style-dictionary__style-dictionary__1043 | style-dictionary/style-dictionary | 1,043 | defect | 0d3531cbf821b12f9a714c29fe64f3b051117539 | 45d19ef1437635514e03a5c91b5c1d91591c598a | feat: add preprocessors | Sometimes it makes sense to process the dictionary after it has been created from merging the parsed input files together into one JS object.
For example, when more complicated and broad transformations have to be done in order for things like references to work, metadata to be deleted, etc.
In the past, I've used ... | diff --git a/docs/_sidebar.md b/docs/_sidebar.md
index 200ed6383..4707c7183 100644
--- a/docs/_sidebar.md
+++ b/docs/_sidebar.md
@@ -15,6 +15,7 @@
- [Using the NPM Module](using_the_npm_module.md)
- [API](api.md)
- [Parsers](parsers.md)
+ - [Preprocessors](preprocessors.md)
- [Transforms](transforms.md)
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The JSDoc comment added above registerPreprocessor in types/index.d.ts is copied from registerParser (it says 'Adds a custom parser' and documents parser.pattern/parser.parse with a registerParser example) and must be updated to describe preprocessors.", "category": "documentation", "verdict": "... | null |
style-dictionary__style-dictionary__114 | style-dictionary/style-dictionary | 114 | defect | b7b36f78bd9b11f5887b9b16457d34204f411892 | 78db6b8fced36760ee7f8ce14ac606c68f17fa8e | JavaScript config files | This change enables the user to use a JavaScript module for their
config file. The goal of this change is to enable more flexible
configuration similar to Webpack or Babel. For example filter
functions, which previously could only be provided using the Node
API, can now be included directly in a JS config file.
... | diff --git a/bin/style-dictionary b/bin/style-dictionary
index a8f98780e..c9fea2624 100755
--- a/bin/style-dictionary
+++ b/bin/style-dictionary
@@ -55,11 +55,8 @@ function styleDictionaryBuild(options) {
options = options || {};
var configPath = options.config ? options.config : './config.json';
- console.log... | 2 | 2 | 0 | [{"id": "G0", "claim": "Extend.js should use the existing resolve-cwd module (as combineJSON.js does) to resolve the config path instead of hand-rolling path.resolve(process.cwd(), opts), for consistency.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "te... | null |
style-dictionary__style-dictionary__1294 | style-dictionary/style-dictionary | 1,294 | defect | 4575dd5a9cc226ebb378f23ce5f1f2d22e2e108a | b9f998601a188ad23ad2e788d595cf6ec1883f2e | fix: respect formatting.prefix scss formats | _Issue #, if available:_
https://github.com/amzn/style-dictionary/issues/1286
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
| diff --git a/.changeset/wild-chefs-mate.md b/.changeset/wild-chefs-mate.md
new file mode 100644
index 000000000..5f0753fea
--- /dev/null
+++ b/.changeset/wild-chefs-mate.md
@@ -0,0 +1,5 @@
+---
+'style-dictionary': patch
+---
+
+Respect `formatting.prefix` option in scss map-deep/map-flat formats.
diff --git a/__tests_... | 2 | 1 | 1 | [{"id": "G0", "claim": "The scss/map-deep output's inner map references were missing the `$foo-` prefix before this change, meaning the SCSS result is broken (broken refs).", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The map-deep template appea... | null |
style-dictionary__style-dictionary__1349 | style-dictionary/style-dictionary | 1,349 | defect | c0f368b04f17c7565355431cdd6bda4f474e7577 | d6a3404352f51157a0d03e634213fb4d15a399f2 | fix(outputReferences): sorting of tokens in dtcg format | Fixes https://github.com/amzn/style-dictionary/issues/1305
**Issue Summary**:
The current implementation of the `sortByReference` function doesn't properly handle the DTCG token format, causing references in the output to be declared before their target. This occurs because the function assumes that token values ca... | diff --git a/__integration__/__snapshots__/outputReferences.test.snap.js b/__integration__/__snapshots__/outputReferences.test.snap.js
index 03ff1092d..5e6a8dc65 100644
--- a/__integration__/__snapshots__/outputReferences.test.snap.js
+++ b/__integration__/__snapshots__/outputReferences.test.snap.js
@@ -1,7 +1,7 @@
/*... | 2 | 2 | 0 | [{"id": "G0", "claim": "The author should run `npx changeset` and add a human-readable patch note, as a patch bump is appropriate for this bugfix.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The duplicated TRANSFORMED_TOKENS/DTCG_TRANSFORMED_TO... | null |
style-dictionary__style-dictionary__1569 | style-dictionary/style-dictionary | 1,569 | defect | 62e3298bb958acd35f35225df211880b1c0e0449 | 1789a208eb75d8dd1ebbe2a1939324fea2ee07ba | feat: add size/compose/{dp, sp} to builtin transforms | _Description of changes:_
Hello!
I’m currently building a cross-platform design system at work, and style-dictionary has been an absolute breeze to work with — thanks for that!
While working on this, I noticed there isn’t a built-in transform for `size/compose/{dp,sp}`. Of course, it’s easy to define a custom ... | diff --git a/__integration__/__snapshots__/customFormats.test.snap.js b/__integration__/__snapshots__/customFormats.test.snap.js
index 6ba20587d..796583567 100644
--- a/__integration__/__snapshots__/customFormats.test.snap.js
+++ b/__integration__/__snapshots__/customFormats.test.snap.js
@@ -722,7 +722,9 @@ snapshots["... | 2 | 2 | 1 | [{"id": "G0", "claim": "Adding the new size/compose sp and dp transforms to the builtin compose transformGroup would make them apply by default to all matching dimension/fontsize tokens (the reviewer believes this is a breaking change and asks that they be opt-in rather than the default).", "category": "design", "verdi... | null |
style-dictionary__style-dictionary__1575 | style-dictionary/style-dictionary | 1,575 | defect | f35e30f48fe2c795116597ed6f5823005efc47d9 | 7c371c08dedec6830c0e69f64ca28a45e5a62109 | fix: handle double quoted fontNames for fontFamily/css | Closes #1476
_Description of changes:_
Check if fontName is wrapped in single quotes OR double quotes.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
| diff --git a/__tests__/common/transforms.test.js b/__tests__/common/transforms.test.js
index 9e800c8bb..ea09c0cc2 100644
--- a/__tests__/common/transforms.test.js
+++ b/__tests__/common/transforms.test.js
@@ -1267,6 +1267,15 @@ describe('common', () => {
).to.equal('Arial, sans-serif');
});
+ it(... | 1 | 1 | 1 | [{"id": "G0", "claim": "jorenbroekema requested that the PR author add a patch changeset for this fix before merging.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
style-dictionary__style-dictionary__158 | style-dictionary/style-dictionary | 158 | defect | 4aedd897ce6eff55b0f8a3ce572ffe6f5ef15023 | a3d17ec543688fdb80a1f1f6d810153d385f2019 | Fix errors and improve error messaging | Description of changes:
- fixed a bug with deepExtend
- fixed circular reference checking and error reporting
- fixed the resolveObject bug with multiple references (issue #118, via @didoo)
- added a test for #118
- added some additional circular reference checking tests
- tried to create a standard method to de... | diff --git a/bin/style-dictionary b/bin/style-dictionary
index 128e27eae..54b623dee 100755
--- a/bin/style-dictionary
+++ b/bin/style-dictionary
@@ -7,7 +7,8 @@ var fs = require('fs-extra'),
path = require('path'),
StyleDictionary = require('..'),
pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '..... | 28 | 19 | 0 | [{"id": "G0", "claim": "The ERROR_TYPE constant in lib/extend.js should be declared at the top, as done in lib/exportPlatform.js, instead of mid-function.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The count/flush conditional in lib/extend.j... | null |
style-dictionary__style-dictionary__1632 | style-dictionary/style-dictionary | 1,632 | defect | db08d620157a866d225704b21fa643e30c728da7 | 90acc18425d8729e20b3fee2b0f61988ffc36793 | feat(dtcg): color module support | _Issue #, if available:_
https://github.com/style-dictionary/style-dictionary/issues/1590#issuecomment-3715360239
_Description of changes:_
Adds support for DTCG v2025.10 color formats in color transformers
**NOTE**: in order to support the full gamut (:drum:) of color spaces, this PR introduces colorjs.io ... | diff --git a/.changeset/dtcg-color-format.md b/.changeset/dtcg-color-format.md
new file mode 100644
index 000000000..48ec966f7
--- /dev/null
+++ b/.changeset/dtcg-color-format.md
@@ -0,0 +1,19 @@
+---
+"style-dictionary": minor
+---
+
+Add support for DTCG v2025.10 structured color format in color transformers.
+
+**Ne... | 3 | 2 | 0 | [{"id": "G0", "claim": "isDTCGColorObject should take `unknown` instead of `any` and use `in` checks for the object properties.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use `??` instead of `||` when mapping the DTCG color space (nitpick, s... | null |
style-dictionary__style-dictionary__1637 | style-dictionary/style-dictionary | 1,637 | defect | 5a579034fccddb4787d107763acdabd866ee1f5c | c0e280848bd0d63352f249a2f7c9cfc04192d34e | fix: support DTCG color in CSS shorthand transforms border and shadow | _Issue #, if available:_
https://github.com/style-dictionary/style-dictionary/issues/1590 border + shadow
_Description of changes:_
@bennypowers Hey, I noticed the new color module isn't working yet in the CSS shorthand transforms for border and shadow tokens. Should be fixed with this PR. Maybe you can review t... | diff --git a/.changeset/quiet-dogs-pretend.md b/.changeset/quiet-dogs-pretend.md
new file mode 100644
index 000000000..10a34c174
--- /dev/null
+++ b/.changeset/quiet-dogs-pretend.md
@@ -0,0 +1,5 @@
+---
+'style-dictionary': patch
+---
+
+Fix shadow and border CSS shorthands to also support latest DTCG color module. Add... | 2 | 2 | 1 | [{"id": "G0", "claim": "It is unnecessary for the user-facing docs of the border/shadow shorthand transforms to refer to the implementing library (ColorJS); the docs should be agnostic of the implementation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c... | null |
style-dictionary__style-dictionary__193 | style-dictionary/style-dictionary | 193 | defect | 071c6a5c6e0a5301ad2df3bf9d5f128ea80e7171 | 136ec8a744232ef2d0946c8f96ea1208773dc5cd | Add Sass maps formats | *Issue #137:*
*Description of changes:*
- added `sass/map-flat`and `sass/map-deep` formats + corresponding tests
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. | diff --git a/__tests__/formats/__snapshots__/all.test.js.snap b/__tests__/formats/__snapshots__/all.test.js.snap
index 44e2328bf..117c2c984 100644
--- a/__tests__/formats/__snapshots__/all.test.js.snap
+++ b/__tests__/formats/__snapshots__/all.test.js.snap
@@ -504,6 +504,36 @@ exports[`formats all should return less/va... | 7 | 3 | 0 | [{"id": "G0", "claim": "Consider restructuring the format tests to build a real style dictionary instance (e.g. StyleDictionary.extend().exportPlatform('web')) from property files instead of hand-built dictionary objects, to cut down test code — though not necessarily in this PR.", "category": "testing", "verdict": "op... | null |
style-dictionary__style-dictionary__222 | style-dictionary/style-dictionary | 222 | defect | 14e4b0fb4c5e725685e266193f8ae9eccfbbf217 | aaee2be56de8b63858f76d8182d63f722a75534c | fixed the naming for Sass/Scss in documentation, tests, formats | *Issue #, if available:*
#213
*Description of changes:*
I have renamed the `sass/map-***` formats to `scss/map-***` and updated some documentation.
We have to consider that this is technically a breaking change, so it's better to consider how to release it. One possibility is to include it in the next "major" ... | diff --git a/README.md b/README.md
index 13a5379e4..63d43c5dd 100644
--- a/README.md
+++ b/README.md
@@ -227,7 +227,7 @@ While not exactly necessary, we feel this classification structure of style prop
Structuring style properties in this manner gives us consistent naming and accessing of these properties. You don'... | 1 | 1 | 1 | [{"id": "G0", "claim": "The deprecation warning printed for 'sass/map-*' formats should not say they are deprecated and will be soon removed; it should instead say those formats have moved to 'scss/map-***' and warn that in the future 'sass/map-***' formats may output actual Sass instead of SCSS, which may break curren... | null |
style-dictionary__style-dictionary__227 | style-dictionary/style-dictionary | 227 | defect | 14e4b0fb4c5e725685e266193f8ae9eccfbbf217 | a42dde111536391b00dcc42573000f3f702ac814 | feat: Making include accept an array of globs, like source does | *Issue #, if available:* #215
*Description of changes:* Changing the behavior of `include` attribute on the config to match the behavior of `source`. Now `include` accepts an array of path globs, instead of just file paths. This change should be a superset change, as normal file paths still function the same.
... | diff --git a/__tests__/extend.test.js b/__tests__/extend.test.js
index 8c5765f65..d89e6c780 100644
--- a/__tests__/extend.test.js
+++ b/__tests__/extend.test.js
@@ -61,10 +61,33 @@ describe('extend', () => {
).toThrow('include must be an array');
});
- it('should throw if a path in the includes array d... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new test name 'should override existing properties include is given' is missing the word 'if' between 'properties' and 'include'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test name contains the typos 'sour... | null |
style-dictionary__style-dictionary__233 | style-dictionary/style-dictionary | 233 | defect | 14e4b0fb4c5e725685e266193f8ae9eccfbbf217 | 0443e74de6ee48282d53b18cf64fb78479280ff0 | Add registerFilter method | *Issue #, if available:* #207 #199
*Description of changes:*
- introduced a `registerFilter` method for the StyleDictionary module
- updated the `filterProperties.js` to receive the `filter` parameter only as a function
- moved the logic to handle the case when the `filter` parameter is an object in the `transfo... | diff --git a/__tests__/filterProperties.test.js b/__tests__/filterProperties.test.js
index 35657833f..abd2bc700 100644
--- a/__tests__/filterProperties.test.js
+++ b/__tests__/filterProperties.test.js
@@ -112,7 +112,7 @@ describe('filterProperties', () => {
expect(filteredDictionary.properties).not.toHaveProperty(... | 3 | 2 | 1 | [{"id": "G0", "claim": "The author asks whether there is a way to keep the filter-to-function conversion logic in filterProperties (he could not access the StyleDictionary object there) or where the correct location for this logic is.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"... | null |
style-dictionary__style-dictionary__264 | style-dictionary/style-dictionary | 264 | defect | c7d3c1513ffe47b65c9c99831f809dd4364cd7c9 | 61fb0b430b3634246caaaac04a6164b968e698aa | fix(error-messaging): problems when a transform does not exist | If a transform does not exist, then the current code will fail with an error of "Unable to find property 'matcher' of undefined". This is not clear to the user, so I tried to make clear what is going on.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license... | diff --git a/__tests__/__output/json-nested.json b/__tests__/__output/json-nested.json
new file mode 100644
index 000000000..943677682
--- /dev/null
+++ b/__tests__/__output/json-nested.json
@@ -0,0 +1,12 @@
+{
+ "color": {
+ "base": {
+ "red": {
+ "primary": "#611D1C",
+ "secondary": {
+ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The generated test output file __tests__/__output/json-nested.json should not be committed to git and should be removed from the pull request.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
style-dictionary__style-dictionary__32 | style-dictionary/style-dictionary | 32 | defect | a91a67397e7e6db9ffd32d76c95b84e77f42821c | 688bb2bf2015b707acc9f66339c64c1f178323e6 | Improved tests | This PR covers the following:
- I found a bug on some tests while using `assert.throws`. The first parameter of `.bind` is the `this` value and the rest are the arguments of the function. The tests were still passing because the arguments where undefined thus causing an exception (but not really the exception we wante... | diff --git a/lib/buildFile.js b/lib/buildFile.js
index 7f6ce0311..4afebd36f 100644
--- a/lib/buildFile.js
+++ b/lib/buildFile.js
@@ -26,9 +26,9 @@ var path = require('path'),
* @returns {null}
*/
function buildFile(destination, format, platform, dictionary) {
- if (!format)
+ if (!format || typeof format !== 'fu... | 4 | 3 | 2 | [{"id": "G0", "claim": "The newly added `current_context = [];` line sits in selfRef where it only runs on the circular-reference error path; it should be removed from that position and inserted immediately before line 42 so the context is reset at the start of every resolveObject execution.", "category": "correctness"... | null |
style-dictionary__style-dictionary__320 | style-dictionary/style-dictionary | 320 | defect | 030175e9664e093b75f371ccf7f01a45036e4d4a | aaf037a1a2b3b3e916c074682780fe43984e5881 | feat: flutter support | *Issue #, if available: #288
*Description of changes:*
Based on swift implementation ( #255 ), it adds ability to use `flutter` and `flutter-separate` transform groups. Examples:
`flutter`:
```dart
//
// StyleDictionary.dart
//
// Do not edit directly
// Generated on Mon, 02 Sep 2019 20:12:07 GMT
//
i... | diff --git a/__tests__/common/transforms.test.js b/__tests__/common/transforms.test.js
index bbb1e6962..63cb6301c 100644
--- a/__tests__/common/transforms.test.js
+++ b/__tests__/common/transforms.test.js
@@ -327,6 +327,21 @@ describe('common', () => {
});
});
+ describe('color/hex8flutter', () => {
+ ... | 5 | 3 | 2 | [{"id": "G0", "claim": "The reviewer asks why the medium-zoom resolved URL in package-lock.json changed from http to https, suspecting npm rather than the author, and wondering whether the difference matters.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cl... | null |
style-dictionary__style-dictionary__383 | style-dictionary/style-dictionary | 383 | defect | 6fce12ea1e2ae98c38ca9d3884e720ae97092b1d | 1e92f6ac7c9e6b99f81569fea46584a3260ffd6a | feat: adding color/hsl and color/hsl-4 transforms | *Issue #, if available:*
*Description of changes:*
Adding in support for color transforms to color/hsla (going to to 3-argument hsl format if no alpha change) and color/hsl with newer syntax, accepting 4 arguments in the same function.
By submitting this pull request, I confirm that my contribution is made under... | diff --git a/__tests__/common/transforms.test.js b/__tests__/common/transforms.test.js
index bbb1e6962..2ffca7177 100644
--- a/__tests__/common/transforms.test.js
+++ b/__tests__/common/transforms.test.js
@@ -281,6 +281,38 @@ describe('common', () => {
});
});
+ describe('color/hsl', () => {
+ it(... | 1 | 1 | 0 | [{"id": "G0", "claim": "The two transforms both handle alpha and both output hsl(), so it should be renamed so the names convey the difference between the CSS color module syntaxes they implement (e.g. color/hsl and color/hsl-4, or hsla and hsl-4).", "category": "design", "verdict": "supported", "priority": "P2", "scop... | null |
style-dictionary__style-dictionary__415 | style-dictionary/style-dictionary | 415 | defect | 6fce12ea1e2ae98c38ca9d3884e720ae97092b1d | 612e561b3b53cc1cd4b1df76912a2dd48a741f88 | feat(attribute/cti): make attribute/cti respect manually set attributes | *Issue #, if available:* 414
*Description of changes:*
- Make attribute/cti not overwrite existing attributes
- Only build out cti attributes to the length of the path
- Add tests for attribute/cti
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license... | diff --git a/__tests__/common/transforms.test.js b/__tests__/common/transforms.test.js
index bbb1e6962..943ed8ed6 100644
--- a/__tests__/common/transforms.test.js
+++ b/__tests__/common/transforms.test.js
@@ -168,6 +168,49 @@ describe('common', () => {
});
});
+ describe('transform', () => {
+ des... | 1 | 1 | 1 | [{"id": "G0", "claim": "If prop.path is longer than attrNames, the forEach loop will set generatedAttrs[undefined] to the last leaf value in prop.path, which would be new behavior; the loop should be forced to run at most 5 times.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduc... | null |
style-dictionary__style-dictionary__423 | style-dictionary/style-dictionary | 423 | defect | 619f5cf205b118939ccbed2f1d030383a8bcaa62 | be69ea8ae31ecafcc91d61f21df34fc65d9bb2a3 | bugfix: fix conditional to ensure we catch properties with a falsy value | Fixes #406
| diff --git a/lib/filterProperties.js b/lib/filterProperties.js
index e3564995b..db24c9704 100644
--- a/lib/filterProperties.js
+++ b/lib/filterProperties.js
@@ -34,7 +34,7 @@ function filterPropertyObject(properties, filter) {
// If the value has a `value` member we know it's a property, pass it to
// the fil... | 1 | 1 | 1 | [{"id": "G0", "claim": "A unit test should be added covering the fix that makes the conditional catch properties with a falsy value.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
style-dictionary__style-dictionary__491 | style-dictionary/style-dictionary | 491 | defect | 369d71223a72515805dd2b655324b329898217d8 | 41857ff70ea1f833e4f335241cc31dfb3c7c5139 | feat(transforms): adds 'px to rem' transform | *Issue #, if available:* NA
*Description of changes:*
Adds a transform for converting a pixel value to rem.
```
// config.json
{
...
"platforms": {
"scss": {
...
"basePxFontSize": 16 // optional, defaults to 16
}
}
}
// properties.json
{
"... | diff --git a/__tests__/common/transforms.test.js b/__tests__/common/transforms.test.js
index 691e2ef2f..7f779eafd 100644
--- a/__tests__/common/transforms.test.js
+++ b/__tests__/common/transforms.test.js
@@ -544,6 +544,28 @@ describe('common', () => {
});
});
+ describe('size/pxToRem', () => {
+ ... | 7 | 5 | 0 | [{"id": "G0", "claim": "The matcher should use the existing isSize helper (`matcher: isSize,`) instead of an inline arrow function, for brevity and DRY-ness.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The basePxFontSize option added in size/... | null |
style-dictionary__style-dictionary__531 | style-dictionary/style-dictionary | 531 | defect | 7e7889a41c79c58a04297762a31550c9bd7c2ee0 | baee56fc152511e4dc96a63f101a8621776d9d5d | fix(export platform): fixing infinite loop when there are reference errors | *Issue #, if available:* #524
*Description of changes:* When there were property reference errors (could not find reference or circular reference) Style Dictionary would get caught in an infinite loop. This fixes that by changing the logic of when loop within exportPlatform finishes by checking if it performed any tra... | diff --git a/__tests__/exportPlatform.test.js b/__tests__/exportPlatform.test.js
index 52786bdc8..eec481cc7 100644
--- a/__tests__/exportPlatform.test.js
+++ b/__tests__/exportPlatform.test.js
@@ -11,17 +11,18 @@
* and limitations under the License.
*/
-var helpers = require('./__helpers');
-var keys = require('l... | 3 | 2 | 1 | [{"id": "G0", "claim": "A debug console.log statement was accidentally included in exportPlatform and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The loop-exit condition's solid 'or' (no deferred value transforms left, or n... | null |
style-dictionary__style-dictionary__734 | style-dictionary/style-dictionary | 734 | defect | ad7f6ea555ec77defd264c9ade9628aefd108959 | 31217ee4ed741d5ae1282ec802ce47c3b98ed48c | feat: any swift format | *Issue #, if available:* could help #719
*Description of changes:*
- ✨ add new format `ios-swift/any.swift` with:
- `objectType`: type for the swift object - default is **class**
- `import`: array or string to import modules - default is **["UIKit"]**
- `accessControl`: access level for the object ... | diff --git a/__tests__/common/formatHelpers/setSwiftFileProperties.test.js b/__tests__/common/formatHelpers/setSwiftFileProperties.test.js
new file mode 100644
index 000000000..26263fef0
--- /dev/null
+++ b/__tests__/common/formatHelpers/setSwiftFileProperties.test.js
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2017 Amazon.com,... | 4 | 3 | 1 | [{"id": "G0", "claim": "Change `var _ = require('../../lib/utils/es6_');` to `const` in __tests__/formats/swiftFile.test.js.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add documentation for the new file options (objectType, accessControl, im... | null |
style-dictionary__style-dictionary__808 | style-dictionary/style-dictionary | 808 | defect | eccc7b2a232d4ce3d97a26222cf8e529afa41428 | 6bc8e6a7335304fd0efa0b149f7d97ad282037e2 | fix(transforms): transitive transforms now work without .value in refs |
*Issue #, if available:*
#794
*Description of changes:*
Updated `resolveObject` function to do the ignorePaths check based on if the reference has a value or not. This allows transitive transforms to work on references without `.value`
By submitting this pull request, I confirm that my contribution is ma... | diff --git a/__tests__/exportPlatform.test.js b/__tests__/exportPlatform.test.js
index a18a522be..ddc5e6d02 100644
--- a/__tests__/exportPlatform.test.js
+++ b/__tests__/exportPlatform.test.js
@@ -85,6 +85,32 @@ describe('exportPlatform', () => {
expect(dictionary.color.button.hover.value).toEqual('#0077CC-darker-... | 2 | 2 | 1 | [{"id": "G0", "claim": "Add a couple of tests covering different combinations of references with and without .value.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If references without .value are not the style the team wants people to follow, the examp... | null |
style-dictionary__style-dictionary__953 | style-dictionary/style-dictionary | 953 | defect | 2aae0371a1717d4b6ea1fcc3576f59d49c3ee8f9 | eea72f714430a7597de60f1920d0cee4930a1961 | fix: account for multi-line comments in tokens, improve comment style | *Issue #, if available:*
fixes https://github.com/amzn/style-dictionary/issues/952
*Description of changes:*
- Account for multi-line comments, by splitting them up in the final comment string.
- Put multi-line comments above the token, making it more readable.
By submitting this pull request, I confirm th... | diff --git a/__tests__/common/formatHelpers/createPropertyFormatter.test.js b/__tests__/common/formatHelpers/createPropertyFormatter.test.js
new file mode 100644
index 000000000..50c37cc72
--- /dev/null
+++ b/__tests__/common/formatHelpers/createPropertyFormatter.test.js
@@ -0,0 +1,106 @@
+/*
+ * Copyright 2017 Amazon.... | 4 | 4 | 1 | [{"id": "G0", "claim": "The new formatter assertions could use toMatchInlineSnapshot so that intentional output changes are easy to update.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The JSDoc on addComment is wrong: the extra commentStyle param is ... | null |
styled-components__polished__163 | styled-components/polished | 163 | defect | b77607697a0cd730c5cdab2037772f35b48bb6ee | c6cf7a3300f16ed707dae9395fd1eb39facff941 | feat(getLuminance): Add getLuminance function | Closes #148
At least partially, as it allows the user to get the value, but doesn't have an accompanying setter to change the luminance. It seemed like this was already being handled by other methods.
I feel like to really make this useful, another method would need to allow a user to compare the contrast ratio ... | diff --git a/README.md b/README.md
index 39eb8755..d5e0069d 100644
--- a/README.md
+++ b/README.md
@@ -146,6 +146,7 @@ In the documentation you will see examples using [object spread properties](http
<li><a href="http://polished.js.org/docs/#rgbacolor">RgbaColor</a></li>
<li><a href="http://polished.js.org/do... | 8 | 6 | 2 | [{"id": "G0", "claim": "The library should also add mixin-guard-style functionality that lets users check the lightness or darkness of a color (plus contrast-related tools), with getLuminance as a stepping stone.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "c... | null |
styled-components__polished__436 | styled-components/polished | 436 | defect | faac33f7a68874eed95701c208ae78e412dc1af9 | e1b83c5983fc94326afc7e79090e0b71bf21941e | feat(color): add color contrast helpers | Adds color contrast helpers using calculations from W3C.
closes #394 | diff --git a/src/color/getColorContrast.js b/src/color/getColorContrast.js
new file mode 100644
index 00000000..d5c0a516
--- /dev/null
+++ b/src/color/getColorContrast.js
@@ -0,0 +1,23 @@
+// @flow
+import getLuminance from './getLuminance'
+
+/**
+ * Returns the contrast ratio between two colors based on
+ * [W3's rec... | 6 | 6 | 3 | [{"id": "G0", "claim": "The ContrastScores type's keys should be boolean rather than number, which should fix the failing Flow tests in the build.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "getColorContrast should be renamed to getContrast to st... | null |
styled-components__polished__438 | styled-components/polished | 438 | defect | faac33f7a68874eed95701c208ae78e412dc1af9 | 1662a30c93bfb69bbd4e70a38066ff9e455b192f | Fix(adjustHue): account for potential negative hue value | closes #437 | diff --git a/src/color/adjustHue.js b/src/color/adjustHue.js
index b0b36d6a..e99e71a4 100644
--- a/src/color/adjustHue.js
+++ b/src/color/adjustHue.js
@@ -32,7 +32,7 @@ function adjustHue(degree: number | string, color: string): string {
const hslColor = parseToHsl(color)
return toColorString({
...hslColor,
... | 4 | 3 | 1 | [{"id": "G0", "claim": "Fix the typo in the pre-existing \"// formular from https://en.wikipedia.org/wiki/HSL_and_HSV\" comment in _hslToRgb.js as part of this pull request.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Instead of the inline \"... | null |
styled-components__polished__484 | styled-components/polished | 484 | defect | 4640a241ffec62da6152b02f90a50306655e041c | b1f4b91f0d5ee7abfa73fc2cd4462eb83fa0ffbe | feat(readableColor): add strict mode option to meet WCAG AA | Resolves #479 | diff --git a/src/color/readableColor.js b/src/color/readableColor.js
index 3b27ce27..67ba1bd8 100644
--- a/src/color/readableColor.js
+++ b/src/color/readableColor.js
@@ -1,8 +1,15 @@
// @flow
import getLuminance from './getLuminance'
+import meetsContrastGuidelines from './meetsContrastGuidelines'
/**
- * Returns... | 4 | 4 | 1 | [{"id": "G0", "claim": "The JSDoc for `strict` should be updated to make clear that strict mode only applies when passing custom return colors.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The return-color parameters should be notated as optiona... | null |
styled-components__polished__514 | styled-components/polished | 514 | defect | 976d5b501aa1adc543f09654af8a7d80187ec06d | 2090a06b8dd93698975f66f4e599c86b4af9a7b6 | feat(color): add isValidColor | Closes #473 | diff --git a/src/color/isValidColor.js b/src/color/isValidColor.js
new file mode 100644
index 00000000..19733d98
--- /dev/null
+++ b/src/color/isValidColor.js
@@ -0,0 +1,30 @@
+// @flow
+
+/**
+ * Checks if the passed value is a valid color
+ *
+ * @example
+ * // Styles as object usage
+ * const styles = {
+ * backg... | 3 | 3 | 1 | [{"id": "G0", "claim": "Tests are needed showing the method works for the other supported color formats (RGB(A), HSL(A), and HCL(A)), not just named colors and hex, before the module can be included.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ne... | null |
styled-components__styled-components__3686 | styled-components/styled-components | 3,686 | defect | fe06a89c453a331f128ce362ba1c0dc776b9bca3 | be0b4e741a2252dbd1dcc7e3e54cb55237db8a0a | Replace mixinDeep with a cycle-safe implementation | Fixes #3576
Since #2838, styled-components has been using a different (smaller) implementation of deep merge that doesn't play well with cyclical objects & particularly objects with cyclical prototypes. In particular, this causes styled-components to blow the stack when used with some Function prototype extensions.... | diff --git a/packages/styled-components/src/utils/mixinDeep.ts b/packages/styled-components/src/utils/mixinDeep.ts
index 4abe61997..fe4c4a764 100644
--- a/packages/styled-components/src/utils/mixinDeep.ts
+++ b/packages/styled-components/src/utils/mixinDeep.ts
@@ -1,60 +1,33 @@
import { ExtensibleObject } from '../typ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The cycle-safe mixinRecursively should avoid for-of and Object.entries (two non-ES primitives) in favour of a simpler, more performant indexed loop over arrays and a for-in loop over plain objects, as suggested.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "int... | null |
styled-components__styled-components__4084 | styled-components/styled-components | 4,084 | defect | 0c63d7c44e7ef006c3705f8d51bec25258566778 | 286b03b7603c6e2713349a2af97259ed10d255f4 | Unknown props: do not warn on React components. | Edit the condition for the unknown props warning to only display it on HTML element and not React component.
Fixes #4049 #4071 | diff --git a/packages/styled-components/package.json b/packages/styled-components/package.json
index 3fc0b2542..86b214faa 100644
--- a/packages/styled-components/package.json
+++ b/packages/styled-components/package.json
@@ -1,6 +1,6 @@
{
"name": "styled-components",
- "version": "6.0.3",
+ "version": "6.0.4",
... | 4 | 3 | 0 | [{"id": "G0", "claim": "The unknown-props warning condition should use the HTML tag Set from packages/styled-components/src/utils/domElements.ts rather than the typeof-string check.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The package version shoul... | null |
styled-components__styled-components__4132 | styled-components/styled-components | 4,132 | defect | e66ad6beef7a40288b9e3e6e230a93475964bcb8 | a72256430a2dd6ef4fdf4939e08c0e452478bf07 | Fix production mode inconsistent CSS rendering when dynamic property values are the same but property names are different | This PR fixes https://github.com/styled-components/styled-components/issues/4113
This problem occurs when dynamic interpolations in different places can return the same value.
An example of how this problem can happen:
```ts
const MyComponent = styled.div<{ $variant: 'text' | 'background' }>`
color: $... | diff --git a/packages/styled-components/src/models/ComponentStyle.ts b/packages/styled-components/src/models/ComponentStyle.ts
index 9bc588b38..29c8b3975 100644
--- a/packages/styled-components/src/models/ComponentStyle.ts
+++ b/packages/styled-components/src/models/ComponentStyle.ts
@@ -73,7 +73,7 @@ export default cl... | 2 | 2 | 0 | [{"id": "G0", "claim": "The production CSS inconsistency was likely introduced by an earlier commit removing the `+ i` from the dynamic hash, so restoring `+ i` for non-string parts (option 2) would also fix it without the ~1.6% production performance cost of hashing in production (option 1).", "category": "performance... | null |
styled-components__styled-components__4327 | styled-components/styled-components | 4,327 | defect | 770d1fa2bc1a4bfe3eea1b14a0357671ba9407a4 | 5f7621e44df226b971ed652671c981f30830e3da | Prevent ServerStyleSheet generating empty style tags/elements | It seems like this PR not ported over to v6 and with React 18 streaming, it's possible to insert empty style tag in middle of html.
It should fix this issue: https://github.com/styled-components/styled-components/issues/4289
Ported over from: https://github.com/styled-components/styled-components/commit/b9e60f7efb6... | diff --git a/packages/styled-components/src/models/ServerStyleSheet.tsx b/packages/styled-components/src/models/ServerStyleSheet.tsx
index 3c81d2ed8..e1639afb1 100644
--- a/packages/styled-components/src/models/ServerStyleSheet.tsx
+++ b/packages/styled-components/src/models/ServerStyleSheet.tsx
@@ -23,6 +23,7 @@ expor... | 1 | 1 | 1 | [{"id": "G0", "claim": "The added `!names.size` skip condition may affect createGlobalStyle in SSR, so a test verifying that createGlobalStyle usage without any other components works as expected in SSR should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
styled-components__styled-components__5638 | styled-components/styled-components | 5,638 | defect | 816720af9f4be8fae178e464efd2b8da5d638fde | e388c07953bd815b0b5e62e4ed0f32bb91e9c9b8 | fix: resolve createGlobalStyle SSR issue in v6.3.x | ## Fix createGlobalStyle compatibility with React StrictMode
- [x] Investigate the issue with `createGlobalStyle` in React StrictMode
- [x] Identify root cause: cleanup runs after StrictMode's simulated remount
- [x] Implement fix:
- Static styles only inject once (skip if already exists)
- Use `queueMicrotask` f... | diff --git a/.changeset/fix-global-style-rerender.md b/.changeset/fix-global-style-rerender.md
new file mode 100644
index 0000000000..d407227977
--- /dev/null
+++ b/.changeset/fix-global-style-rerender.md
@@ -0,0 +1,16 @@
+---
+"styled-components": patch
+---
+
+Fix createGlobalStyle compatibility with React StrictMode... | 4 | 1 | 0 | [{"id": "G0", "claim": "The per-instance cleanup state is tracked with an object wrapper (`useRef<{ shouldRemove: boolean }>`) where a simple boolean would do; the reviewer asks why it is an object vs a simple boolean.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"... | null |
styled-components__styled-components__5699 | styled-components/styled-components | 5,699 | defect | af8e7fbdcd25fcfdf6b1dbd7c73dbf5a3e08f644 | a34592452c80da6452ff68c5550a4b3bf1e6ae95 | fix: prevent createGlobalStyle style accumulation in jsdom tests | ## Summary
- Removes `__SERVER__` from the server-side render guard in `createGlobalStyle`, gating only on `IS_RSC || styleSheet.server`
- Fixes O(n²) performance degradation in jsdom test environments where the server build's dead-code elimination removes `useLayoutEffect` cleanup but still renders styles uncondition... | diff --git a/.changeset/fix-global-style-jsdom-perf.md b/.changeset/fix-global-style-jsdom-perf.md
new file mode 100644
index 000000000..565d1997c
--- /dev/null
+++ b/.changeset/fix-global-style-jsdom-perf.md
@@ -0,0 +1,5 @@
+---
+"styled-components": patch
+---
+
+Fixed createGlobalStyle performance regression in jsdo... | 3 | 3 | 1 | [{"id": "G0", "claim": "Add a regression test covering the jsdom/server-build configuration so that createGlobalStyle does not inject styles during render and does not accumulate rules or DOM nodes across repeated render/unmount cycles.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introd... | null |
styled-components__styled-components__5702 | styled-components/styled-components | 5,702 | defect | df31c0170bfbef1e3ec49c99c3d09bfce0b400b3 | 93ef51866ca97ca3b6bfc7f0b13b455af9ab5283 | fix: prevent RSC style tag accumulation across HMR cycles | ## Summary
- Reset `mainSheet` (names, keyframeIds, tag) once per server render via `React.cache` so stale CSS from previous HMR cycles doesn't persist in the module-level singleton
- Emit keyframe rules in a dedicated `<style>` tag with separate dedup to avoid inconsistent CSS strings when keyframes register mid-rend... | diff --git a/.changeset/fix-rsc-hmr-accumulation.md b/.changeset/fix-rsc-hmr-accumulation.md
new file mode 100644
index 000000000..7e4b3ab80
--- /dev/null
+++ b/.changeset/fix-rsc-hmr-accumulation.md
@@ -0,0 +1,5 @@
+---
+'styled-components': patch
+---
+
+Fix RSC style tag accumulation across HMR cycles. The module-le... | 6 | 4 | 3 | [{"id": "G0", "claim": "Keyframe emission is gated on `emitted` (React.cache availability), so if React.cache is unavailable in an RSC environment keyframe rules will never be emitted; it asks that keyframes be emitted regardless, with `emitted` used for dedup only when it exists — and that keyframe IDs not be mixed in... | null |
styled-components__styled-components__5707 | styled-components/styled-components | 5,707 | defect | b74fc2059b2e1649f88a4adc432d28b138528bdb | e2c12d012206a024c12aaee530461836f35a1f82 | feat: stylisPluginRSC + StyleSheetManager RSC support | ## Summary
- Add `stylisPluginRSC` — opt-in stylis plugin that fixes `:first-child`, `:last-child`, `:nth-child()`, and `:nth-last-child()` selectors broken by RSC inline `<style>` tags
- Make `StyleSheetManager` functional in RSC environments (`stylisPlugins` and `shouldForwardProp` now work without React context)... | diff --git a/.changeset/fix-hmr-stale-styles.md b/.changeset/fix-hmr-stale-styles.md
deleted file mode 100644
index 913290051..000000000
--- a/.changeset/fix-hmr-stale-styles.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-'styled-components': patch
----
-
-Fix stale styles during client-side HMR when module re-evaluation creat... | 7 | 2 | 0 | [{"id": "G0", "claim": "packages/sandbox/app/rsc/layout.tsx references React.ReactNode in the prop type without importing React (or ReactNode), which will fail type-checking under the modern JSX transform; import type ReactNode from react and use it.", "category": "correctness", "verdict": "supported", "priority": "P2"... | null |
styled-components__styled-components__5723 | styled-components/styled-components | 5,723 | defect | 248edc3a7f907ae391a9e93a375190e4b44e59f1 | 3ad2d3bb2fb81ec569738a8e9e4dd217984ea7e9 | fix: bound dynamicNameCache, remove dead deps | ## Memory leak fix
Components using free-form string interpolations — e.g. `` styled.div`color: ${p => p.$value}` `` where `$value` comes from unbounded user input — would accumulate cached class names indefinitely for the lifetime of the component definition. Long-running apps with this pattern leaked memory linearly... | diff --git a/.changeset/fix-dynamic-name-cache-leak.md b/.changeset/fix-dynamic-name-cache-leak.md
new file mode 100644
index 000000000..2359501c5
--- /dev/null
+++ b/.changeset/fix-dynamic-name-cache-leak.md
@@ -0,0 +1,5 @@
+---
+'styled-components': patch
+---
+
+Fix memory leak in long-running apps using components ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The test hard-codes the cache limit as 200 while the production cap is tied to createWarnTooManyClasses.LIMIT, so the assertion can drift if LIMIT changes; import and assert against the shared constant instead.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
styled-system__styled-system__312 | styled-system/styled-system | 312 | defect | e665fc962e9f3280c0d4f7e7a4ad265139a45d34 | 180ecba281891cfeb3e4ca2b2be13baec5067ea1 | Grid gap props should use default spacing scale | Looks like it make sense only for this three props: `gridGap`, `gridColumnGap` and `gridRowGap`.
Fixes #277 | diff --git a/src/index.js b/src/index.js
index 3086a4c5e..9575a1a33 100644
--- a/src/index.js
+++ b/src/index.js
@@ -442,19 +442,22 @@ export const order = style({
export const gridGap = style({
prop: 'gridGap',
transformValue: px,
- key: 'space'
+ key: 'space',
+ scale: defaultScale
})
export const gridC... | 2 | 1 | 1 | [{"id": "G0", "claim": "Using `scale: defaultScale` on the grid gap styles would always use the default scale even when a different scale is set in the theme, so it should not be used here.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The change may... | null |
styled-system__styled-system__352 | styled-system/styled-system | 352 | defect | 9358dff509fec3fbacbf8ff6e9a4be27420ebcbd | 98505230a9080328ae773888d0ec5d8550858456 | feat(space): allow nested objects in space | This uses the internal `get` helper to allow nested property access in `space`, rather than direct. This way space is ambivalent to the data structure of the theme, like other props are.
Are there other props that could use the same treatment?
Fixes #351 | diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 000000000..17b1d52ed
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1,5 @@
+{
+ "semi": false,
+ "singleQuote": true,
+ "trailingComma": "es5"
+}
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index f0ea4455c..1bee18043 10064... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add lint-staged (which the reviewer has used for prettier in other projects) as a follow-up; the reviewer notes the PR is fine as-is.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
styled-system__styled-system__473 | styled-system/styled-system | 473 | defect | 60dc207d46b697cbba426d745e262834ded3e733 | 30b3be1514eefb8702bb7aa02a22f5eea73ce7a5 | Merge styles into single object | This change undoes the change in v4.0.0 where the returned value is an array of styles, favoring a merged object instead. The merge implementation is loosely based on the `deepmerge` package, but only handles objects and does not check for null, falsy or array values. This shouldn't entail a breaking change for most us... | diff --git a/package.json b/package.json
index eb86bdf94..89ec8ec2e 100644
--- a/package.json
+++ b/package.json
@@ -58,6 +58,11 @@
"bench",
"examples",
"packages/**/*"
+ ],
+ "reporter": [
+ "lcov",
+ "text-summary",
+ "html"
]
},
"bundlesize": [
diff --git a/src/in... | 1 | 1 | 0 | [{"id": "G0", "claim": "The merge helpers should be micro-optimized for performance by using a for loop instead of Object.keys, forEach and reduce, since merge is called frequently.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
styled-system__styled-system__572 | styled-system/styled-system | 572 | defect | 4b83fd16aaf8e70c9af1a734c4526d4758320037 | d1fa37828d1856abdb447169a115599cb3bc0052 | css: check for null values | Fixes #571 | diff --git a/packages/css/src/index.js b/packages/css/src/index.js
index 870691532..83234d62b 100644
--- a/packages/css/src/index.js
+++ b/packages/css/src/index.js
@@ -1,6 +1,6 @@
// based on https://github.com/developit/dlv
-export const get = (obj, key = '', def, p, undef) => {
- key = key.split ? key.split('.') :... | 1 | 1 | 0 | [{"id": "G0", "claim": "kof prefers the shorter `if (value == null)` form over the explicit `value === null || value === undefined` check in the responsive loop (both occurrences).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
styled-system__styled-system__595 | styled-system/styled-system | 595 | defect | a05bcb86ae8ad86e1b77cfc5db6148d2e97af4a1 | 8a63afa172fd99c92d6073b5e07c75e3849baec4 | Enable dynamically changed breakpoints for nested themes | ## Problem
[Starting with v5, style functions cache `theme.breakpoints`](https://github.com/styled-system/styled-system/blob/master/CHANGELOG.md#v500-2019-06-02), which
breaks nested themes with varying breakpoints.
## Possible Solution
I'm not too sure about this, so here goes a first draft:
* If you nest theme... | diff --git a/packages/core/src/index.js b/packages/core/src/index.js
index c146eb1be..e0bd1144c 100644
--- a/packages/core/src/index.js
+++ b/packages/core/src/index.js
@@ -36,14 +36,28 @@ export const createParser = config => {
const scale = get(props.theme, sx.scale, sx.defaults)
if (typeof raw === 'o... | 1 | 1 | 1 | [{"id": "G0", "claim": "The per-parse recomputation of `shouldCacheBeBusted` (packages/core/src/index.js line 40, added in S1) appears to negate much of the caching's performance benefit; the line could be hoisted above the `for` loop and the conditional adjusted to minimize the impact, or the caching dropped altogethe... | null |
styleguidist__react-styleguidist__1490 | styleguidist/react-styleguidist | 1,490 | defect | 00a3261d06d84efbfa02c7961eac1579ed5570d0 | 11b863ee2f432682ab41e1e1719c7e1e753723aa | New: Accept styles config as a function | closes #1474
- [X] styles can now accept a function
- [X] tests are written and are passing
- [X] added documentation for the feature in `Configuration.md` and `Cookbook.md`
- [x] update the `customised` example to illustrate the use of the new styles | diff --git a/docs/Configuration.md b/docs/Configuration.md
index fc1aac353..48bfed200 100644
--- a/docs/Configuration.md
+++ b/docs/Configuration.md
@@ -599,12 +599,29 @@ Folder for static HTML style guide generated with `styleguidist build` command.
#### `styles`
-Type: `object`, optional
+Type: `Object` or `Func... | 1 | 1 | 0 | [{"id": "G0", "claim": "The word \"seens\" in the new `styles` note in docs/Configuration.md should be \"seen\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
styleguidist__react-styleguidist__1501 | styleguidist/react-styleguidist | 1,501 | defect | 35e5d6556857d823117b0954212e77a161c323bf | 6d548d08f7cb111523a6ddd26512df052810689d | Setstate/initialState support removed | - removed support for setState and initialState
- Documentation cleanup
closes #1499 | diff --git a/docs/Cookbook.md b/docs/Cookbook.md
index 6535f683c..1bcba1331 100644
--- a/docs/Cookbook.md
+++ b/docs/Cookbook.md
@@ -38,15 +38,15 @@
Use `ref` prop as a function and assign a reference to a local variable:
```jsx
-initialState = { value: '' }
+const [value, setValue] = React.useState('')
let textar... | 6 | 5 | 0 | [{"id": "G0", "claim": "The 'Why object references don't work in example component state?' section in docs/Cookbook.md is no longer relevant with hooks and the whole question can be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The sente... | null |
styleguidist__react-styleguidist__1509 | styleguidist/react-styleguidist | 1,509 | defect | c1e25cf01935a710683550eff60b36ed1c5a9ba3 | 3f172c8a36ce19e747acf016a17e22cafc6ac51b | Fix:(isolation mode issue) issue #1492 | issue link: https://github.com/styleguidist/react-styleguidist/issues/1492
This issue occurred because of the fix that have been made in version 10.0.1 for the issue: https://github.com/styleguidist/react-styleguidist/issues/1454
Hashed Url example: the "#button" in the url is an example of Hashed Url...it gets a... | diff --git a/src/client/utils/__tests__/getUrl.spec.ts b/src/client/utils/__tests__/getUrl.spec.ts
index 327bb352e..53cb4bdfd 100644
--- a/src/client/utils/__tests__/getUrl.spec.ts
+++ b/src/client/utils/__tests__/getUrl.spec.ts
@@ -6,6 +6,11 @@ describe('getUrl', () => {
pathname: '/styleguide/',
hash: '#/Compon... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add URL examples in the comments of the new hash-pattern code (e.g. the difference between /^#[a-zA-Z0-9_]/ and '#!/'), and move the logic into a function that avoids reassignment and uses a regular expression for both checks to make it easier to read.", "category": "maintainability", "verdict":... | null |
styleguidist__react-styleguidist__1567 | styleguidist/react-styleguidist | 1,567 | defect | 3469cbba172d9f81657b388dbffbb8fd5dd7fba4 | 7f39a1ed4dcdd08d7ec2b875fe67820d97a51575 | Fix Crash with some rewritten imports | Resolve:
- Crash with some rewritten imports #1566
After the change, the relative path will split by `/` then joins by `_`.
For example, if gives `./cat/capybara/hamster`, it will be `dot_cat_capybara_hamster`.
Please review me. | diff --git a/src/client/utils/__tests__/transpileImports.spec.ts b/src/client/utils/__tests__/transpileImports.spec.ts
index c8e3f2007..5b3aa93f1 100644
--- a/src/client/utils/__tests__/transpileImports.spec.ts
+++ b/src/client/utils/__tests__/transpileImports.spec.ts
@@ -85,6 +85,20 @@ const C = cat$0.C;
`);
});
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The temp-identifier construction in generate() can be done simpler and even more bulletproof as the suggested dep.replace(/\\W/g, '_'); the added split/map/join chain is unnecessary.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
styleguidist__react-styleguidist__1595 | styleguidist/react-styleguidist | 1,595 | defect | b4c28451fe1cdce0757da851b9f2e1db458794e2 | 935a121698f835dc160cc206cc972a001f62b230 | Fix Sections with numbers in the name don't work | Resolve:
- Sections with numbers in the name don't work #1594
The main reason is that `parseInt` parses the first number string as a number.
Therefore, when `1.Doc` given, it was computed as `1`.
| diff --git a/src/client/utils/__tests__/getInfoFromHash.spec.ts b/src/client/utils/__tests__/getInfoFromHash.spec.ts
index e92f7cdeb..00a901f04 100644
--- a/src/client/utils/__tests__/getInfoFromHash.spec.ts
+++ b/src/client/utils/__tests__/getInfoFromHash.spec.ts
@@ -35,4 +35,24 @@ describe('getInfoFromHash', () => {
... | 2 | 2 | 0 | [{"id": "G0", "claim": "The added test cases may not be enough: the two new cases look no different from each other, and it is asked whether any case covers a number in targetIndex.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The helper consistsOnlyN... | null |
styleguidist__react-styleguidist__1629 | styleguidist/react-styleguidist | 1,629 | defect | a8b5e7a213ca6af858bcf4bdfbebb1161d2a7f30 | 742c05939d1e3edd24673cea78b2481edea8cc12 | Fix Wrong union description with TypeScript #1621 | Resolved:
- Wrong union description with TypeScript #1621
Main changes:
- Create a new component named `ComplexType` and `Tooltip` to show the complex type
- Introduce [tippyjs-react](https://github.com/atomiks/tippyjs-react) in the project
- ~~Add styleMock in the test assets to mock CSS import~~
Hover Act... | diff --git a/package-lock.json b/package-lock.json
index 4a654cede..d558b87c3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2322,6 +2322,11 @@
"fastq": "^1.6.0"
}
},
+ "@popperjs/core": {
+ "version": "2.4.4",
+ "resolved": "https://registry.npmjs.org/@popperjs/core/-/core... | 9 | 9 | 3 | [{"id": "G0", "claim": "The direct tippy.js dependency was added only to silence an import/no-extraneous-dependencies lint error caused by importing tippy.js CSS, and the author asks for a better way.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"... | null |
styleguidist__react-styleguidist__1671 | styleguidist/react-styleguidist | 1,671 | defect | be90f3aa688e5d9f188686c7261d964157a338b6 | 6bd3c0135a91229a33ed8d3c406f9971fcd1b25b | Fix Warning in ArgumentRenderer #1667 | Resolved
- Warning in ArgumentRenderer #1667
I checked the behavior of the component of the original issue after I changed the `name` to optional and found that the following error occurred.
```
DoctrineError {name: "DoctrineError", message: "Unknown type undefined"}
```
What I have found in my research i... | diff --git a/src/client/rsg-components/Argument/ArgumentRenderer.tsx b/src/client/rsg-components/Argument/ArgumentRenderer.tsx
index 9cfbcdd1a..f3dfc513d 100644
--- a/src/client/rsg-components/Argument/ArgumentRenderer.tsx
+++ b/src/client/rsg-components/Argument/ArgumentRenderer.tsx
@@ -15,7 +15,7 @@ export const styl... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new returns expression is no different from the previous version (it still returns method.returns when truthy, else returnTags[0]) and should be made clearer: if method.returns is missing the type, the type should be added there, preserving its priority, instead of merging returnTags[0] over... | null |
styleguidist__react-styleguidist__1689 | styleguidist/react-styleguidist | 1,689 | defect | a31f34841c2eb04a62b35ae86bee4836d7cc2959 | 579bfc1c2449d4bb1b0e17345667aa42523815ec | Add expand and allow custom root section options | This addresses #1674 which allows user set and `expand` setting for each root section. It also sends all custom options from the user through to be usable | diff --git a/src/client/rsg-components/TableOfContents/TableOfContents.tsx b/src/client/rsg-components/TableOfContents/TableOfContents.tsx
index 3ee7f2a85..3d83de83f 100644
--- a/src/client/rsg-components/TableOfContents/TableOfContents.tsx
+++ b/src/client/rsg-components/TableOfContents/TableOfContents.tsx
@@ -66,7 +6... | 2 | 2 | 0 | [{"id": "G0", "claim": "The pull request should add documentation and tests for the new expand option it introduces.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "With `...section` spread into the returned object, the explicit `name`, `descriptio... | null |
styleguidist__react-styleguidist__1690 | styleguidist/react-styleguidist | 1,690 | defect | a31f34841c2eb04a62b35ae86bee4836d7cc2959 | f45dfb61deff5b51da483168f322580867f36670 | Fix broken assetsDir due to updated copy-webpack-plugin | Because copy-webpack-pluign was updated, the assetsDir was broken. We need to update the config being passed to the plugin to make it work again. Update the plugin to latest version 6.1.0 and update the config and tests to make it work.
- [x] Update `copy-webpack-plugin` to `^6.1.0`.
- [x] Fix configuration passed ... | diff --git a/package-lock.json b/package-lock.json
index a2e64bab2..632ae4c6c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2617,9 +2617,9 @@
}
},
"@types/copy-webpack-plugin": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/@types/copy-webpack-plugin/-/copy-web... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment about the copy-webpack-plugin@6.0 cast should be marked as a FIXME to make it more visible.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
styleguidist__react-styleguidist__1710 | styleguidist/react-styleguidist | 1,710 | defect | d80a19072eebeb26dac17022235e319f45f5b87b | 3acbe017e909b0f150fea4bc61fd6643f1d73045 | [CVE-2020-7753] Update remark to 13.0.0 |
Fixes #1706 | diff --git a/package-lock.json b/package-lock.json
index 142b4beea..6533bbb7a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -4069,6 +4069,14 @@
"@types/react": "*"
}
},
+ "@types/mdast": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-... | 2 | 2 | 0 | [{"id": "G0", "claim": "Let's keep remark's default emphasis setting instead of adding `.use({ settings: { emphasis: '_' } })` in chunkify.ts.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since the new remark behavior already avoids auto-linking URLs, ... | null |
styleguidist__react-styleguidist__1715 | styleguidist/react-styleguidist | 1,715 | defect | 2b7bfe2a1b37be3f197ac889d375d270cfe18190 | e863557eb8f4dafbd242cd5f578fa104588194ab | Fix Links don't work anymore for `pagePerSection` | Resolved:
- Links don't work anymore for `pagePerSection` #1702
| diff --git a/src/client/utils/__tests__/processSections.spec.ts b/src/client/utils/__tests__/processSections.spec.ts
index 8e791925e..8542cfa0a 100644
--- a/src/client/utils/__tests__/processSections.spec.ts
+++ b/src/client/utils/__tests__/processSections.spec.ts
@@ -23,7 +23,7 @@ const sections = deepfreeze([
const ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The rewrite of the getUrl() arguments from `useRouterLinks` to `options.useRouterLinks` in processSections.ts is confusing and shows no visible difference, so it needs justification or should be reverted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
stylelint-scss__stylelint-scss__1042 | stylelint-scss/stylelint-scss | 1,042 | defect | a689b55e41a4c582377f2b291236757e4594b429 | 899d61fa734497973a471d73c5d9fd4f602ea1a3 | Fix false positives in `declaration-property-value-no-unknown` for dollar vars and operators. | - Support first-class operators.
- Support SCSS variables as arguments in nested functions. | diff --git a/src/rules/declaration-property-value-no-unknown/__tests__/index.js b/src/rules/declaration-property-value-no-unknown/__tests__/index.js
index 3471be696..dba813c3c 100644
--- a/src/rules/declaration-property-value-no-unknown/__tests__/index.js
+++ b/src/rules/declaration-property-value-no-unknown/__tests__/... | 3 | 2 | 0 | [{"id": "G0", "claim": "The newly added extractFunctionParams utility may duplicate existing functionality, so the pull request should use the existing parseFunctionArguments utility instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The op... | null |
stylelint-scss__stylelint-scss__1103 | stylelint-scss/stylelint-scss | 1,103 | defect | 8876374807f66bcc25df2e0dfa0d99c384c4152d | ba06e46b9566a4f2bf518775e8792e89f2d8dc90 | Add `no-duplicate-load-rules` rule. | Closes #1079 | diff --git a/src/rules/index.js b/src/rules/index.js
index b3cc39bcc..fd9dfce55 100644
--- a/src/rules/index.js
+++ b/src/rules/index.js
@@ -62,6 +62,7 @@ const rules = {
"media-feature-value-dollar-variable": require("./media-feature-value-dollar-variable"),
"no-dollar-variables": require("./no-dollar-variables"... | 6 | 6 | 4 | [{"id": "G0", "claim": "Duplicate `@forward` checking should be enabled by default rather than gated behind the `includeForward` secondary option.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `includeConfigurations` option should not be needed — co... | null |
stylelint-scss__stylelint-scss__1113 | stylelint-scss/stylelint-scss | 1,113 | defect | c00f664466199be3a9ee566000f396b7ac471b68 | 1f495b4a03937822d9d43d2929210a6d30821741 | Allow functions from explicit namespaces within other functions in `declaration-property-value-no-unknown` | Fixes #1112. | diff --git a/src/rules/declaration-property-value-no-unknown/index.js b/src/rules/declaration-property-value-no-unknown/index.js
index f9d103e67..51e65b9e7 100644
--- a/src/rules/declaration-property-value-no-unknown/index.js
+++ b/src/rules/declaration-property-value-no-unknown/index.js
@@ -297,13 +297,14 @@ function ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The regular expression added to containsCustomFunction uses suspicious overlapping character ranges (a-zA-Z repeated with a-z/A-Z, including `a-zA-Za-z0-9` at S1 and `a-zA-Za-z0-9\\_\\-` at S2) that the code-scanning bot flags as overly permissive; this PR's change should avoid such redundant ch... | null |
stylelint-scss__stylelint-scss__230 | stylelint-scss/stylelint-scss | 230 | defect | db79890e9e757b9eca21f372c28eafa8a72d08e2 | 1719d95b89c532633363b2f1297b6edb967d89aa | Add autofix for double-slash-comment-empty-line-before | replaces #225
Because RegExp construction from string is a mess 🤷♂️ | diff --git a/src/rules/double-slash-comment-empty-line-before/__tests__/index.js b/src/rules/double-slash-comment-empty-line-before/__tests__/index.js
index dd0f4fb9..d9b24fa5 100644
--- a/src/rules/double-slash-comment-empty-line-before/__tests__/index.js
+++ b/src/rules/double-slash-comment-empty-line-before/__tests_... | 1 | 1 | 0 | [{"id": "G0", "claim": "The fix function should be moved outside the root.walkComments loop so that it is not re-declared on every iteration.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
stylelint-scss__stylelint-scss__27 | stylelint-scss/stylelint-scss | 27 | defect | 4ab3028e4aac180368c3402e9ffdf800049d83b1 | 8269bc796a2576061cc12773cc8950f57e62af92 | at-import-path- rules | Implements #19
Decided to make it a PR from a separate branch as I believe there could be suggestions about the rules' names and functionality. If it's ok then I'll merge it (or you guys can, I don't mind :) )
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index 969f033f..0e95042b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,8 @@
# Head
- Added: `at-mixin-no-argumentless-call-parentheses` rule.
+- Added: `at-import-no-partial-leading-underscore` rule.
+- Added: `at-import-no-partial-extension` rule.
# 1.0.0
dif... | 10 | 10 | 6 | [{"id": "G0", "claim": "The at-import-no-partial-extension README title incorrectly reads \"at-import-no-partial-leading-underscore\".", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The at-import-no-partial-extension README wraps an example in str... | null |
stylelint-scss__stylelint-scss__307 | stylelint-scss/stylelint-scss | 307 | defect | 5032a3b61231a8522d975df58b0d589849d849cc | 20387a8eb475a9d40e2fad5cc1faaad99e381195 | Handle interpolation in selector-nest-combinators | Fixes #306 | diff --git a/src/rules/selector-nest-combinators/__tests__/index.js b/src/rules/selector-nest-combinators/__tests__/index.js
index 46d25180..b92bd03b 100644
--- a/src/rules/selector-nest-combinators/__tests__/index.js
+++ b/src/rules/selector-nest-combinators/__tests__/index.js
@@ -1,4 +1,4 @@
-import rule, { ruleName,... | 1 | 1 | 0 | [{"id": "G0", "claim": "The interpolation regex `#{.+}$` would be better written with the non-greedy `+?` operator so that it does not match the whole of `#{$var} .selector li #{$var-2}`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
stylelint-scss__stylelint-scss__325 | stylelint-scss/stylelint-scss | 325 | defect | c8a0f2ff85a588424b02a154be3811b16029ecc0 | ae42ca205f57cd619b31c66f1c4b2d0972880988 | Rule for using @each with maps properly | https://github.com/sass/linter/issues/33
sass/linter had a rule request for a linter that enforces proper loops over maps. This is a rule that checks for situations where users have:
- Done a loop using map-keys
- Grabbed the value for that key inside of the loop. | diff --git a/src/rules/each-key-value-single-line/README.md b/src/rules/each-key-value-single-line/README.md
new file mode 100644
index 00000000..33a3b5a9
--- /dev/null
+++ b/src/rules/each-key-value-single-line/README.md
@@ -0,0 +1,48 @@
+# each-key-value-single-line
+
+ Disallow situations where users loop over map-k... | 5 | 5 | 1 | [{"id": "G0", "claim": "The rule should follow stylelint's naming conventions for at-rules, e.g. a name like `at-rule-each-*` instead of `each-key-value-single-line`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The SCSS example in the README is broken... | null |
stylelint-scss__stylelint-scss__333 | stylelint-scss/stylelint-scss | 333 | defect | 90a2f93ffb5d2dfa15c272c39e317f50b9a3addd | 586ffa167b177d266cf14c07412ee65cd1f37278 | use scalar-color function instead of other color adjustment functions | sass/linter had a [rule](https://github.com/sass/linter/blob/master/lib/src/rules/use_scale_color.dart) that told users to use `scalar-color` instead of a variety of other functions.
This linter rule tells users to use the scalar-color function. | diff --git a/src/rules/function-scale-color-use-always/README.md b/src/rules/function-scale-color-use-always/README.md
new file mode 100644
index 00000000..d0ea49d7
--- /dev/null
+++ b/src/rules/function-scale-color-use-always/README.md
@@ -0,0 +1,83 @@
+# function-scale-color-use-always
+
+Encourage the use of the [sc... | 2 | 2 | 0 | [{"id": "G0", "claim": "The rule's error message should follow stylelint's \"Expected [something] [in some context]\" message format.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rule name \"function-scale-color-use-always\" is strange and... | null |
stylelint-scss__stylelint-scss__338 | stylelint-scss/stylelint-scss | 338 | defect | f580170bda0ebfc48956021d117c244ce6b58fe0 | d0ac0e8b7b2267c84d14fa9930d9426b50f73058 | [FIxed:314] add rule `selector-no-union-class-name` | Added new rule to fix https://github.com/kristerkari/stylelint-scss/issues/314.
This rule disallow to union class name like [this](https://github.com/kristerkari/stylelint-scss/pull/338/files#diff-216b2f4a7cbff3ec0d33ead1e8ee872dR35). | diff --git a/README.md b/README.md
index de4be224..02e11d4d 100644
--- a/README.md
+++ b/README.md
@@ -144,6 +144,7 @@ Please also see the [example configs](./docs/examples/) for special cases.
- [`selector-nest-combinators`](./src/rules/selector-nest-combinators/README.md): Require or disallow nesting of combinator... | 2 | 2 | 1 | [{"id": "G0", "claim": "The rule's violation message should follow stylelint's documented \"Expected/Unexpected [something] [in some context]\" format, e.g. \"Unexpected union class name with the parent selector (&)\".", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id... | null |
stylelint-scss__stylelint-scss__34 | stylelint-scss/stylelint-scss | 34 | defect | ff863bfe98173af028f89c493d458b1e2589e6c8 | 4d8bfae3049ec802c2764028b4c0e8cbe7b60d39 | selector-no-redundant-nesting-selector: fix false positives, fixes #32 | Fix false positives when `&` is used to combine classname from multiple parts or when BEM syntax is used.
| diff --git a/src/rules/selector-no-redundant-nesting-selector/__tests__/index.js b/src/rules/selector-no-redundant-nesting-selector/__tests__/index.js
index afc16b27..e28389b7 100644
--- a/src/rules/selector-no-redundant-nesting-selector/__tests__/index.js
+++ b/src/rules/selector-no-redundant-nesting-selector/__tests_... | 1 | 1 | 0 | [{"id": "G0", "claim": "The rule does not flag redundant ampersands before id, placeholder (`%`), or attribute selectors, e.g. `& #class {}`, `& %class {}`, `& [type=\"text\"] {}` return no error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
stylelint-scss__stylelint-scss__344 | stylelint-scss/stylelint-scss | 344 | defect | 147b44cf10725fbf7b08a33885a6f7b7b8df4bb9 | f2fd9f9822acdec7cf0e285569924411b1d8859d | New rule: `at-if-no-null` | The [sass/linter](https://github.com/sass/linter/blob/master/lib/src/rules/use_falsey_null.dart) project had a rule to check for using `== null` or `!= null` inside @if statements.
This rule replicates that. | diff --git a/src/rules/at-if-no-null/README.md b/src/rules/at-if-no-null/README.md
new file mode 100644
index 000000000..5deb45e0d
--- /dev/null
+++ b/src/rules/at-if-no-null/README.md
@@ -0,0 +1,44 @@
+# at-if-no-null
+
+Check for equality to null is unnecessarily explicit since `null` is falsey in Sass.
+
+```scss
+a... | 4 | 3 | 1 | [{"id": "G0", "claim": "The README's Options section should read `true` rather than `always`, since this rule does not use `always`/`never` options.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The tests should include more cases with calculatio... | null |
stylelint-scss__stylelint-scss__350 | stylelint-scss/stylelint-scss | 350 | defect | a0e54d7e311adfa6f27e4ff04c02e4bc8de5fdb0 | c616a2c6767157bbcfdb6c5419d0c5621396445a | map-keys-quotes: don't require numbers to be quoted | Fixes #348
ping @certainlyakey @rambleraptor @nex3 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 39f799b4..c6ece128 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+# HEAD
+
+- Fixed: `map-keys-quotes` warning for unquoted numeric keys.
+
# 3.9.2
- Fixed: `selector-no-union-class-name` throwing an error when using nested `@`-rules.
diff --git a/src/ru... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test case with single-quoted map keys carries the copy/pasted description \"accepts strings without quotes\", and it should say \"accepts strings with quotes\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
stylelint-scss__stylelint-scss__351 | stylelint-scss/stylelint-scss | 351 | defect | a0e54d7e311adfa6f27e4ff04c02e4bc8de5fdb0 | fd044dee7a2dcb7b678eb5fddb4f6b402a20ce69 | New rule: at-conditional-rule-no-parentheses | sass/linter had a [rule request](https://github.com/sass/linter/issues/15) for a rule that would look for unnecessary parentheses in conditionals | diff --git a/src/rules/at-conditional-rule-no-parentheses/README.md b/src/rules/at-conditional-rule-no-parentheses/README.md
new file mode 100644
index 00000000..b9b4af6c
--- /dev/null
+++ b/src/rules/at-conditional-rule-no-parentheses/README.md
@@ -0,0 +1,43 @@
+# at-conditional-rule-no-parentheses
+
+Disallow parenth... | 5 | 5 | 1 | [{"id": "G0", "claim": "Add a test that `@if (1 + 1) == 2` is allowed, since parentheses can be used for math rather than to surround the whole condition.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The rejection message should follow stylelint namin... | null |
stylelint-scss__stylelint-scss__357 | stylelint-scss/stylelint-scss | 357 | defect | 7f4cdc6c1505e35730156ff715c9846bd72aa95a | a0b1d96e8ac2ea8a81993a9963dcd00b1be3ca68 | New rule: No non numeric dimensions | The old sass/linter had a [rule](https://github.com/sass/linter/blob/master/test/rules/non_numeric_dimension_test.dart) to ensure that string interpolated values didn't have units attached to them (because they'd be strings instead of numbers).
This rule replicates that. The tests are the same for the sass/linter ru... | diff --git a/src/rules/index.js b/src/rules/index.js
index f316b694..c6f4f809 100644
--- a/src/rules/index.js
+++ b/src/rules/index.js
@@ -33,6 +33,7 @@ import functionNoQuotedStrings from "./function-quote-no-quoted-strings-inside";
import mediaFeatureValueDollarVariable from "./media-feature-value-dollar-variable";
... | 6 | 6 | 4 | [{"id": "G0", "claim": "The accept test multiplies a string by a number (\"1\" * 1), which won't work; the test should use a proper numeric value (padding: 1 * 1<unit>).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "`#{...}%` is not valid syntax an... | null |
stylelint-scss__stylelint-scss__371 | stylelint-scss/stylelint-scss | 371 | defect | 2f63ae0c01eba3dfb324366c1c7c2670270489df | 6dd5611ef2bf9b581e8ddca4a128e652ace8ca36 | Add no-duplicate-mixins rule | This adds a `no-duplicate-mixins` rule that checks wether a stylesheet contains multiple declarations for the same mixin.
It is heavily inspired by the `no-duplicate-dollar-variables` rule. | diff --git a/README.md b/README.md
index 168a1bae0..6fdc64c84 100644
--- a/README.md
+++ b/README.md
@@ -166,6 +166,7 @@ Please also see the [example configs](./docs/examples/) for special cases.
- [`no-dollar-variables`](./src/rules/no-dollar-variables/README.md): Disallow dollar variables within a stylesheet.
- [... | 1 | 1 | 0 | [{"id": "G0", "claim": "At least one more test case (and README example) should be added covering the case where the `@mixin` is nested inside another selector, e.g. a nested `@mixin foo` inside `.b { ... }` followed by `@include foo`.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
stylelint-scss__stylelint-scss__425 | stylelint-scss/stylelint-scss | 425 | defect | 26097c6fd72aab40d76a90f176097ccd57a6c347 | ec87117ca2b34559cd22cfd62ab9eea33e1e7e98 | Linter for global function names | Issue: https://github.com/kristerkari/stylelint-scss/issues/397
This creates a linter for global function names.
Couple things:
1) I didn't know how comprehensive to make the docs + test suite. Putting in examples for every rule seemed excessively verbose.
2) I purposefully didn't put in auto-fix functional... | diff --git a/src/rules/index.js b/src/rules/index.js
index a1ffd4e06..56730873b 100644
--- a/src/rules/index.js
+++ b/src/rules/index.js
@@ -40,6 +40,7 @@ import functionNoUnquotedStrings from "./function-unquote-no-unquoted-strings-in
import mapKeysQuotes from "./map-keys-quotes";
import mediaFeatureValueDollarVaria... | 3 | 3 | 2 | [{"id": "G0", "claim": "The test files should use the namespaced module import `@use \"sass:color\";` instead of the invalid `@use color;`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asked to also add accept tests for using a global... | null |
stylelint-scss__stylelint-scss__453 | stylelint-scss/stylelint-scss | 453 | defect | 5092e53e447e323d28645eab97f701788e35e87a | bf61883e7b45489035866c0c6fefbf34ea7bd906 | no-duplicate-dollar-variables: allow dup vars in unrelated scopes | Fixes #277 | diff --git a/src/rules/no-duplicate-dollar-variables/__tests__/index.js b/src/rules/no-duplicate-dollar-variables/__tests__/index.js
index d4b76380..12f5d9d2 100644
--- a/src/rules/no-duplicate-dollar-variables/__tests__/index.js
+++ b/src/rules/no-duplicate-dollar-variables/__tests__/index.js
@@ -63,6 +63,39 @@ testRu... | 3 | 2 | 0 | [{"id": "G0", "claim": "The ancestor-collection loop seems inefficient because parent.toString() likely serializes the entire subtree below each parent, and the author is unsure what keys would uniquely identify scopes.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id"... | null |
stylelint-scss__stylelint-scss__46 | stylelint-scss/stylelint-scss | 46 | defect | 34f35a9aac06cf6894afcbe0d9383889584e9035 | 4ed5ad3dc019fac46620f3bbb6b5f7291e17ba27 | New rules: at-import-partial-extension-blacklist, at-import-partial-extension-whitelist | Implements #41
Two separate rules for extensions blacklist and whitelist, the old one gets deprecated (and to be removed in 2.0.0).
There is a problem though. Deprecation warning makes all the tests for `at-import-no-partial-extension` fail. Is there a more graceful way of giving such warnings?
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index 795b0dfe5..c98712732 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,8 @@
# Head
- Added: `partial-no-import` rule.
+- Added: `at-import-partial-extension-blacklist` rule.
+- Added: `at-import-partial-extension-whitelist` rule.
# 1.1.1
diff --git a/README.... | 5 | 5 | 1 | [{"id": "G0", "claim": "Adding the deprecation warning to at-import-no-partial-extension makes all the rule's existing tests fail (each gets an extra warning), and the tests should be commented out with a test or two added for the deprecation warning instead.", "category": "testing", "verdict": "supported", "priority":... | null |
stylelint-scss__stylelint-scss__47 | stylelint-scss/stylelint-scss | 47 | defect | 34f35a9aac06cf6894afcbe0d9383889584e9035 | f3065277ef4f23d72261ac14aa24804115020443 | New rule: media-query-value-dollar-variable | Implements #29
Since this rule is about forcing/disallowing `$`-variables, the logic ended up like this:
- `always`: a value must be a single variable, possibly inside interpolation, nothing else is allowed.
- `never`: a value must not have variables at all (function calls are allowed, but not with variables as their... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 795b0dfe..bd689125 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,7 @@
# Head
- Added: `partial-no-import` rule.
+- Added: `media-query-value-dollar-variable` rule.
# 1.1.1
diff --git a/README.md b/README.md
index 8bd7fa05..aae51390 100644
--- a/README.md... | 7 | 5 | 2 | [{"id": "G0", "claim": "The rule should be named media-feature-* (media-feature-value-dollar-variable) instead of media-query-value-dollar-variable, following stylelint's rule naming.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `ignore: [\"calcula... | null |
stylelint-scss__stylelint-scss__6 | stylelint-scss/stylelint-scss | 6 | defect | ebf7bdcfa64ab9b53e2043c05791a35576b6ed59 | 71ca9c89eca36618b4a5b218d5d7461f0b172558 | Add selector-no-redundant-parent, closes #3 | Most of the tests are from https://github.com/brigade/scss-lint/blob/master/spec/scss_lint/linter/unnecessary_parent_reference_spec.rb
**Checklist**
- [x] Add readme
| diff --git a/src/rules/selector-no-redundant-parent/__tests__/index.js b/src/rules/selector-no-redundant-parent/__tests__/index.js
new file mode 100644
index 00000000..2b014720
--- /dev/null
+++ b/src/rules/selector-no-redundant-parent/__tests__/index.js
@@ -0,0 +1,139 @@
+import ruleTester from "stylelint-rule-tester"... | 2 | 1 | 1 | [{"id": "G0", "claim": "An `&` inside an attribute selector value, e.g. `div[id=\"foo&bar\"]`, may make the new rule misbehave, and this edge case should be checked/covered.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The author should look into ... | null |
stylelint-scss__stylelint-scss__847 | stylelint-scss/stylelint-scss | 847 | defect | 9aa4449fc872d5b35ccdf2f4f342ca546967eee4 | 0347303f9e99525853d5ba510dd7cb6700eb2259 | Add property-no-unknown rule | Fix #490. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e07e624b6..767b3a325 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,9 @@
+# 5.2.0
+
+- Added: `property-no-unknown` rule to disallow unknown properties. (#490).
+
+**Full Changelog**: https://github.com/stylelint-scss/stylelint-scss/compare/v5.2.0...v5.1.0
+
# 5.... | 2 | 2 | 1 | [{"id": "G0", "claim": "Importing postcss-less types in src/utils/isStandardSyntaxDeclaration.js would force postcss-less to be a non-dev (runtime) dependency, which the project would not want.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The READ... | null |
stylelint-scss__stylelint-scss__849 | stylelint-scss/stylelint-scss | 849 | defect | 9aa4449fc872d5b35ccdf2f4f342ca546967eee4 | 81516350cd6cbf52498035c3f3a87c47e4a30b9e | Add function-calculation-no-interpolation rule | Fix #539. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e07e624b6..ad44fd18e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,9 @@
+# 5.2.0
+
+- Added: `function-no-interpolation` rule to forbid interpolation in calc functions (#539).
+
+**Full Changelog**: https://github.com/stylelint-scss/stylelint-scss/compare/v5.1.0.... | 4 | 4 | 1 | [{"id": "G0", "claim": "The rule README presents the first-class calc() feature as upcoming even though it has now launched, and should also connect the rule to the rationale for the lint described in the issue.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
stylelint-scss__stylelint-scss__988 | stylelint-scss/stylelint-scss | 988 | defect | 26c105c52462c5e3b304c13ae9f9ea0d4bea9af5 | b7a30d8a13dce8cabc1d160cac634acb5cf30524 | Support at-rules in `no-global-function-names` | Fixes #593. | diff --git a/src/rules/no-global-function-names/__tests__/index.js b/src/rules/no-global-function-names/__tests__/index.js
index 54752038..72af14fd 100644
--- a/src/rules/no-global-function-names/__tests__/index.js
+++ b/src/rules/no-global-function-names/__tests__/index.js
@@ -290,6 +290,26 @@ testRule({
@debug... | 1 | 1 | 1 | [{"id": "G0", "claim": "Stop importing getAtRuleParams from stylelint's internal utils, since they can change in future stylelint versions and cause a breaking change; create a copy of the util in this library instead.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
stylelint__stylelint__5062 | stylelint/stylelint | 5,062 | defect | 728589d0e837bd4483703a0ea39f44fcddf71287 | 1d080867fe5187ba8f6e5e6024bc13720ae0be58 | Add support for a TAP formatter | This PR adds support for a TAP formatter using an update to the code snippet from @danielsamuels discussed in #3889.
> Which issue, if any, is this issue related to?
Closes #3889
> Is there anything in the PR that needs further explanation?
No, it is self explanatory. Used #3524 as a starting point.
| diff --git a/docs/user-guide/usage/options.md b/docs/user-guide/usage/options.md
index f4850701a8..33894a04f5 100644
--- a/docs/user-guide/usage/options.md
+++ b/docs/user-guide/usage/options.md
@@ -48,6 +48,7 @@ Options are:
- `compact`
- `json` (default for Node API)
- `string` (default for CLI)
+- `tap`
- `unix`... | 3 | 2 | 1 | [{"id": "G0", "claim": "It is unclear why the trailing lines.push('') after the results loop needs to exist (manual testing showed removing it stops the last result being reported for larger sets), and the author asks whether a better approach exists.", "category": "maintainability", "verdict": "opposed", "priority": "... | null |
stylelint__stylelint__6250 | stylelint/stylelint | 6,250 | defect | 0bd6976fea7fa2a07c47672de424194716d31164 | 108a9a3d96d41e72231ac4644e1acc1d109477ed | Add invalid rule primary option message for `false` | > Which issue, if any, is this issue related to?
Closes #5091
see also #2027 #5221 #3516 #1953 #2611
> Is there anything in the PR that needs further explanation?
~check the message of the first commit~
https://github.com/stylelint/stylelint/commit/101f2740f85315cb48f27714cfe4119b79beb6a3#diff-ea40f7b7d98... | diff --git a/lib/utils/__tests__/validateOptions.test.js b/lib/utils/__tests__/validateOptions.test.js
index e8907ac69cc..4c8f82c24d4 100644
--- a/lib/utils/__tests__/validateOptions.test.js
+++ b/lib/utils/__tests__/validateOptions.test.js
@@ -26,17 +26,17 @@ describe('validateOptions for primary options', () => {
... | 5 | 3 | 1 | [{"id": "G0", "claim": "validateOptions is documented to validate a rule's options, so it shouldn't be called to validate options of things that are not rules, as validateDisableSettings does internally.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The... | null |
stylelint__stylelint__6511 | stylelint/stylelint | 6,511 | defect | 716139d28ba2627117f563a0bae976223c4d0aee | b9118858805a9a99bd4ba290ce069dcf74b57cf0 | Add declaration-property-value-no-unknown | <!-- Each pull request must be associated with an open issue unless it's a documentation fix. If a corresponding issue does not exist, please create one so we can discuss the change first. -->
<!-- Please answer the following. We close pull requests that don't. -->
> Which issue, if any, is this issue related to?... | diff --git a/docs/migration-guide/to-15.md b/docs/migration-guide/to-15.md
index 8cb947ba8a..e32cb60198 100644
--- a/docs/migration-guide/to-15.md
+++ b/docs/migration-guide/to-15.md
@@ -4,6 +4,13 @@ This release contains significant and breaking changes that will help us moderni
## Significant change
+Two signifi... | 8 | 5 | 2 | [{"id": "G0", "claim": "Adding css-tree might increase the stylelint package size, and grammar matching could be bundled (tree-shaken) to avoid that.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test suite should accept a vendor-prefixed value... | null |
stylelint__stylelint__6890 | stylelint/stylelint | 6,890 | defect | a2c550ce8e4ee94357faa81816086a6bdae7ab60 | 459f4a24d1c113950c45466851904159b096f675 | Spellcheck on CI | <!-- Each pull request must be associated with an open issue unless it's a documentation fix. If a corresponding issue does not exist, please create one so we can discuss the change first. -->
<!-- Please answer the following. We close pull requests that don't. -->
> Which issue, if any, is this issue related to?... | diff --git a/.codespellrc b/.codespellrc
new file mode 100644
index 0000000000..01e309ccb6
--- /dev/null
+++ b/.codespellrc
@@ -0,0 +1,5 @@
+# -*- mode: conf -*-
+[codespell]
+check-filenames = true
+skip = ./.git,./node_modules,./.coverage,package-lock.json
+ignore-words-list = afterall
diff --git a/.github/workflows/... | 3 | 1 | 0 | [{"id": "G0", "claim": "The test fixture string 'pw:need' should perhaps be 'pw:pwned', per the Wiktionary entry for 'pwned'.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Renaming the test's invalid option from '--conig' to '--configg' is an u... | null |
stylelint__stylelint__7134 | stylelint/stylelint | 7,134 | defect | 8635c3fdddebe17a4cf302e69da4d0f18ac0454b | cbf09cf08fd70d32712f3e2f6dd405f6846d8b4b | Change exit code for CLI flag error | <!-- Each pull request must be associated with an open issue unless it's a documentation fix. If a corresponding issue does not exist, please create one so we can discuss the change first. -->
<!-- Please answer the following. We close pull requests that don't. -->
> Which issue, if any, is this issue related to?
Cl... | diff --git a/.changeset/grumpy-adults-crash.md b/.changeset/grumpy-adults-crash.md
new file mode 100644
index 0000000000..6fac83347f
--- /dev/null
+++ b/.changeset/grumpy-adults-crash.md
@@ -0,0 +1,5 @@
+---
+"stylelint": major
+---
+
+Changed: exit code for CLI flag error
diff --git a/docs/migration-guide/to-16.md b/d... | 6 | 4 | 0 | [{"id": "G0", "claim": "The exit-code constant name `EXIT_CODE_VIOLATION` (formerly `EXIT_CODE_ERROR`) is ambiguous, and the `EXIT_CODE_*` constants should get clearer names such as `EXIT_CODE_LINT_PROBLEM` (Mouvedia preferring `EXIT_CODE_PROBLEM`).", "category": "maintainability", "verdict": "supported", "priority": "... | null |
stylelint__stylelint__7202 | stylelint/stylelint | 7,202 | defect | 7e629d416d4ea039f15220d2f99f334668877546 | 78da1162f14969d1c67ddd52e1dc0dd62cdbea75 | Add an ability to pass a function for severity secondary option | Let me know if I should add more tests (if so, where?), or change something in the docs.
I did implement the feature as described in the https://github.com/stylelint/stylelint/issues/6863#issuecomment-1567238888 comment.
<!-- Each pull request must be associated with an open issue unless it's a documentation fix.... | diff --git a/.changeset/functional-severity.md b/.changeset/functional-severity.md
new file mode 100644
index 00000000000..076d21d400f
--- /dev/null
+++ b/.changeset/functional-severity.md
@@ -0,0 +1,5 @@
+---
+"stylelint": minor
+---
+
+Added: `severity` secondary option now accepts a function allowing to adjust the s... | 6 | 4 | 0 | [{"id": "G0", "claim": "Rename the `Severity` import in types/stylelint/index.d.ts because it is confusing to have it imported twice in the same file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the new experimental-feature paragraph of do... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.