Releases: winston0410/sparrow
Releases · winston0410/sparrow
v0.4.2
- 📝 Update Sparrow plugin list 549f118
- 📝 Add explanation on callbacksb 42cb87f
- 📝 Add link to PostCSS Sparrow plugins ab8107b
- 📝 Add API reference 81407c3
- 📝 Update code example 8965a3b
- ✨ Add type checking for callbacks 9119fbb
- 🏗️ Change "callback" in options to "callbacks" to reflect the fact that it is now an array. 548c653
v0.4.1
v0.4.0
- 📝 Update description in the documentation for the new API fc12367
- 🔥 Remove unnecessary import in test files 6d83a06
- ✅ Test how many times callback would run when wildcard is used 171d52b
- ✅ Add assertion that callback is not called when no declaration is selected 10767fd
- ✅ Add assertion in callbacks to check if declarations are selected correctly 1e4a888
- ✅ Set up sinon in test 7990c80
- ➕ Add sinon.js for testing callbacks 4782743
- ✅ Remove unnecessary import in test d7e2ec2
- 🔥 Remove decl.js as it is unnecessary 0b5aa8e
- 🚧 Pass matching selector into callbacl 78ea4c0
- 🔥 Remove unnecessary code from previous version 0b5fb3a
- ✅ Update test structure for testing when inclusion is set to true or false 3714654
- 🚚 Rename test file to wildcard 373bca4
- 🔧 Update input path for rollup.js dcd1ff4
- 🔥 Remove unnecessary code in test 083e423
- ✅ Add callback in options 511b12a
- ✅ Update file paths in test files a8abb75
- ✅ Create test for wildcard d441bcc
- 🚚 Move all source files into src folder 2251c9c
- 🔧 Update main entry path fe40abc
- 🔧 Add "file" property to only pass needed files into the plugin 8e10989
- 📝 Add example for the new API 07641e6
Refactor to FP style
- ✅ Refactor test for operation remove e874313
- 🔥 Remove test for operation 'after' e55414d
- ✅ Update test for remove operation with new API a4d1700
- 📝 Remove placholder documentation as it is no longer relevant da2b34a
- 🚧 Comment out custom operation temopraily 79d4d63
- ✅ Update test for testing 'custom' operation fb918aa
- 🚧 Update transformDeclsByOperations for transforming nodes fd121b8
- 🚧 Create transformDeclsByOperations() for transforming deecls 468a226
- 🔥 Remove unnecessary helper functions 10db0a7
- 🚧 Create ifOperationEqual() helper function for checking value of operation d224e0c
- 🚚 Move getNodesBySelectors and getDeclsByPropAndValue to selector.js and decl.js 74568ea
- 🚧 Move R.where() and R.dissoc() to another pipe, in order to preserve newDecl property in transformation object 30c565c
- 🚧 Complete getDeclsByPropAndValue() for filtering decls 1b4859d
- 🚧 Set up pipe to get correct decl for transformations d3b6281
- ♻️ Refactor getNodesBySelectors() for using it with a pipe that returns node 111f341
- 🚧 Wrap root.walkDecls() with R.map() to prevent getting an array of Boolean 658ca24
- 🚧 Omit newDecl temporaily 6bfb5fe
- ✅ Update test with new API b972090
- 🎨 Rename getDeclsByProp() to getDeclsByPropAndValue() for clarity 2d08d89
- 🚧 Add wildcard detection logic 4c82dce
- 🚧 Complete getDeclsByProp() to get Decls for transformation 1bf290e
- 🚚 Move node-related functions to nodes.js c02ea3a
- ♻️ Refactor getNodesBySelectors() so that mergedNodeList is being used as the data of the pipe 672549c
- 🚚 Move unused partial functions to helper.js 0e68fa1
- ✨ Add ifEmptyResult() function to remove empty arrays returned from transformation 5cc5f97
- ♻️ Use lens instead of R.prop() to preserve other properties in the object 3b49793
- 🚧 Fix data being passed to getNodesBySelectors() d5e807e
- ♻️ Use lens instead of R.prop to return the whole transformation object a0764cc
- ♻️ Seperate codes specific to decls and selectors in different files 0efef18
- 🚧 Make add comparator functions to decls a separate function a0751fe
- 🚧 Create helper function for overriding objects with new objects 4f2c4ef
- ⚗️ Use R.T and R.F for filtering nodes with wildcard 0cae07b
- ⚗️ Attemping to use R.lift with R.map c512c78
- ⚗️ Experiment UseWith and get data from nested loop with R.map() 3c94de9
- ⚗️ Experimenting with R.lift in Ramda fbb1cd1
- 🚧 Refactor getNodesBySelectors() 46903fd
- 🚧 Replace code with pipelines 9d87c7e
- ♻️ Refactor selectorEq() function to avoid redundant wrapper bf12bb6
- 🚧 Create a findIndex function to find matching object by selector 23ec342
- 🎨 Improve code structure 1a6922f
- ♻️ Refactor pickMatching() with R.pipe() for better readability 3ff3eaf
- 🚧 Further explore ways to minimize mutation when working with PostCSS API 8fff469
- 🚧 Using R.pickBy() to replace for-loop c75fb34
- 🔧 Add ramda ESLint config 3f2d75a
- 🚧 Update test for new API that reflects data relationship between decls and operations 7723b93
- 🚧 Define new api structure 12e2b6a
- 🚧 Add logic check for selector with Ramda dd5187c
- 🔧 Update dependencies c344c3a
- 🚧 Add getDeclData() function to get individual decl data 805c2b8
- 🚧 Add mergedNodesList based on selector 38f264a
- ♻️ Refactor isCorrectType() 7bda9c0
- 🚧 Rewriting the logic for filtering decls e6c57f9
- 🐛 Fix a bug where return is missing after decl.remove() ran 9151793
v0.2.1
- 🎨 Use the validatedTransformations object for processing e3b7493
- ✨ Add isString() function to validate string b8a1711
- ✨ Add validation for transformations object 43b528f
- ♻️ Make isCorrectType more pure by removing the logging function there. fa1c196
- 🎨 Rename inCorrectType() to isCorrectType() to avoid confusion 0efdffc
- 🔥 Remove stringifyVar() as it is no longer necessary 859df62
- ✨ Check the type for transformations 56d11b5
- 🚧 Add logging message to placeholderPattern 77e8ace
- 💄 Add color to log message 676dc2f
- 🚧 Add logging function for invalid type 764539f
- 🚧 Add a new function isCorrectType() for checking variable's type 5eb75b9
- 🐛 Fix a bug where decl.parent.selector being unknown 1f3c4fd
- ✅ Update tests to reflect the added logic for inclusion and exclusion 5dd13d2
- ♻️ Pass placeholderPattern to isMatchingDecl() for checking decls 6e0bcfd
- ♻️ Add placeholderPattern as the parameter for helper functions 946d4f2
- ✨ Add placeholderPattern as option 517bb67
- 📝 Emphasize what can be done by Sparrow 1443db8
- 📝 Add EXAMPLE.md to show case Sparrow's power 678cfc8
Simplify API and introduce inclusion and exclusion logic
- 📝 Update README for the new API 6d4e408
- ✅ Update test for inserting decls with after ef13234
- ✅ Update test for inserting decls with before() 112cf6e
- ✅ Update test for replacing declarations 813b24a
- 🔥 Update transformDeclaration() for the new API 7ccfc4e
- ✅ Update test for remove for new API 9755d91
- ✨ Add inclusion and exclusion logic in isMatchingDecl 2ef46f7
- 🎨 Turn parameter of isMatchingDecl into an object 772b24f
- 💥 Change type for options.transformations.target from Array to String 3ac94dc
- 💥 Change options.transformationList to options.transformations for conciseness d7bd600
v0.1.1
- 💥 Change options.transformationOption to options.transformations as it is more understandable there ee6fe8b
- 🔥 Remove unnecessary variable eaf0486
- ♻️ Assign whole conversion process to a variable for better readability cee6cab
- 🐛 Remove selector from stringifyDecl() for appending and prepending rules properly. bdb9197
- 📝 Add instruction for include this plugin after plugins like postcss-nested 943bde1
- 📝 Update documentation for placeholders 876e93c
- 📝 Correct name of this plugin in README 22ba450
- 🐛 Correct the name of this plugin 76dec4e
- ♻️ Refactor transformationDeclaration with pipe() 15daa24
- ♻️ Refactor parseDecl() and listDeclData() with Ramda compose() 5189106
- ➕ Add ramda as dependency bd0b888
- 📝 Change package name to postcss-sparrow, as sparrow has already been used. 3d9ed44
- 📝 Remove incorrect keywords from package.json 22708b0
- 📝 Update package.json 30e546e
- 📝 Add api reference section in README 38842c1
- 🔥 Remove unnecessary code 29080b6
- 🚧 Updating tests for before and after operation d6f408c
- ✅ Update expects in tests for before() and after() d7f1a71
- 📝 Show badges 9978c0e
- 🔧 Add ESLint rules to prefer ES6 syntax deca48b
- ✅ Update test for before operation 3cd2ca5
- ✅ Complete test for replace operation c3435cf
- ✅ Refactor test code with parseDecl() 7eefa2b
- 🔥 Remove unnecessary import in index.js 2e9b705
- ✨ Add stringifyDecl() for converting an array of declaration values into string cf86711
- 🔧 Add ESLint plugins to prevent mutating object or arrays declared with const 6e05144
- 🔧 Add 'prefer-const' rule to ensure immutability 6de48a2
- 🔧 Add "no-var" and "no-param-reassign" rules to ensuer code immuntability 6ef04cd
- 🐛 Fix a bug where newDecl.operation used instead of operation f6115bb
- ♻️ Rewrite convertPlaceholdersToValues() for better readabilitiy b4f05e3
- 🐛 Fix a bug where pre-parsed decl is passed to listDeclData() 929eabc
- 🚧 Parse orginal decl and new decl before passing them to convertPlaceholdersToValues a1fd4f4
- ♻️ Refactor forEach loop in transformDeclartion to for...of loop for continue f196d9f
- ♻️ Replace code that parse declarations with parseDecl() c74c3af
- ♻️ Create helper function parseDecl for parsing declarations and avoid duplications 1e321b7
- 🚧 Fixing a bug where last declaration overwrites previous declarations c376df2
- ✨ Create convertPlaceholdersToValues for converting placeholders to values of original decl cc86514
- 🐛 Fix a bug where properties instead of functions of decl saved in transformationDict 279de12
- ✅ Create for loop to get replacement value for operation replace 2c0f124
- 📝 Add test coverage badge 386b6e6
- ✅ Add test for replace operation 4e82301
- 🔧 Update ESLint config to use chai-friendly as plugin babceaa
- ➕ Add eslint-plugin-chai-friendly as dev dependency 198ad72
- ➕ Add eslint-plugin-chai-expect as dev dependency cafb45b
- ✅ Update test for remove operation 19c3e69
- ♻️ Refactor switch statement to object literals 349ec7f
- ✨ New matching function for matching target declaration e64e2ee
- 📝 Add badges to README. Hidden as comment. 4a632bb
- 📝 Add remove declaration code example 872a81e
- 📝 Remove problem section temporaily 9c52c9a