{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":463723227,"defaultBranch":"main","name":"prettier-plugin-sort-imports","ownerLogin":"IanVS","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2022-02-26T01:28:14.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/4616705?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1720810355.0","currentOid":""},"activityList":{"items":[{"before":"bac1ecb37757fdf590010b3bc2855e2fc8fa827b","after":null,"ref":"refs/heads/pnpm","pushedAt":"2024-07-12T18:52:35.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"}},{"before":"f558d5da81bda6a608ccf0ccec0688bbced7486c","after":"fef70a61af77f70919742cd4ae335af3edd2a027","ref":"refs/heads/main","pushedAt":"2024-07-12T18:52:34.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Internal: Switch from yarn to pnpm (#178)\n\nIt's faster, less buggy than yarn 1.x, and easier to work with than yarn\r\n3/4.\r\n\r\nOne note: I did not try to migrate the lockfile, so this also updates\r\nall dependencies based on semver range in our package.json","shortMessageHtmlLink":"Internal: Switch from yarn to pnpm (#178)"}},{"before":"60a4ebb868ed85e86e1552957c75bd423a6cc2b7","after":"bac1ecb37757fdf590010b3bc2855e2fc8fa827b","ref":"refs/heads/pnpm","pushedAt":"2024-07-12T16:56:06.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Prettierignore pnpm lockfile","shortMessageHtmlLink":"Prettierignore pnpm lockfile"}},{"before":"e6d7bdb565ab4d38d22a356889e5d8613769904a","after":"60a4ebb868ed85e86e1552957c75bd423a6cc2b7","ref":"refs/heads/pnpm","pushedAt":"2024-07-12T16:53:55.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Prettierignore pnpm lockfile","shortMessageHtmlLink":"Prettierignore pnpm lockfile"}},{"before":"0bcee2b67d214cfcda0f3ab6194b2356b9c9034b","after":"e6d7bdb565ab4d38d22a356889e5d8613769904a","ref":"refs/heads/pnpm","pushedAt":"2024-07-12T16:53:12.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Create .node-version file for local dev","shortMessageHtmlLink":"Create .node-version file for local dev"}},{"before":"786ba60f6e2c10f79a991424e79ae2d089c2d086","after":"0bcee2b67d214cfcda0f3ab6194b2356b9c9034b","ref":"refs/heads/pnpm","pushedAt":"2024-07-12T16:52:08.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Drop node 16 in CI","shortMessageHtmlLink":"Drop node 16 in CI"}},{"before":"afe3b0f85fb6c13b9f2c81b8dd55f532a1740f4e","after":"786ba60f6e2c10f79a991424e79ae2d089c2d086","ref":"refs/heads/pnpm","pushedAt":"2024-07-12T15:21:56.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Install pnpm in ci","shortMessageHtmlLink":"Install pnpm in ci"}},{"before":null,"after":"afe3b0f85fb6c13b9f2c81b8dd55f532a1740f4e","ref":"refs/heads/pnpm","pushedAt":"2024-07-12T15:09:26.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Internal: Switch from yarn to pnpm","shortMessageHtmlLink":"Internal: Switch from yarn to pnpm"}},{"before":"95f57d476a14cc9b17255bc0fbb929526a0809ab","after":"f558d5da81bda6a608ccf0ccec0688bbced7486c","ref":"refs/heads/main","pushedAt":"2024-07-12T15:00:57.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Add packageManager to package.json","shortMessageHtmlLink":"Add packageManager to package.json"}},{"before":"11da4e7cde8af32a7a017646ac2c54a0d5875b82","after":"95f57d476a14cc9b17255bc0fbb929526a0809ab","ref":"refs/heads/main","pushedAt":"2024-07-12T14:57:38.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"4.3.1","shortMessageHtmlLink":"4.3.1"}},{"before":"6d688ce14c17b5c4d4e5e469d65045535927c9e4","after":null,"ref":"refs/heads/astro-return-outside-function","pushedAt":"2024-07-12T14:56:49.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"}},{"before":"1d2c2ecf4fdc50fab7e7faf209d249f29fa2a214","after":"11da4e7cde8af32a7a017646ac2c54a0d5875b82","ref":"refs/heads/main","pushedAt":"2024-07-12T14:56:48.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Add support for return in Astro component script (#176)\n\nAddresses\r\nhttps://github.com/IanVS/prettier-plugin-sort-imports/issues/96#issuecomment-2198005393\r\n\r\nIn Astro, it's possible to [return a\r\nResponse](https://docs.astro.build/en/guides/server-side-rendering/#return-a-response-object)\r\nfrom inside of a component script, without wrapping it in a function.\r\nThis doesn't look like valid JavaScript, so the babel parser choked on\r\nit.\r\n\r\nThis change checks to see if the file was parsed with the astro plugin,\r\nand if so, enables the `allowReturnOutsideFunction` parser option.\r\n\r\nThis is admittedly a bit of a band-aid. I think the more correct\r\napproach is to parse the code into AST using the configured parser,\r\nrather than always using our version of babel. This is what some other\r\nprettier plugins do. Some, like tailwindcss, goes so far as to load a\r\nlist of compatible other prettier plugins to enable cross-compatibility.\r\n\r\nBut, that's a much bigger change that will potentially require a\r\nbreaking change version bump, so I didn't tackle it here.\r\n\r\nThe other thing I did do here, is update the README a bit. I added\r\n`Astro` to our supported frameworks as experimental (there may be other\r\nparser options we need to set), and also included support for Svelte,\r\nwhich we've always supported, as far as I know, but don't really test\r\nfor (it would be good to make some tests sometime).","shortMessageHtmlLink":"Add support for return in Astro component script (#176)"}},{"before":"87a38bd7489875f1b515ac53ac87d331a29433fa","after":"1d2c2ecf4fdc50fab7e7faf209d249f29fa2a214","ref":"refs/heads/main","pushedAt":"2024-07-04T14:12:36.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"fixes readme with correct BUILTIN_MODULES setting name (#177)","shortMessageHtmlLink":"fixes readme with correct BUILTIN_MODULES setting name (#177)"}},{"before":"03f58bcd5c6de341a230a0a142ce766060649681","after":"6d688ce14c17b5c4d4e5e469d65045535927c9e4","ref":"refs/heads/astro-return-outside-function","pushedAt":"2024-07-01T12:49:30.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Update documentation","shortMessageHtmlLink":"Update documentation"}},{"before":null,"after":"03f58bcd5c6de341a230a0a142ce766060649681","ref":"refs/heads/astro-return-outside-function","pushedAt":"2024-07-01T12:24:58.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Modify parserOptions for astro-parsed code","shortMessageHtmlLink":"Modify parserOptions for astro-parsed code"}},{"before":"9484685c2095e275c329b65e7d19080f2b450934","after":"87a38bd7489875f1b515ac53ac87d331a29433fa","ref":"refs/heads/main","pushedAt":"2024-06-26T13:45:16.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"4.3.0","shortMessageHtmlLink":"4.3.0"}},{"before":null,"after":"6d7e4af1571a62cb61a6478bf6d101b312868e61","ref":"refs/heads/preserve-previous-plugins","pushedAt":"2024-06-25T21:30:42.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Add test for multiple plugins\n\nUses some actual other plugins, which could be brittle, but on the other hand,\nshould give us greater confidence that it's working","shortMessageHtmlLink":"Add test for multiple plugins"}},{"before":"06975ea86d13e4c907a5b1248cb83a7e3ac7bd45","after":null,"ref":"refs/heads/fix-old-vue","pushedAt":"2024-06-25T18:12:16.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"}},{"before":"920639a8de97a5bea76a8eb726cedc5a608c45bb","after":"9484685c2095e275c329b65e7d19080f2b450934","ref":"refs/heads/main","pushedAt":"2024-06-25T18:12:15.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Fix vue 2.7 support (#173)\n\nFixes https://github.com/IanVS/prettier-plugin-sort-imports/issues/162\r\n\r\nOlder versions (not sure which ones exactly) of vue/compiler-sfc do not\r\ninclude a `loc` property on each block, but rather give the offsets\r\ndirectly on the block itself. This accounts for those differences, and\r\ncauses the reproduction provided in the issue to succeed.","shortMessageHtmlLink":"Fix vue 2.7 support (#173)"}},{"before":"3d136a0b9b7d4d45c8fba62fe0529218796876cd","after":null,"ref":"refs/heads/import-attributes","pushedAt":"2024-06-25T18:11:51.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"}},{"before":"54cd97979745afc7d779f3b4b93720471dc9bcda","after":"920639a8de97a5bea76a8eb726cedc5a608c45bb","ref":"refs/heads/main","pushedAt":"2024-06-25T18:11:51.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Add support for import attributes (#174)\n\nThere are three styles of import assertions/attributes that have been\r\nproposed over the years and made it to various stages of TC-39. Here's a\r\nbit of\r\n[history](https://github.com/tc39/proposal-import-attributes#history):\r\n\r\n1) `import x from 'x' with type: \"json\"` - original proposal, made it to\r\nstage 2\r\n2) `import x from 'x' assert { type: 'json' };` - import \"assertion\",\r\ngot to stage 3, then found problems\r\n3) `import x from 'x' with { type: 'json' };` - import \"attribute\",\r\ncurrent proposal, stage 3\r\n\r\nBabel only supports these with the use of a parser plugin, either\r\n`importAttributes` or `importAssertions`. Also, babel/generator has to\r\nbe told which style to generate. Upstream has a PR,\r\nhttps://github.com/trivago/prettier-plugin-sort-imports/pull/273/files,\r\nwhich adds another user-level option to control this. Instead, I've\r\ntaken the stance here that we should only generate the latest \"import\r\nattribute\" style code. So, not only does this PR add support for import\r\nattributes/assertions, this has the side-effect of converting deprecated\r\nimport assertions to import attributes. Maybe there's some reason\r\nsomeone would want to stick with the old style, but I can't think of\r\none, and I personally would appreciate getting updated to the latest\r\nformat.","shortMessageHtmlLink":"Add support for import attributes (#174)"}},{"before":"cb4aa69beb559453b203a6ca71fe9f96c9c0a0cb","after":"3d136a0b9b7d4d45c8fba62fe0529218796876cd","ref":"refs/heads/import-attributes","pushedAt":"2024-06-25T14:17:11.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Format","shortMessageHtmlLink":"Format"}},{"before":null,"after":"cb4aa69beb559453b203a6ca71fe9f96c9c0a0cb","ref":"refs/heads/import-attributes","pushedAt":"2024-06-25T14:02:44.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Add support for import attributes\n\nAnd convert deprecated import assertions to attributes","shortMessageHtmlLink":"Add support for import attributes"}},{"before":"f015d2e3c57d84233f5badd9992f03eb3671b5f6","after":"06975ea86d13e4c907a5b1248cb83a7e3ac7bd45","ref":"refs/heads/fix-old-vue","pushedAt":"2024-06-25T13:45:50.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Format","shortMessageHtmlLink":"Format"}},{"before":null,"after":"f015d2e3c57d84233f5badd9992f03eb3671b5f6","ref":"refs/heads/fix-old-vue","pushedAt":"2024-06-25T13:22:16.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Always throw error when preprocessor fails\n\nOtherwise the parser in prettier fails downstream, and we lose the actual cause","shortMessageHtmlLink":"Always throw error when preprocessor fails"}},{"before":"135b6e55d710df32c3a23c7fe266a04e1eb0c2c1","after":"54cd97979745afc7d779f3b4b93720471dc9bcda","ref":"refs/heads/main","pushedAt":"2024-06-07T14:01:39.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Augment Prettier `Options` types with internal `PluginConfig` (#172)\n\n- Add TypeScript module augmentation for the `prettier` module in\r\n`types/index.d.ts` to add the `PluginConfig` interface to the `Options`\r\ninterface to support proper typing of plugin options in IDEs and during\r\ntype-checking\r\n- Closes #169\r\n- Compiles and passes tests","shortMessageHtmlLink":"Augment Prettier Options types with internal PluginConfig (#172)"}},{"before":"41ae68b1ccee2a102239ac752f73c5eff0d51739","after":"135b6e55d710df32c3a23c7fe266a04e1eb0c2c1","ref":"refs/heads/main","pushedAt":"2024-03-25T12:27:27.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Update README to show more options for disabling and overrides (#165)\n\nThe new feature of disabling with empty array can do more than just\r\ndisabling globally and enabling for certain folders or files. It can do\r\nthe opposite: enabling globally and disabling for certain folders or\r\nfiles. It can also do sort order overrides, where a different order\r\napplies to certain folders and files instead of the global order.\r\n\r\nFeel free to suggest a rewrite of the text if needed. ๐Ÿ™‚ I have used the\r\nreverse configuration in an actual project and it works well:\r\n\r\n```jsonc\r\n// .prettierrc\r\n{\r\n \"plugins\": [\"@ianvs/prettier-plugin-sort-imports\"],\r\n \"overrides\": [\r\n {\r\n \"files\": \"please/doNot/sortThis.ts\",\r\n \"options\": {\r\n \"importOrder\": [] // disabled\r\n }\r\n }\r\n ],\r\n \"importOrder\": [ /* global order here */ ]\r\n //...\r\n}\r\n```\r\n\r\nTip: The `overrides` order can come before or after the global\r\n`importOrder`. It doesn't matter as Prettier will always apply the\r\noverride regardless of where it is in `.prettierrc`.","shortMessageHtmlLink":"Update README to show more options for disabling and overrides (#165)"}},{"before":"d97c9e4b194fc92a24cb37ec4f57a5d50620a0d6","after":"41ae68b1ccee2a102239ac752f73c5eff0d51739","ref":"refs/heads/main","pushedAt":"2024-03-17T00:27:11.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"4.2.1","shortMessageHtmlLink":"4.2.1"}},{"before":"192e5d09ca5935f31ea55378d00041737616d2ff","after":null,"ref":"refs/heads/fix-vue-3","pushedAt":"2024-03-17T00:25:44.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"}},{"before":"0ffe11e6fd989967e616408a5540062cfca462c2","after":"d97c9e4b194fc92a24cb37ec4f57a5d50620a0d6","ref":"refs/heads/main","pushedAt":"2024-03-17T00:25:43.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"IanVS","name":"Ian VanSchooten","path":"/IanVS","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4616705?s=80&v=4"},"commit":{"message":"Detect vue 2.7 / 3 more reliably (#160)\n\nFixes https://github.com/IanVS/prettier-plugin-sort-imports/issues/158\r\n\r\nThe `transformRef` method is not found on the most recent versions of\r\n@vue/compiler-sfc (3.4.x), because it seems to have only existed for\r\nsome versions of 3.x (including the version we use in devDependencies,\r\nwhich is why our tests passed). I couldn't find any mention of it in the\r\nVue changelog, though it seems like it should have been a breaking\r\nchange to remove the method.\r\n\r\nSo, now instead of relying on the presence of a method, we'll import the\r\npackage.json directly, look at the version field, and make our decision\r\nbased on that, which should be much safer.","shortMessageHtmlLink":"Detect vue 2.7 / 3 more reliably (#160)"}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"Y3Vyc29yOnYyOpK7MjAyNC0wNy0xMlQxODo1MjozNS4wMDAwMDBazwAAAAR-JV7J","startCursor":"Y3Vyc29yOnYyOpK7MjAyNC0wNy0xMlQxODo1MjozNS4wMDAwMDBazwAAAAR-JV7J","endCursor":"Y3Vyc29yOnYyOpK7MjAyNC0wMy0xN1QwMDoyNTo0My4wMDAwMDBazwAAAAQXlotE"}},"title":"Activity ยท IanVS/prettier-plugin-sort-imports"}